Skip to content

Commit e698ef8

Browse files
author
Niko
committed
profiler adjust
1 parent 49bd2f2 commit e698ef8

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

decompile/General/AltMods/DebugMenu/Profiler.c

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ void DebugProfiler_Subsection(int flag)
7676

7777
if(ptrOpenSect == 0)
7878
{
79-
if(flag != 2)
79+
// dont let fake sections explode on-boot
80+
if(numSectionsUsed > 20)
8081
return;
8182

8283
fakeSectionOpen = 1;
@@ -96,7 +97,6 @@ void DebugProfiler_Subsection(int flag)
9697

9798
if((flag & 2) != 0)
9899
{
99-
printf("DrawSync: %d %d\n", fakeSectionOpen, time);
100100
ptrOpenSect->posD = time;
101101
}
102102

@@ -165,12 +165,6 @@ void DebugProfiler_Draw()
165165
{
166166
struct ProfilerSection* s = &ptrSectArr[i];
167167

168-
if(i == 0) printf("\n\n");
169-
printf("Start: %d %08x %d\n",
170-
i,
171-
*(int*)&s->a,
172-
s->timeStart);
173-
174168
if((s->flagsVDT & 1) != 0)
175169
{
176170
DECOMP_DecalFont_DrawLine("V",

0 commit comments

Comments
 (0)