Add gloal profiler marker, will help get percentages
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9761 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
0407edec66
commit
78eac6b7ce
@ -122,6 +122,8 @@ void MainLoop::run()
|
||||
m_curr_time = device->getTimer()->getRealTime();
|
||||
while(!m_abort)
|
||||
{
|
||||
PROFILER_PUSH_CPU_MARKER("Main loop", 0xFF, 0x00, 0xF7);
|
||||
|
||||
m_prev_time = m_curr_time;
|
||||
float dt = getLimitedDt();
|
||||
|
||||
@ -156,6 +158,8 @@ void MainLoop::run()
|
||||
|
||||
PROFILER_SYNC_FRAME();
|
||||
}
|
||||
|
||||
PROFILER_POP_CPU_MARKER();
|
||||
} // while !m_exit
|
||||
|
||||
} // run
|
||||
|
Loading…
Reference in New Issue
Block a user