mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2025-01-22 23:55:02 +00:00
Use FIFO present mode for VSync
This commit is contained in:
parent
fc6c51c75a
commit
ceca83346b
1 changed files with 3 additions and 2 deletions
|
@ -383,8 +383,9 @@ bool PlVkRenderer::initialize(PDECODER_PARAMETERS params)
|
|||
|
||||
VkPresentModeKHR presentMode;
|
||||
if (params->enableVsync) {
|
||||
// We will use mailbox mode if present, otherwise libplacebo will fall back to FIFO
|
||||
presentMode = VK_PRESENT_MODE_MAILBOX_KHR;
|
||||
// FIFO mode improves frame pacing compared with Mailbox, especially for
|
||||
// platforms like X11 that lack a VSyncSource implementation for Pacer.
|
||||
presentMode = VK_PRESENT_MODE_FIFO_KHR;
|
||||
}
|
||||
else {
|
||||
// We want immediate mode for V-Sync disabled if possible
|
||||
|
|
Loading…
Reference in a new issue