VICTORY_BACK_READS=2, first run (RTX 3050 4 GB, Series S): of the pages looked at, 62 % untouched before the next store, 0.2 % possibly read by the title #1173

Closed
opened 2026-11-26 03:58:52 +00:00 by github-bot · 1 comment
Owner

@⁠Dathinel on GitHub · 2026-11-25 22:41 UTC · original

The README lists VICTORY_BACK_READS as "the measuring step before any lazy copy-back. Not run yet". Here is one run of it, in case the numbers are useful. Counts only; no title data attached.

Machine / tree. RTX 3050 Laptop 4 GB (32-lane waves), Ryzen 7 7435HS (8c/16t), --console series-s. main 9c184b3 + #1081 + #798 + #1002 + #592. Diagnostics build. Run 253 switch set (so VICTORY_BACK_OWN_VIEW=1) + VICTORY_TEXTURE_BUDGET_MB=1536 + VICTORY_BACK_READS=2. 345 s: menus, opening cutscene, into the first gameplay scene. No device loss.

Why I looked. In the world on this machine the frame log gives, as medians over the last 40 world lines of the run before this one (same set without BACK_READS): 213 ms a frame, of which 33.0 ms "copying back" 38.2 MB, 33.4 ms copies (82 MB), 12.9 ms "on the GPU". The copy-back costs about as much as all the copies going in.

The last three backreads windows (per frame; the earlier ones are menus and all zero):

window 1 (258 frames) window 2 (256) window 3 (256)
stored back 311 stretches, 12.9 MB, 239 pages 847, 38.1 MB, 598 pages 915, 39.0 MB, 651 pages
of it through views of our own 0.59 MB 1.10 MB 20.0 MB
page stored again the same or the next frame 236 637 689
taken by a refresh of the copy that stored 225.5 561.4 321.0
taken by a refresh of another copy 102.7 132.9 169.0
taken by the look for title bytes under flights 26.1 158.6 133.5
taken by a title copy or a fill 4.5 8.1 10.0
guard clean after the store / title wrote 13.4 / 0.2 21.2 / 0.4 441.1 / 12.6
looked at (one page in 8) 0.7 1.6 48.4
untouched 0.2 1.0 30.0 (1.42 MB)
written by the title 0.0 0.1 1.1
touched with readers of ours, no write 0.5 0.6 17.1
touched by something else (the title's reads at most) 0.0 0.0 0.1 (0.00 MB)
4 KiB pages touched, of those looked at 4.9 of 7.3 8.5 of 20.7 242.7 of 619.5

What I read in it (window 3, the only one with a real sample):

  • Of the pages looked at, 62 % were touched by nothing before the next store, 35 % only by readers of the layer's own, 2 % were written by the title, and 0.2 % may have been read by the title.
  • About three quarters of the stored pages are stored again within a frame.
  • So on this run nearly all of what comes back is either overwritten by the next store or only read by the layer itself; the title's own reads of it are close to none.

Limits.

  • One run, one scene (end of the opening cutscene into the prologue), 256 frames with a meaningful sample.
  • Only pages stored through views of our own are looked at (20 of 39 MB in window 3); the rest is counted and never looked at.
  • One page in 8 is sampled.
  • I have not checked what "readers of ours" need those bytes for; if they do need them, the copy-back cannot simply be skipped for those pages.
  • Diagnostics build; the frame times above are from that build.

If another mode (=1, =alt) or a longer session in a particular place would help, say which and I will run it on this card.

AI-assisted (Claude Code); run and read on the machine above.

**@⁠Dathinel** on GitHub · 2026-11-25 22:41 UTC · [original](https://github.com/fxceless/victory-fork/issues/1173) The README lists `VICTORY_BACK_READS` as "the measuring step before any lazy copy-back. Not run yet". Here is one run of it, in case the numbers are useful. Counts only; no title data attached. **Machine / tree.** RTX 3050 Laptop 4 GB (32-lane waves), Ryzen 7 7435HS (8c/16t), `--console series-s`. `main` 9c184b3 + #1081 + #798 + #1002 + #592. Diagnostics build. Run 253 switch set (so `VICTORY_BACK_OWN_VIEW=1`) + `VICTORY_TEXTURE_BUDGET_MB=1536` + `VICTORY_BACK_READS=2`. 345 s: menus, opening cutscene, into the first gameplay scene. No device loss. **Why I looked.** In the world on this machine the frame log gives, as medians over the last 40 world lines of the run before this one (same set without `BACK_READS`): 213 ms a frame, of which 33.0 ms "copying back" 38.2 MB, 33.4 ms copies (82 MB), 12.9 ms "on the GPU". The copy-back costs about as much as all the copies going in. **The last three `backreads` windows (per frame; the earlier ones are menus and all zero):** | | window 1 (258 frames) | window 2 (256) | window 3 (256) | |---|---|---|---| | stored back | 311 stretches, 12.9 MB, 239 pages | 847, 38.1 MB, 598 pages | 915, 39.0 MB, 651 pages | | of it through views of our own | 0.59 MB | 1.10 MB | 20.0 MB | | page stored again the same or the next frame | 236 | 637 | 689 | | taken by a refresh of the copy that stored | 225.5 | 561.4 | 321.0 | | taken by a refresh of another copy | 102.7 | 132.9 | 169.0 | | taken by the look for title bytes under flights | 26.1 | 158.6 | 133.5 | | taken by a title copy or a fill | 4.5 | 8.1 | 10.0 | | guard clean after the store / title wrote | 13.4 / 0.2 | 21.2 / 0.4 | 441.1 / 12.6 | | looked at (one page in 8) | 0.7 | 1.6 | 48.4 | | untouched | 0.2 | 1.0 | 30.0 (1.42 MB) | | written by the title | 0.0 | 0.1 | 1.1 | | touched with readers of ours, no write | 0.5 | 0.6 | 17.1 | | touched by something else (the title's reads at most) | 0.0 | 0.0 | 0.1 (0.00 MB) | | 4 KiB pages touched, of those looked at | 4.9 of 7.3 | 8.5 of 20.7 | 242.7 of 619.5 | **What I read in it** (window 3, the only one with a real sample): - Of the pages looked at, 62 % were touched by nothing before the next store, 35 % only by readers of the layer's own, 2 % were written by the title, and 0.2 % may have been read by the title. - About three quarters of the stored pages are stored again within a frame. - So on this run nearly all of what comes back is either overwritten by the next store or only read by the layer itself; the title's own reads of it are close to none. **Limits.** - One run, one scene (end of the opening cutscene into the prologue), 256 frames with a meaningful sample. - Only pages stored through views of our own are looked at (20 of 39 MB in window 3); the rest is counted and never looked at. - One page in 8 is sampled. - I have not checked what "readers of ours" need those bytes for; if they do need them, the copy-back cannot simply be skipped for those pages. - Diagnostics build; the frame times above are from that build. If another mode (`=1`, `=alt`) or a longer session in a particular place would help, say which and I will run it on this card. AI-assisted (Claude Code); run and read on the machine above.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:58:52 +00:00
Author
Owner

@⁠Dathinel on GitHub · 2026-11-25 22:50 UTC · original

44bff61 now carries the same measurement over 49 minutes (run 277: 60 % untouched, 36 % only the layer's refreshes, 3.8 % written by the title, 0.19 % anything else). The short run above, on a 4 GB card and the Series S profile, agrees with it (62 / 35 / 2 / 0.2), so nothing more is needed here. Closing. AI-assisted (Claude Code).

**@⁠Dathinel** on GitHub · 2026-11-25 22:50 UTC · [original](https://github.com/fxceless/victory-fork/issues/1173#issuecomment-7176846539) 44bff61 now carries the same measurement over 49 minutes (run 277: 60 % untouched, 36 % only the layer's refreshes, 3.8 % written by the title, 0.19 % anything else). The short run above, on a 4 GB card and the Series S profile, agrees with it (62 / 35 / 2 / 0.2), so nothing more is needed here. Closing. AI-assisted (Claude Code).
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/fxceless--victory-fork#1173
No description provided.