diff options
| author | Jordan Woyak <jordan.woyak@gmail.com> | 2025-03-06 03:02:19 -0600 |
|---|---|---|
| committer | Jordan Woyak <jordan.woyak@gmail.com> | 2025-03-10 16:40:46 -0500 |
| commit | c4bd98c6269f41f251d333eeb23cf8ffeb6ec51d (patch) | |
| tree | 5678faed428f7121250c57dbf2ff2fcc8d973125 /Source/Core | |
| parent | 9ac9813492fda1a84c62d19a2d3b0ed7a19ebe0f (diff) | |
VideoInterface: Throttle before VBlank statistics counting.
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/Core/HW/VideoInterface.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/Core/Core/HW/VideoInterface.cpp b/Source/Core/Core/HW/VideoInterface.cpp index bc679492ea..76b31a8dcc 100644 --- a/Source/Core/Core/HW/VideoInterface.cpp +++ b/Source/Core/Core/HW/VideoInterface.cpp @@ -839,6 +839,11 @@ void VideoInterfaceManager::EndField(FieldType field, u64 ticks) if (!Config::Get(Config::GFX_HACK_EARLY_XFB_OUTPUT)) OutputField(field, ticks); + // Note: We really only need to Throttle prior to to presentation, + // but it is needed here if we want accurate "VBlank" statistics, + // when using GPU-on-Thread or Early/Immediate XFB. + m_system.GetCoreTiming().Throttle(ticks); + g_perf_metrics.CountVBlank(); VIEndFieldEvent::Trigger(); Core::OnFrameEnd(m_system); |
