1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-27 14:37:16 +00:00

added some more debug lines to DF_GRAPH

This commit is contained in:
Zeno Rogue 2020-04-17 15:03:05 +02:00
parent 7a71132806
commit c0115e60e9
2 changed files with 10 additions and 0 deletions

View File

@ -184,6 +184,7 @@ vector<glvertex> line_vertices;
#endif #endif
EX void glflush() { EX void glflush() {
DEBBI(DF_GRAPH, ("glflush"));
#if MINIMIZE_GL_CALLS #if MINIMIZE_GL_CALLS
if(isize(triangle_vertices)) { if(isize(triangle_vertices)) {
// printf("%08X %08X | %d shapes, %d/%d vertices\n", triangle_color, line_color, shapes_merged, isize(triangle_vertices), isize(line_vertices)); // printf("%08X %08X | %d shapes, %d/%d vertices\n", triangle_color, line_color, shapes_merged, isize(triangle_vertices), isize(line_vertices));
@ -1879,6 +1880,8 @@ void dqi_line::draw_back() {
} }
EX void sort_drawqueue() { EX void sort_drawqueue() {
DEBBI(DF_GRAPH, ("sort_drawqueue"));
for(int a=0; a<PMAX; a++) qp[a] = 0; for(int a=0; a<PMAX; a++) qp[a] = 0;
@ -1929,6 +1932,7 @@ EX void reverse_side_priorities() {
// on the sphere, parts on the back are drawn first // on the sphere, parts on the back are drawn first
EX void draw_backside() { EX void draw_backside() {
DEBBI(DF_GRAPH, ("draw_backside"));
if(pmodel == mdHyperboloid && hyperbolic) { if(pmodel == mdHyperboloid && hyperbolic) {
dynamicval<eModel> dv (pmodel, mdHyperboloidFlat); dynamicval<eModel> dv (pmodel, mdHyperboloidFlat);
for(auto& ptd: ptds) for(auto& ptd: ptds)
@ -1968,6 +1972,7 @@ EX void reverse_transparent_walls() {
} }
EX void draw_main() { EX void draw_main() {
DEBBI(DF_GRAPH, ("draw_main"));
if(sphere && GDIM == 3 && pmodel == mdPerspective) { if(sphere && GDIM == 3 && pmodel == mdPerspective) {
for(int p: {1, 0, 2, 3}) { for(int p: {1, 0, 2, 3}) {
if(elliptic && p < 2) continue; if(elliptic && p < 2) continue;
@ -2037,6 +2042,8 @@ EX hookset<bool()> *hooks_vr_draw_all;
EX void drawqueue() { EX void drawqueue() {
DEBBI(DF_GRAPH, ("drawqueue"));
#if CAP_WRL #if CAP_WRL
if(wrl::in) { wrl::render(); return; } if(wrl::in) { wrl::render(); return; }
#endif #endif
@ -2054,6 +2061,8 @@ EX void drawqueue() {
profile_start(3); profile_start(3);
sort_drawqueue(); sort_drawqueue();
DEBB(DF_GRAPH, ("sort walls"));
if(GDIM == 2) if(GDIM == 2)
for(PPR p: {PPR::REDWALLs, PPR::REDWALLs2, PPR::REDWALLs3, PPR::WALL3s, for(PPR p: {PPR::REDWALLs, PPR::REDWALLs2, PPR::REDWALLs3, PPR::WALL3s,

View File

@ -2927,6 +2927,7 @@ void sumaura(int v) {
vector<glhr::colored_vertex> auravertices; vector<glhr::colored_vertex> auravertices;
void drawaura() { void drawaura() {
DEBBI(DF_GRAPH, ("draw aura"));
if(!haveaura()) return; if(!haveaura()) return;
if(vid.stereo_mode) return; if(vid.stereo_mode) return;
double rad = current_display->radius; double rad = current_display->radius;