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

@ -445,8 +445,6 @@ void System::RunFrame()
// Generate any pending samples from the SPU before sleeping, this way we reduce the chances of underruns.
m_spu->GeneratePendingSamples();
UpdatePerformanceCounters();
}
void System::SetThrottleFrequency(float frequency)

View file

@ -735,6 +735,8 @@ void QtHostInterface::threadEntryPoint()
renderDisplay();
m_system->UpdatePerformanceCounters();
if (m_speed_limiter_enabled)
m_system->Throttle();

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();