Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

anvil: fix vulkan fifo mode #1629

Merged
merged 3 commits into from
Jan 7, 2025
Merged

anvil: fix vulkan fifo mode #1629

merged 3 commits into from
Jan 7, 2025

Conversation

cmeissl
Copy link
Collaborator

@cmeissl cmeissl commented Jan 6, 2025

This finally makes vulkan fifo mode work correctly on anvil.
Tested with vkmark -p fifo which now outputs steady 60fps on my laptop.

closes #1583

limiting the commit timer to the primary output might
result in a one frame de-sync between outputs with very
similar output refreshes. this is especially noticeable on
when showing the same client buffer across multiple
gen-locked outputs.
the presentation feedback is calculated using the primary scan-out output,
so we have to make sure we have the correct one to not introduce an
unnecessary delay during client startup and output migration.
commit timing aware clients will use timestamps based on
the refresh received through the presentation feedback.
we have to use the same precision when calculating the frame
target for signaling the commit timer.

for example mesa vk will subtract 500us from the estimated vsync
when setting the commit timer timestamp. rounding to millisecond
precision will break this logic.
@cmeissl cmeissl requested a review from Drakulix January 6, 2025 22:13
@Drakulix Drakulix merged commit e1a863b into master Jan 7, 2025
13 checks passed
@cmeissl cmeissl deleted the fix/vk_fifo branch January 7, 2025 13:36
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.

Tracking Issue: support for vulkan fifo presentation mode (client)
2 participants