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

@ -25,20 +25,14 @@ extern u32 b3_convexCalls, b3_convexCacheHits;
extern u32 b3_gjkCalls, b3_gjkIters, b3_gjkMaxIters;
extern bool b3_convexCache;
static bool push_ok = false;
void b3BeginProfileScope(const char* name)
{
push_ok = g_profiler->PushEvent(name);
g_profiler->PushEvent(name);
}
void b3EndProfileScope()
{
if (push_ok)
{
g_profiler->PopEvent();
push_ok = false;
}
g_profiler->PopEvent();
}
Test::Test() :