diff options
| author | 2018-01-08 22:24:20 -0500 | |
|---|---|---|
| committer | 2018-01-10 23:28:36 -0500 | |
| commit | 977ce4abbc6d5c6cede53f7c1d109ebd210cda87 (patch) | |
| tree | d1cba92df54238b6a68b862acb8d9e64122054fb /src | |
| parent | vi: Use new CoreTiming::EventType (diff) | |
| download | yuzu-977ce4abbc6d5c6cede53f7c1d109ebd210cda87.tar.gz yuzu-977ce4abbc6d5c6cede53f7c1d109ebd210cda87.tar.xz yuzu-977ce4abbc6d5c6cede53f7c1d109ebd210cda87.zip | |
VI: Use a Pulse event instead of OneShot for the vblank events.
This prevents missing frames if the vblank fires between the DequeueBuffer and Wait(vsync) calls
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/service/vi/vi.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/service/vi/vi.cpp b/src/core/hle/service/vi/vi.cpp index 56aafe6bf..55bbd45db 100644 --- a/src/core/hle/service/vi/vi.cpp +++ b/src/core/hle/service/vi/vi.cpp | |||
| @@ -830,7 +830,7 @@ void BufferQueue::ReleaseBuffer(u32 slot) { | |||
| 830 | Layer::Layer(u64 id, std::shared_ptr<BufferQueue> queue) : id(id), buffer_queue(std::move(queue)) {} | 830 | Layer::Layer(u64 id, std::shared_ptr<BufferQueue> queue) : id(id), buffer_queue(std::move(queue)) {} |
| 831 | 831 | ||
| 832 | Display::Display(u64 id, std::string name) : id(id), name(std::move(name)) { | 832 | Display::Display(u64 id, std::string name) : id(id), name(std::move(name)) { |
| 833 | vsync_event = Kernel::Event::Create(Kernel::ResetType::OneShot, "Display VSync Event"); | 833 | vsync_event = Kernel::Event::Create(Kernel::ResetType::Pulse, "Display VSync Event"); |
| 834 | } | 834 | } |
| 835 | 835 | ||
| 836 | } // namespace VI | 836 | } // namespace VI |