Repository navigation
Notes from a second RTX 5090 and opt-in small-buffer residency - #1
Conversation
Copy-backs into write-watched title memory reset the pages' write-watch bits afterwards, so the layer no longer takes its own output in again as a title write. Off by default. Applies to the finished three-PR source that build.sh leaves; one conflict against the candidate's writing_exact path was resolved by keeping writing_exact. Original: Yorivel, fxceless/victory-fork#1188 (fork commit 0460bf535). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On a host that caps the view heap (NVIDIA: 1,000,000 slots for the title's 1,245,184), VICTORY_DYNAMIC_SLOTS=<n> gives the dynamic-slot ring n slots (2^18 up to half the heap), taken from the title's slots kept in place; the allocator's bitmap, free count and wrap follow the heap's own count. Unset: unchanged. Idea and first implementation: trustno1-coder, trustno1-coder/VIctory-NVIDIA@a9632bc This version: OctoAlgo, adapted to the candidate's single `kept` lock. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
VICTORY_CARD_BUFFERS_MIN_KB=<KiB> sets the least size of a title buffer whose host copy lives in the card's memory below the 1 MiB floor of VICTORY_CARD_BUFFERS_MIN_MB (64 = every buffer). The copies under 1 MiB are thousands of small buffers that shaders load, store and do atomics on over the bus. Unset: unchanged. Logs one line when set. Original: fxceless, fxceless/victory-fork commit c36971b (the card_limits part only; its placement counters are not ported). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Measured results from another CachyOS + RTX 5090 setup: small buffers in the card's memory (CARD_BUFFERS_MIN_KB=64, +33.5 %), the view-tree wineserver (CachyOS/wine-cachyos#50 by ajsem1337, after neonbyte1), the title's pool-empty breakpoint on new games (Marvisak#698), TEXTURE_BACK for the Chapter 1 boat (fxceless/victory-fork#999), the ambient tint that matched the PS5 reference, and frame-rate switches measured on fork main (fxceless/victory-fork#1014, Marvisak#1188, 5d659e0). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks for testing the PR995 kit and for offering to help. We reproduced the residency change on our RTX 5090 with indexed GE-Proton 11-14. With a 1536 MiB copy budget and the 64 KiB floor, the run peaked at 3,726 GPU-resident buffer copies and measured 3.24 FPS across 300 presents after the initial world load. The default 1 MiB control on the same binary, checkpoint and 1536 MiB budget measured 2.61 FPS and peaked at 98 GPU-resident copies. The observed difference was +0.63 FPS (+24%) across presents 301–600 after the first world shader bind. The 64 KiB run was slower in the first 90 seconds after the bind. The two runs showed the same cell and progressed through different camera views in the sample, so the full 0.63 FPS difference cannot be isolated to this setting. We're keeping the default at 1 MiB. Your 6.14 to 8.19 FPS result was measured on the separate fork build. The revised kit applies the small-buffer setting through the existing locked build and keeps the current default. We reproduced the README's relative patch-path failure. The two other patches exposed correctness issues in this renderer. The larger ring reassigns some title indices that shaders can still read directly, and the quiet copy-back's write-watch reset can erase a concurrent title store. We're keeping the original measurements with their configuration and testing the small-buffer change on its own. On our PR995 face tests, the eyes and teeth render but the cheek surface is still missing, and the hair is bundled. We've built the full Marvisak#854/Marvisak#993 pairing on the pinned |
Hi @ThomasHFWright, congrats on walking the cell and talking to an NPC with a controller, and thanks for the Marvisak#1006 credit. Our setup is very close to yours (and we've played through the prologue into Chapter 1 on it): RTX 5090 (plus a 5070 Ti), CachyOS, NVIDIA 620.73.04, Proton 11 / GE-Proton 11-14. Here is what helped us that I couldn't find on
mainyet. It's docs plus three small opt-in kit patches. Feel free to take any part of it, or none.Docs (
docs/linux-notes-5090.md):VICTORY_CARD_BUFFERS_MIN_KB=64withVICTORY_CARD_BUFFERS_MB=1536puts all title buffers' copies in the card's memory, not just those of 1 MiB or more. On our 5090 it gave +33.5 % (6.14 → 8.19 FPS, ±6.4 %): waiting for the GPU went from 60 to 23 ms and copy-back from 90 to 62 ms. Keep 1536; with 1024 it was about 50 % slower. Your renderer hasCARD_BUFFERS_MBbut notMIN_KB, so it's the third kit patch (from fxceless's c36971b). One caveat: 4 of our 17 runs came up with a dark cell and very few shader lookups, with the switch on and off. We haven't found the cause, so please check the picture.0x5149aecstop on new games is the title's own pool-emptyint3during the intro's prestreaming (all 45,000 instance slots full, VIctory#698). A save made after the intro avoids it, which matches what you found.VICTORY_TEXTURE_BACK=1(fork#999) fixes the sinking boat in Chapter 1. The pre-migrationlinux-edgetree has it, but the PR995 renderer doesn't.1,0.6,0.4(Runtime knob to write bytes into a loaded module (VICTORY_PATCH=<module>:<rva>:<bytes>) Marvisak/VIctory#917 + Belobug) matched the PS5 reference at the cell window for us.CARD_HASH_WIDE+6.7 % andTABLE_STAGES+7.1 %. Together withCARD_BUFFERS_MB=1536,DYNAMIC_SLOTSandBACK_QUIETthey gave +15.8 % (5.68 → 6.58 FPS; the noise range is ±6.3 %).Kit patches (all off by default; they go on top of the source that
build.shleaves):back-quiet.patch.txt:VICTORY_BACK_QUIET=1from fork#1188 by Yorivel. The copy-back's own writes stop counting as title writes. BitWuehler measured 122 → 51 ms CPU preparation on GE-Proton with a 5080.dynamic-slots.patch.txt:VICTORY_DYNAMIC_SLOTS=524288. It makes room for more dynamic view slots under NVIDIA's 1,000,000-slot heap cap. The idea is trustno1-coder's, from trustno1-coder/VIctory-NVIDIA@a9632bc.card-buffers-min-kb.patch.txt:VICTORY_CARD_BUFFERS_MIN_KB=<KiB>, see above.Tested (RTX 5090, Xvfb, release build of
build.sh's source at 438872d (7406afb + candidate, upstream, next and followup patches) + these three patches, your preset, our story save):BACK_QUIET=1,DYNAMIC_SLOTS=524288,CARD_BUFFERS_MIN_KB=64,CARD_BUFFERS_MB=1536): 4.91 FPS over world frames 300–600. All three logged that they were active. Copy-back wrote 1.29 M stretches quietly, 3,848 buffer copies went to the card's memory (98 without the switch), and the dynamic ring held 499,999 slots.HEAP_SLOT_CACHE=1was added. We didn't take screenshots, so please check the picture.Faces: on our stack, faces render fully: Lucia's close-ups in the diner and bar have skin, eyes and a closed jaw. We haven't bisected which piece matters, so these are only candidates, not a verified cause. Here's what our tree has that the PR995 renderer doesn't:
46bf535), including GPU: upload a host-copied texture again once the title writes its memory Marvisak/VIctory#1210 (a moved view keeps the title's minimum level), CI: build and test the host-independent crates on Linux Marvisak/VIctory#1241 (card-written textures copied from the card) and GPU: one aligned copy per unaligned SRV range per list (follow-up to #986) Marvisak/VIctory#1260;DYNAMIC_SLOTS: without it, a full dynamic-slot ring drops draws. Your logs show this asno free dynamic descriptor slots: a table is not made(logged once). That line did not appear in our runs of your renderer in the cell, with or without the switch, so it's probably not the cause there.CARD_HASH_WIDEandTABLE_STAGESwere too big to port onto the PR995 renderer cleanly, so they're only in the notes. We also have our own rework of the host descriptor heap's lock (one global lock split into striped per-slot locks, so the heap sync can run on several threads: +8.3 % ± 3.8 % for us), but it's written against fork main, not the PR995 renderer. Happy to share it if it's useful.Is there anything specific you'd like us to focus on? For example, a problem you're stuck on that we could test on our 5090 + 5070 Ti CachyOS setup. No pressure either way.
(Investigated with an AI coding assistant; all numbers are from runs on our PC.)
🤖 Generated with Claude Code