Linux: ~2x fps, no residency waits under Wine (VICTORY_WAIT_RESIDENT default off there) #40
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from Slaktarn700/SlaktarnVI. Originally posted by Timmybread22 on 2026-12-01T07:22:29Z.
About 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
Imported from Slaktarn700/SlaktarnVI. Originally posted by Slaktarn700 on 2026-12-01T14:56:33Z.
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?View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.