Fix profiling mode framerate regression
This commit is contained in:
parent
8c0fe53ff2
commit
9aa92cfe30
@ -222,11 +222,14 @@ void MainLoop::run()
|
|||||||
|
|
||||||
m_prev_time = m_curr_time;
|
m_prev_time = m_curr_time;
|
||||||
float dt = getLimitedDt();
|
float dt = getLimitedDt();
|
||||||
// Render the previous frame, and also handle all user input.
|
|
||||||
PROFILER_PUSH_CPU_MARKER("IrrDriver update", 0x00, 0x00, 0x7F);
|
|
||||||
irr_driver->update(dt);
|
|
||||||
PROFILER_POP_CPU_MARKER();
|
|
||||||
|
|
||||||
|
if (!m_abort && !ProfileWorld::isNoGraphics())
|
||||||
|
{
|
||||||
|
// Render the previous frame, and also handle all user input.
|
||||||
|
PROFILER_PUSH_CPU_MARKER("IrrDriver update", 0x00, 0x00, 0x7F);
|
||||||
|
irr_driver->update(dt);
|
||||||
|
PROFILER_POP_CPU_MARKER();
|
||||||
|
}
|
||||||
|
|
||||||
if (World::getWorld()) // race is active if world exists
|
if (World::getWorld()) // race is active if world exists
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user