mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-30 01:25:51 +00:00
System: Include buffer swap time in frame time measurement
This commit is contained in:
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…
Reference in a new issue