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/fxceless--victory-fork#866
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@ghost on GitHub · 2026-11-25 11:06 UTC · original
AI-assisted (Claude Code). Counts, addresses and log lines only; no game data.
Summary. With
main(310c6eb) + #571 on an RTX 5080, about 500 of the 4 MiB window copies of title memory hold bytes that differ from title memory after their refresh, while the title's bytes there no longer change. They all appear in the first 2.5 minutes of the world, in every launch. This is the fault class of #571 (memory changed with nothing to tell of it), still present with #571 in, and I think it is the likeliest reason pictures differ from launch to launch (a wall missing in 1 launch of 10 with #571, rooms lit by their lamps in some launches only).How measured.
VICTORY_REFRESH_CHECK=1as it is fills its 64-line cap in one burst on buffers the title rewrites all the time (here an 11,059,200-byte copy at world start in one launch, the 182 MB heap during loading in another), so it cannot tell a write that raced the look from a copy that stays wrong. I added a second counter toShadow::refresh_checklocally: a block is counted when the copy differs from title memory and the title's sample is the same as at the previous look, four looks in a row. Per copy, a line at 1, 4, 16, 64... such blocks. Patch below (diagnostic only, behind the same switch).Counts (three launches of 300 s, defaults, scripted Enter until 70 s, diag build, Series X profile):
When the window copies are first reported, in 30 s bins from the first world frame (launch 1 / launch 3): 387 / 510, 282 / 233, 157 / 211, 150 / 87, 99 / 9, 15 / 1, 4 / 5, then none. Nothing before the world starts.
The windows are
on_the_card=false window=true, 4,194,304 bytes, spread over the title's pool (0x7xxxxxxxx,0xbxxxxxxxx,0xcxxxxxxxx).What I am not sure of
on_the_card=true(several of 11 to 52 MB counted up to 1,024 times). For a copy on the carddatais only part of the copy, so I do not trust the comparison there and leave those out of the claim.Diagnostic patch (against
310c6eb,crates/victory-gpu/src/shadow.rs):@ghost on GitHub · 2026-11-25 12:01 UTC · original
AI-assisted (Claude Code). Counts only.
Gone on
mainf85101b. Same card, same diagnostic (the patch above on top off85101b), four launches of 300 s, defaults:310c6eb+ #571f85101bSo
a26859f's guard of the other views of a physical page (VICTORY_VIEW_GUARD) covers what this issue counted, the big copies on the card included. I had the same idea running locally in parallel (twins of a guarded block made read-only, a write at one marks the others written): four launches with it also counted 0, which is a second confirmation that this was the cause; it is not needed now and I am not sending it.What it did for the picture here: the four
f85101blaunches show the same frames at the same points for the first time on this card (cell walls, posters, the uniform's colour, the faces in the opening scenes), where before no two launches agreed. No device loss, no title stop, no refused read in the four; 2.9 to 4.1 fps in the cell with the diagnostic on.One note for anyone on a tree between the two: making the other views read-only raises how often a plain DirectStorage read meets a read-only block (
hr=0x800706f8, then the title's own breakpoint). My local version stopped that way in 1 launch of 2 until I merged #552; with #552, 2 refused reads in 4 launches were caught by its fallback.f85101bhad none in four launches here.Closing.