@@ -9371,11 +9371,12 @@ void MenuCommon::RenderVsyncSettings(RenderMenuContext& ctx)
93719371 }
93729372 }
93739373
9374- // Vulkan games, and D3D games under Proton once dxvk/vkd3d-proton's swapchain is seen (its present mode list)
9375- if (state. swapchainApi == Vulkan || state. vkPresentModeMask != 0 )
9374+ // Vulkan games, D3D games under Proton once dxvk/vkd3d-proton's swapchain is seen (its present mode list), and
9375+ // native D3D games (Windows), where FIFO, Mailbox and Immediate map to the DXGI present's sync interval and tearing
93769376 {
9377- const bool underProton = state.swapchainApi != Vulkan;
9378- SectionTitle (underProton ? " Present Mode (Proton)" : " V-Sync Settings" );
9377+ const bool underProton = state.swapchainApi != Vulkan && state.vkPresentModeMask != 0 ;
9378+ const bool nativeDxgi = state.swapchainApi != Vulkan && state.vkPresentModeMask == 0 ;
9379+ SectionTitle (underProton ? " Present Mode (Proton)" : (nativeDxgi ? " Present Mode" : " V-Sync Settings" ));
93799380 {
93809381 ScopedID sectionId { " Vulkan Present Mode" };
93819382
@@ -9395,7 +9396,9 @@ void MenuCommon::RenderVsyncSettings(RenderMenuContext& ctx)
93959396 {
93969397 const auto & entry = VulkanHooks::PresentModes[i];
93979398
9398- if ((state.vkPresentModeMask & (1u << i)) == 0 )
9399+ if (nativeDxgi ? (entry.mode != VK_PRESENT_MODE_IMMEDIATE_KHR && entry.mode != VK_PRESENT_MODE_MAILBOX_KHR &&
9400+ entry.mode != VK_PRESENT_MODE_FIFO_KHR )
9401+ : (state.vkPresentModeMask & (1u << i)) == 0 )
93999402 continue ;
94009403
94019404 if (ImGui::Selectable (entry.name , forced.has_value () && forced.value () == entry.mode ))
@@ -9415,7 +9418,10 @@ void MenuCommon::RenderVsyncSettings(RenderMenuContext& ctx)
94159418 " FIFO Relaxed: V-Sync, tears when below the refresh rate.\n "
94169419 " FIFO Latest Ready: V-Sync, shows the newest ready frame at each refresh.\n\n "
94179420 " Mailbox and FIFO Latest Ready can drop generated frames above the refresh rate.\n "
9418- " Only modes the display supports are listed." );
9421+ " Only modes the display supports are listed.\n\n "
9422+ " D3D games on Windows: FIFO is V-Sync, Mailbox is no V-Sync without tearing (windowed or\n "
9423+ " borderless), Immediate is no V-Sync with tearing. Applies at the next frame and takes\n "
9424+ " priority over Override Vsync." );
94199425
94209426 if (state.vkGamePresentMode >= 0 )
94219427 ImGui::Text (" Game's present mode: %s" , VulkanHooks::PresentModeName (state.vkGamePresentMode ));
0 commit comments