Rework multi-core vsync

This commit is contained in:
Kelebek1
2022-07-26 22:04:18 +01:00
committed by Morph
parent 9c31edccdf
commit 9d3b190465
2 changed files with 30 additions and 17 deletions

View File

@ -126,12 +126,15 @@ private:
u32 swap_interval = 1;
/// Event that handles screen composition.
std::shared_ptr<Core::Timing::EventType> composition_event;
std::shared_ptr<Core::Timing::EventType> multi_composition_event;
std::shared_ptr<Core::Timing::EventType> single_composition_event;
std::shared_ptr<std::mutex> guard;
Core::System& system;
std::atomic<bool> vsync_signal;
std::jthread vsync_thread;
KernelHelpers::ServiceContext service_context;