Repeated refreshes recopy unchanged spans at watched-page boundaries #1344
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#1344
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?
@Marukooh on GitHub · 2026-11-26 17:30 UTC · original
In the Series X opening scene on RTX 5070 Ti / Proton, the same part of a watched page can be uploaded repeatedly when a refresh covers only part of the page. On the measured branch, a full-page stamp could only be recorded when the entire page was covered; the next refresh could not reuse a stamp for the part it already uploaded.
A local prototype keeps a stamp for the covered byte span and invalidates it when the watched page changes. In a four-run off/on/on/off comparison, refresh dropped from 104–106 to 75–78 MB/frame. Frame medians were 117.9 / 121.3 ms off and 108.8 / 115.0 ms on. There was no device loss. These numbers predate the 4 KiB tracking in
e4245f3.Please check the current refresh path with an unaligned span, two consecutive refreshes, a CPU write, and a third refresh. A useful regression test proves the second refresh skips the covered bytes and the third refresh uploads the newly written bytes, including when the span crosses a tracking boundary.
@fladit123 on GitHub · 2026-11-26 19:40 UTC · original
I have implemented an experimental partial-span freshness cache against main
52ac4ec0.The issue reproduces through the actual
Shadow::updatepath on both WARP and an RTX 4060, withVICTORY_DIRTY_4Kenabled and disabled.With the experimental optimization enabled:
The implementation is deliberately conservative: it tracks at most 16 spans per shadow, requires a direct Windows write-watch result and a complete read, and preserves existing whole-page freshness and pending GPU-write decisions.
One important limitation is that standing write-watch queries and guarded views retain the original refresh behavior. Consequently, the eligible fraction of refreshes in a real gameplay workload is still unknown.
I would be interested in comparing this approach with your original prototype, particularly its handling of standing queries, and arranging an independent gameplay validation once the patch is ready.
No gameplay performance improvement is claimed yet.
AI-assisted implementation and validation using OpenAI Codex; additional source review using ChatGPT.