System: Include buffer swap time in frame time measurement

pull/211/head
Connor McLaughlin 5 years ago
parent 9ce63952fb
commit cbb9b96537

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

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

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

Loading…
Cancel
Save