This commit is contained in:
Irlan
2018-07-10 12:03:15 -03:00
parent 5c7f8790f7
commit 260eb18093

View File

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