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;
|
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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue