diff options
| author | Jordan Woyak <jordan.woyak@gmail.com> | 2025-03-06 03:01:53 -0600 |
|---|---|---|
| committer | Jordan Woyak <jordan.woyak@gmail.com> | 2025-03-10 16:40:46 -0500 |
| commit | 7222188cde8f1699e1384d3ec773928f7fb415e2 (patch) | |
| tree | 5c532e67f4d22910c166a1d56fc42cf95251eaa9 /Source/Core/VideoCommon/VideoBackendBase.cpp | |
| parent | c4bd98c6269f41f251d333eeb23cf8ffeb6ec51d (diff) | |
Core/VideoCommon: Push presentation time calculated from CPU thread to GPU thread.
Diffstat (limited to 'Source/Core/VideoCommon/VideoBackendBase.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/VideoBackendBase.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/VideoBackendBase.cpp b/Source/Core/VideoCommon/VideoBackendBase.cpp index a7a322eab3..c480f3d19b 100644 --- a/Source/Core/VideoCommon/VideoBackendBase.cpp +++ b/Source/Core/VideoCommon/VideoBackendBase.cpp @@ -13,13 +13,13 @@ #include "Common/ChunkFile.h" #include "Common/CommonTypes.h" -#include "Common/Event.h" #include "Common/FileUtil.h" #include "Common/Logging/Log.h" #include "Core/Config/MainSettings.h" #include "Core/ConfigManager.h" #include "Core/Core.h" +#include "Core/CoreTiming.h" #include "Core/DolphinAnalytics.h" #include "Core/System.h" @@ -51,9 +51,7 @@ #include "VideoCommon/FramebufferManager.h" #include "VideoCommon/GeometryShaderManager.h" #include "VideoCommon/GraphicsModSystem/Runtime/GraphicsModManager.h" -#include "VideoCommon/IndexGenerator.h" #include "VideoCommon/OnScreenDisplay.h" -#include "VideoCommon/OpcodeDecoding.h" #include "VideoCommon/PixelEngine.h" #include "VideoCommon/PixelShaderManager.h" #include "VideoCommon/Present.h" @@ -108,6 +106,7 @@ void VideoBackendBase::Video_OutputXFB(u32 xfb_addr, u32 fb_width, u32 fb_stride e.swap_event.fbWidth = fb_width; e.swap_event.fbStride = fb_stride; e.swap_event.fbHeight = fb_height; + e.swap_event.presentation_time = system.GetCoreTiming().GetTargetHostTime(ticks); AsyncRequests::GetInstance()->PushEvent(e, false); } } |
