removed a couple of bugs in the profiler

This commit is contained in:
Irlan
2018-10-07 20:48:26 -03:00
parent c0e324c988
commit b48b16843a
8 changed files with 60 additions and 34 deletions

View File

@ -124,7 +124,11 @@ static void Run()
for (u32 i = 0; i < records.Count(); ++i)
{
const ProfilerRecord& r = records[i];
g_draw->DrawString(b3Color_white, "%s %.4f (%.4f) [ms]", r.name, r.elapsed, r.maxElapsed);
if (r.elapsed > 0.0)
{
g_draw->DrawString(b3Color_white, "%s %.4f (%.4f) [ms]", r.name, r.elapsed, r.maxElapsed);
}
}
}