Check a texture for writes without building lists #32
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/32"
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?
Imported from Belobug/VIctory-Belobug-AMD. Originally posted by romainhedouin on 2026-11-25T12:32:50Z.
A sampled texture's refresh (texture.rs, twice in
refresh_timed) only asks "was a page of my memory written since I last looked?", butwatch::writesbuilt a list of every noted page in the range for it to scan. The newwatch::written_sinceanswers from the same asking, looking at the journal in place under the same locks, and stops at the first newer page;writesnow goes through the same code and answers exactly as before."Model benchmark" = a-publier's
Notes::each/rangecopied into a standalone program, unchanged texture (no newer page, so the whole range is scanned), timed in release on a Mac, not in the game. The one allocation left is the journal'spieceslist, which this PR doesn't touch. Kernel askings are unchanged.Tested: Windows clippy (with and without
--all-features) adds no warnings, and an assertion forwritten_sinceis added towritten_pages_are_reported_to_every_asker; watch.rs and texture.rs are Windows-only, so nothing ran here.🤖 Generated with Claude Code
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.