mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-12 19:19:03 +00:00
Core/VideoCommon: Push presentation time calculated from CPU thread to GPU thread.
This commit is contained in:
parent
c4bd98c626
commit
7222188cde
7 changed files with 52 additions and 11 deletions
|
@ -14,7 +14,6 @@
|
|||
#include <array>
|
||||
#include <memory>
|
||||
#include <mutex>
|
||||
#include <span>
|
||||
#include <tuple>
|
||||
|
||||
class AbstractTexture;
|
||||
|
@ -36,10 +35,11 @@ public:
|
|||
Presenter();
|
||||
virtual ~Presenter();
|
||||
|
||||
void ViSwap(u32 xfb_addr, u32 fb_width, u32 fb_stride, u32 fb_height, u64 ticks);
|
||||
void ViSwap(u32 xfb_addr, u32 fb_width, u32 fb_stride, u32 fb_height, u64 ticks,
|
||||
TimePoint presentation_time);
|
||||
void ImmediateSwap(u32 xfb_addr, u32 fb_width, u32 fb_stride, u32 fb_height, u64 ticks);
|
||||
|
||||
void Present();
|
||||
void Present(std::optional<TimePoint> presentation_time = std::nullopt);
|
||||
void ClearLastXfbId() { m_last_xfb_id = std::numeric_limits<u64>::max(); }
|
||||
|
||||
bool Initialize();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue