residency: VICTORY_PAGES_CPU_QUIET keeps pages our copies read off the card for a while (off by default) #126
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/lobomfz--VIctory-xmem!126
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-126"
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?
@AndreRese on GitHub · 2026-12-01 23:04 UTC · original
AndreRese:pages-cpu-quiet→main· +42 −4 · 3 files · 3 commits · closed without mergingOff by default. With
VICTORY_PAGES_CPU_QUIET=<ticks>, a page of title memory that our reads cover stays off the card for that many ticks of 200 ms (75 = 15 s). These are the reads that refresh the host's copies, such as texture refreshes and buffer copies. Pages on the card go down at the next wave, asread_throughalready does.Why it's still needed after #93 and the pull changes
On this card (RX 7600 XT, Ryzen 7 5800X), the card's own copies of title memory ran at 14-25 MB/s and the processor's reads at 10-13 MB/s. Since 8e8d4b6/ff57de2,
pulltherefore turns the copies off after the first 64 MiB, and the processor reads the card's memory itself.read_throughtakes those pages down, but they go up again once their strike runs out, while the same refreshes still read them every frame.A play session from a save with ray tracing on, on
32b136ewithout the switch, read 4,296 MiB of title memory from the card in 4.4 minutes. It ran at 17.5 fps, withpreparing_ms12.2.What changed since it was closed
copy_mappedto the top ofhost::read, whichcopy_mapped,read_sparse,read_piecesandread_intoall go through. Reads that the card's copies serve now count too. Before,pull::readreturned beforeread_through, so the pages it read stayed on the card and were read back again every frame. Without the switch, nothing changes.Measured
All runs: RX 7600 XT, Series S,
VICTORY_FSR_HOST=1, 1080p, ray tracing on. Figures come from the log's 5 sstats: framelines.Same build (this branch, diag), same day, unattended:
scripts/local/bench.shpresses through the menus, then stays 240 s in the opening scenes.=75The opening scenes read little from the card either way, so the difference there is small.
Played from a save, where the read-back shows. These runs are on different builds:
32b136e, withoutf7f0360+ this switch (=75)Test plan
pullstays off)🤖 Generated with Claude Code
@AndreRese on GitHub · 2026-12-01 23:58 UTC · original
RT ON is causing copy_back to return, need more testing, but this quick fix partially resolves it
@AndreRese on GitHub · 2026-12-02 11:48 UTC · original
Problem already solved on PR #93
@AndreRese on GitHub · 2026-12-02 22:21 UTC · original
Reopening: on current main this card still reads title memory from the card every frame (4.3 GB in a 4.4 min session from a save, RT on), because
pullturns its copies off here and the pages go back up. Merged main and moved the hook intohost::readso reads served by the card's copies count too; numbers in the description.@goldfishdev on GitHub · 2026-12-02 22:36 UTC · original
superseded by #255
Pull request closed