We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 49bd2f2 commit e698ef8Copy full SHA for e698ef8
1 file changed
decompile/General/AltMods/DebugMenu/Profiler.c
@@ -76,7 +76,8 @@ void DebugProfiler_Subsection(int flag)
76
77
if(ptrOpenSect == 0)
78
{
79
- if(flag != 2)
+ // dont let fake sections explode on-boot
80
+ if(numSectionsUsed > 20)
81
return;
82
83
fakeSectionOpen = 1;
@@ -96,7 +97,6 @@ void DebugProfiler_Subsection(int flag)
96
97
98
if((flag & 2) != 0)
99
- printf("DrawSync: %d %d\n", fakeSectionOpen, time);
100
ptrOpenSect->posD = time;
101
}
102
@@ -165,12 +165,6 @@ void DebugProfiler_Draw()
165
166
struct ProfilerSection* s = &ptrSectArr[i];
167
168
- if(i == 0) printf("\n\n");
169
- printf("Start: %d %08x %d\n",
170
- i,
171
- *(int*)&s->a,
172
- s->timeStart);
173
-
174
if((s->flagsVDT & 1) != 0)
175
176
DECOMP_DecalFont_DrawLine("V",
0 commit comments