Linux experiments on top of SlaktarnVI: WC memory in VRAM (+3-6 fps), list cap 512, DirectStorage readers, guard work (results and branches) #15
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 Fran-co-F on 2026-11-29T03:25:19Z.
Thanks for SlaktarnVI. We spent a few days measuring on top of it and want to hand back what we found, good and bad. All of it is opt-in switches, off by default, on branches of a fork: Fran-co-F/SlaktarnVI (
vram-wc,dstorage-workers). None of it is ready to merge as is (see "Known problems").Setup: Ryzen 7 9800X3D, RX 9070 XT 16 GB, 31 GB RAM, CachyOS. Your S70 preset, with two differences: a self-built Wine 11.17 and a patched vkd3d-proton, both needed for F1. Same save for every run: the prison cell, plus 15-minute play sessions.
What helped
F1/F2: write-combined title memory in VRAM, in place (
VICTORY_INPLACE=1 VICTORY_INPLACE_WC_ONLY=1 VICTORY_INPLACE_BLOCKS=1 VICTORY_VIEW_WC_VRAM=1, plusVKD3D_INPLACE_VRAM=1on the vkd3d side)0x400(WC), and pure-WC view sections, get VRAM at the title's own addresses. Everything in a 32 MiB block moved to the card is placed in place.The prologue cutscene goes from 19.9 to 28.7 fps.
VICTORY_LATE_WAIT_LISTS=512: the submit thread stops waiting for "lists in the air" (median 4 ms a frame, peaks up to 48 ms, down to 0), with 0 tables refused. Its work falls from about 21 to 13 ms in the static scene.What did not help (so nobody repeats it)
VICTORY_DSTORAGE_WORKERS, new) withVICTORY_DSTORAGE_STAGING_MB=128. Scene-cut hitches arepreadlatency (about 2 ms per 76 KB request, NVMe 20 % busy), not BCPack (≤1.5 workers) or staging. More synchronous readers did not clearly fix the worst windows.VICTORY_DSTORAGE_IO=overlapped|directdidn't either.VICTORY_PORT_GUARD=1: protect time ×4 under Wine's globalvirtual_mutex.VirtualProtect: blocks are isolated, 1.1-1.3 per call.COPY_BESIDE/STORE_BESIDE/WRITE_SITES: about 2 ms off the submit thread, but wrong textures on screen in some combinations.VICTORY_CARD_PREFETCH): it never triggers, because every submission with card copies is flown through the relay. The 2.3 extra waits a frame (about 10 ms) for 0.1-0.2 MB happen on the relay thread.Known problems
VICTORY_LATE_WAIT_LISTS=512+ 48 DirectStorage workers + 128 MiB staging, all at once), driving left textures and assets unloaded or badly loaded, and some flickered. The fork as is, driving the same way under the same Wine, did not show this. We did not isolate which switch causes it.VICTORY_SKIP_VIEW_KERNEL=1(skips GetWriteWatch calls that are refused anyway) also showed wrong textures once, so don't trust it either.The real limit while playing
Fps tracks draws per frame (correlation −0.68): about 29 fps under 3,000 draws, 12 fps over 7,000. The street runs 6,000-14,000. Memory work moves a cost that is roughly fixed per frame, while draw translation grows. Details and the upstream discussion: Marvisak/VIctory#3703, #2586.
Imported from Slaktarn700/SlaktarnVI. Originally posted by Slaktarn700 on 2026-11-29T11:17:40Z.
Thank you for measuring this so carefully and for listing what did not help. I checked
VICTORY_LATE_WAIT_LISTSin my own logs instead of trying it: no lists were in the air there, so it has nothing to win on my PC. I will not merge the in-place WC work yet because of the flicker and missing glyphs you describe and because it needs a patched Wine and vkd3d-proton. If you find out which switch causes the missing textures, please post it here.