Check a texture for writes without building lists #32
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/Belobug--VIctory-Belobug-AMD!32
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@romainhedouin on GitHub · 2026-11-25 12:32 UTC · original
romainhedouin:perf/watch-writes-no-vec→a-publier· +62 −13 · 2 files · 1 commits · openA 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
434d9852dctodcdbf69447View 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.