Open a single unaliased write-watch block without allocating #101
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/TaynanGT--Vice-Tay!101
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-101"
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?
@cxy0072019-sketch on GitHub · 2026-11-27 01:16 UTC · original
cxy0072019-sketch:codex/single-unaliased-guard→main· +10 −0 · 1 files · 1 commits · merged 2026-11-27 02:28 UTCSummary
Open a single unaliased write-watch block through the existing
unguardhelper without allocating temporary vectors for the range scan. Aliased and multi-block ranges use the range traversal. The single-block idea comes from victory-fork #1400.Validation
watch::testspassed on this standalone patch, including shared-view and concurrent write cases.The early window covers seconds 4–20 after acceleration. The longer windows include shoreline streaming and varied by run.
@TaynanGT on GitHub · 2026-11-27 01:28 UTC · original
Thanks, @cxy0072019-sketch. I checked
3c7ad08: the single-block path still usesunguardto update protection and write tracking, and aliased or wider ranges still use the existing scan under the same locking. The Windows CI logs show 30 write-watch tests passing in the default build and 33 in diagnostics.@TaynanGT on GitHub · 2026-11-27 01:41 UTC · original
I ran the two standalone diagnostics builds,
cc9ed86cand3c7ad08, on the RTX 4090 (621.40) in the Series S profile, rendering at 1920×1080 in full screen. Both started from identical local save data and rendered the opening cutscene. Neither run logged an error or device removal. In the first 60 seconds after the logs reached 1,000 draws per frame, the control and the PR peaked at 3,849 and 4,108 draws per frame, respectively. The PR logged a median of 2,923 handled write-guard faults per frame in that window.The control had up to 803 pipelines still being built in that window. The PR ran second and had none pending, so the timing is confounded by the warm driver cache. The fault counter covers single-block openings without exposing whether a block had aliases. This confirms that both builds render the intro, with the player-controlled comparison still outstanding.