System: Include buffer swap time in frame time measurement

This commit is contained in:
Connor McLaughlin
2020-03-24 00:20:56 +10:00
parent 9ce63952fb
commit cbb9b96537
3 changed files with 3 additions and 2 deletions

View File

@ -1438,6 +1438,7 @@ void SDLHostInterface::Run()
if (m_system)
{
m_system->GetGPU()->RestoreGraphicsAPIState();
m_system->UpdatePerformanceCounters();
if (m_speed_limiter_enabled)
m_system->Throttle();