Linux: ~2x fps, no residency waits under Wine (VICTORY_WAIT_RESIDENT default off there) #40
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
reviewed
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Slaktarn700--SlaktarnVI!40
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-40"
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?
@Timmybread22 on GitHub · 2026-12-01 07:22 UTC · original
Timmybread22:pr-waitresident→main· +9 −1 · 1 files · 1 commits · closed without mergingAbout 2x fps on Linux/Proton.
wait_resident()is on everywhere today. Under Wine, vkd3d-proton binds new memory when it is made (there is no later mapping by the system), so each wait is a round trip on our queue for nothing.This makes the default off under Wine only (
crate::shadow::on_wine()); Windows keeps the waits that fixed the device losses of 2026-11-25.VICTORY_WAIT_RESIDENT=1turns them back on under Wine,=0still turns them off anywhere.Measured on current
main(CachyOS, Proton Experimental + both patches, RX 6900 XT / RADV Mesa 26.3, Ryzen 9 5900X, preset S70, same save, 2-minute runs, median rendered fps):mainas isVICTORY_WAIT_RESIDENT=0No crashes or device losses in those runs; I have also played with the waits off under Wine for two days.
🤖 Generated with Claude Code
@Slaktarn700 on GitHub · 2026-12-01 14:56 UTC · original
Your finding is right: those waits cost. But turning them off is not safe: our own test of buffers made while the card reads (
buffers_made_under_readers, on Proton here) lost the device in 4 of 4 runs without them, so I keep them. Whatc11828fdoes instead: small buffers come 64 at a time with one wait (VICTORY_BATCH_BUFFERS=1, the script's default now): 26,000 waits in two minutes became 10,300, 14-16 s added up over threads became 5 s, the same frame rate here. My PC is not CPU-bound the way yours is. Could you try it and say what your frame rate does?@Slaktarn700 on GitHub · 2026-12-05 03:25 UTC · original
Thank you. Since 2026-12-02 main is on a new base (VIctory-xmem), and the files this changes are not there anymore, so it cannot merge as it is. If the same idea helps on the new base, a new pull request against main is welcome.
@Slaktarn700 on GitHub · 2026-12-05 05:01 UTC · original
Thank you. The new base (VIctory-xmem, on main since 2026-12-02) has no residency waits at all: the game's memory is mapped straight into the card, so the cost this removed is gone. The code this changes is not there anymore. Closing.
Pull request closed