mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-17 22:23:31 +00:00
Use FIFO present mode for VSync
This commit is contained in:
@@ -383,8 +383,9 @@ bool PlVkRenderer::initialize(PDECODER_PARAMETERS params)
|
|||||||
|
|
||||||
VkPresentModeKHR presentMode;
|
VkPresentModeKHR presentMode;
|
||||||
if (params->enableVsync) {
|
if (params->enableVsync) {
|
||||||
// We will use mailbox mode if present, otherwise libplacebo will fall back to FIFO
|
// FIFO mode improves frame pacing compared with Mailbox, especially for
|
||||||
presentMode = VK_PRESENT_MODE_MAILBOX_KHR;
|
// platforms like X11 that lack a VSyncSource implementation for Pacer.
|
||||||
|
presentMode = VK_PRESENT_MODE_FIFO_KHR;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// We want immediate mode for V-Sync disabled if possible
|
// We want immediate mode for V-Sync disabled if possible
|
||||||
|
|||||||
Reference in New Issue
Block a user