mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
Merge pull request #13387 from jordan-woyak/frame-pacing
CoreTiming: Improve frame pacing
This commit is contained in:
@ -19,6 +19,7 @@
|
||||
#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"
|
||||
|
||||
@ -105,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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user