diff options
| author | NotRexed <therealnothingfn@gmail.com> | 2026-11-27 10:53:32 -0500 |
|---|---|---|
| committer | NotRexed <therealnothingfn@gmail.com> | 2026-11-27 10:53:32 -0500 |
| commit | 41d2189a577a0da76a40d900263e2621c244ed3a (patch) | |
| tree | 387d4eb8434541b091c4eb3703bb482c788c021d /tests/test_run_gpu_tests_python_assembler.py | |
| parent | df2b3a47693fb31b1b938a306c29a3cc6a8cc338 (diff) | |
Write-combined title memory: shader writes to big copies stay on the card (LEONIDA_WC_NO_BACK, off)
The title's write-combined memory (the console's 0x400 protection bit)
is what its CPU writes and does not read. With LEONIDA_WC_NO_BACK=1 a
host copy with a card side, of LEONIDA_WC_NO_BACK_MIN_KB (1024) or more,
lying wholly in such memory has no write-back: what its shaders write is
not hashed, compared, fetched or landed. xmem notes the regions at
XMemVirtualAlloc and forgets them when freed; the frame line says how
many MB of declared writes were left on the card. LEONIDA_AB can turn
it on and off while the title runs.
Ported from trustno1-coder/VIctory-NVIDIA 50c15a1 and 2f81d0c
(readmet3xt-lab, the foxhound base; GPL-3.0); the mapped-copy half
(VICTORY_WC_BAR) is left out. Measured there on an RTX 4070 SUPER with a
1 MB floor (runs xd-base-b, xd-wc1m): gameplay 38.3 -> 33.3 ms a frame,
cutscene median 47.3 -> 36.3 ms, p95 205 -> 142 ms; 360 of 730 MB a
frame of compares lay in this memory. Off by default because it can
change the picture: without the floor cutscenes went near black (small
results the title reads back came back stale); with it the fixed frames
matched the plain run. The floor defaults to 1024 here (the source's
launcher value; its code default was 0).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'tests/test_run_gpu_tests_python_assembler.py')
0 files changed, 0 insertions, 0 deletions