Files
cool_fox/scripts
= 8a59cb3ccc GPU: VICTORY_WC_NO_BACK, from VIctory-NVIDIA: shader writes into write-combined memory stay on the card
Ported from trustno1-coder/VIctory-NVIDIA (shadow.rs). The title asks
for its big GPU buffers with the console's write-combined bit (0x400):
memory its CPU writes and does not read. XMemVirtualAlloc now notes those
regions (freed with the rest of title memory), and with
VICTORY_WC_NO_BACK=1 a card copy that lies wholly in one, of at least
VICTORY_WC_NO_BACK_MIN_KB, keeps what shaders write there on the card:
no snapshot, compare, fetch or merge into title memory. Off by default;
the frame line counts the ranges left.

Risks as upstream of it noted: the CPU reading such memory sees older
bytes, and a page the CPU writes goes up whole over shader bytes in it.
With every copy left (no minimum) small results the title reads back
went stale there; 1024 KB is what that launcher runs with.

RTX 5060, GE-Proton11-14, prologue, warm cache (17 samples each):
copying back 27.4 -> 10.9 ms a frame, preparing (median) 78.8 -> 66.5 ms,
frame 115 -> 120 ms (the card is 95 % busy here: within noise), same
pictures, no crash. play-proton.sh turns it on.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 23:54:38 +01:00
..