mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-25 23:25:41 +00:00
Qt: Simplify emulation thread loop
This commit is contained in:
parent
c820ddba79
commit
2bf6912f39
|
@ -590,30 +590,19 @@ void QtHostInterface::threadEntryPoint()
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// execute the system, polling events inbetween frames
|
|
||||||
// simulate the system if not paused
|
|
||||||
m_system->RunFrame();
|
m_system->RunFrame();
|
||||||
|
|
||||||
// rendering
|
m_system->GetGPU()->ResetGraphicsAPIState();
|
||||||
{
|
|
||||||
if (m_system)
|
|
||||||
{
|
|
||||||
DrawDebugWindows();
|
|
||||||
m_system->GetGPU()->ResetGraphicsAPIState();
|
|
||||||
}
|
|
||||||
|
|
||||||
DrawOSDMessages();
|
DrawDebugWindows();
|
||||||
|
DrawOSDMessages();
|
||||||
|
|
||||||
m_display->Render();
|
m_display->Render();
|
||||||
|
|
||||||
if (m_system)
|
m_system->GetGPU()->RestoreGraphicsAPIState();
|
||||||
{
|
|
||||||
m_system->GetGPU()->RestoreGraphicsAPIState();
|
|
||||||
|
|
||||||
if (m_speed_limiter_enabled)
|
if (m_speed_limiter_enabled)
|
||||||
m_system->Throttle();
|
m_system->Throttle();
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
m_worker_thread_event_loop->processEvents(QEventLoop::AllEvents);
|
m_worker_thread_event_loop->processEvents(QEventLoop::AllEvents);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue