summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2018-01-08 22:24:20 -0500
committerbunnei <bunneidev@gmail.com>2018-01-10 23:28:36 -0500
commit977ce4abbc6d5c6cede53f7c1d109ebd210cda87 (patch)
treed1cba92df54238b6a68b862acb8d9e64122054fb /src
parent7e0ff43da07763cc022e304e63bf5d2f1cdb401a (diff)
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.cpp2
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) {
Layer::Layer(u64 id, std::shared_ptr<BufferQueue> queue) : id(id), buffer_queue(std::move(queue)) {}
Display::Display(u64 id, std::string name) : id(id), name(std::move(name)) {
- vsync_event = Kernel::Event::Create(Kernel::ResetType::OneShot, "Display VSync Event");
+ vsync_event = Kernel::Event::Create(Kernel::ResetType::Pulse, "Display VSync Event");
}
} // namespace VI