fix(vk): present ahead's vk_replay.cpp half, lost in #1720's merge (main doesn't link) #1858
No reviewers
Labels
No labels
accessibility
autorelease: pending
autorelease: tagged
bug
dependencies
documentation
duplicate
enhancement
github_actions
good first issue
help wanted
invalid
question
testing wanted
wontfix
No milestone
No assignees
1 participant
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Hookshot!1858
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/present-ahead-replay"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Main doesn't link since #1720 merged. The AppImage job says:
Why: #1720's last commit (
a259978b) resetvk_replay.cppto main's copy so main could be merged in, with "present ahead re-applied next". The PR was merged before that re-apply. Main ended up with:vk_framegen.hdeclaringpresent_commitandpresent_defer_into;vk_framegen.cppcalling them;Fix: put back the 24 lines from the PR's previous head (
7006ea0f) on current main:present_defer_intothread-local;present_image's deferral after its copy's submit;present_commit;present_image's present split out aspresent_out.Main's
present_imagenow checksvkQueueSubmit2for device loss, and that check stays ahead of the deferral.Present ahead only runs for a paced 2x frame-generation set with two spare swapchain images (#1720's conditions). Everything else presents through
present_outexactly as before. CI compiles and tests it here, includingtests/test_present_ahead.py, which readsbool present_commit(from vk_replay.cpp. I'll check frame generation 2x pacing in game before relying on it.🤖 Generated with Claude Code