Skip to content

Dynamically update reported Vulkan present mode#1988

Merged
flightlessmango merged 2 commits intoflightlessmango:masterfrom
silvanshade:feature/update-present-mode-with-swapchain-maintenance
Mar 15, 2026
Merged

Dynamically update reported Vulkan present mode#1988
flightlessmango merged 2 commits intoflightlessmango:masterfrom
silvanshade:feature/update-present-mode-with-swapchain-maintenance

Conversation

@silvanshade
Copy link
Contributor

This PR updates overlay_QueuePresentKHR to read the present mode associated with the swapchain.

This allows to detect when the present mode has been changed dynamically when using swapchain maintenance.

This fixes the problem where the present mode reported for vkd3d-proton is often incorrect, for example if vsync is switched off after the application is started.

This PR also includes a local wrap for updated Vulkan headers pending an upstream PR

Related issues:

This commit uses a local wrap for vulkan-headers 1.4.345 corresponding
to an upstream PR for wrapdb which is not yet merged.
This fixes an issue where if an application used swapchain maintenance to update the present mode, it would not be reflected correctly by the present mode reported by the overlay.
@flightlessmango flightlessmango merged commit 7f4201f into flightlessmango:master Mar 15, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants