perf(gpu): dense watch::Tracked with lock-free clean skip, sync_heaps trims, and 4x unrolled safe_changed #3105
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!3105
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3105"
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?
@qlfu on GitHub · 2026-11-29 20:02 UTC · original
qlfu:pr/perf-heap-sync-tracked-and-safecopy→main· +557 −112 · 4 files · 3 commits · closed without mergingSummary
Trims CPU overhead in
sync_heaps(watch::Tracked,watch::guard,descriptor::sync_heaps) and descriptor change scanning (safecopy::victory_safe_changed):watch::Tracked(Seen::Dense): replaces hash-map lookups on contiguous heap page ranges with direct dense indexing, plus lock-freeWRITTEN_EPOCHS.all_seenclean-round skip and skippingparts_writtenwhenguards_askedalready covers the range.watch::guardtrims: avoids dropping/re-locking whenunsureis empty and deferssoft_runsinsideif !written.is_empty().sync_heaps&draw.rstrims: skips empty guard rounds, cachesOnceLock<SyncPart>, usesguarded_relaxed, batchesmake_waiting, and reusesbatch.mirrorindraw.rs.victory_safe_changed(safecopy.rs): processes 4 descriptor records per iteration using only Windows x64 volatile registers (ymm0..ymm5), with an SEH fault-safeat4..after4 -> victory_safe_changed_tail1x fallback.Verification
cargo +1.98.1-x86_64-pc-windows-msvc clippy -p victory-gpu --lib --tests --no-deps --locked: 0 new warnings.cargo +1.98.1-x86_64-pc-windows-msvc test -p victory-gpu --lib --locked -- --test-threads=1(safecopy::,watch::,descriptor::):173/173passed.0 WARNs / 0 ERRORs):sync_heapstotal:15.39 -> 13.63 ms(Native),13.09 -> 12.68 ms(FG).sync_heapsread:5.50 -> 4.84 ms(Native),4.97 -> 4.54 ms(FG).811c9a681ato380e820bd9@qlfu on GitHub · 2026-11-30 00:12 UTC · original
Rebased cleanly onto
main(41adb551), preserving upstream#2795(writes_since) and#2971(part_runs) cleanly alongside densewatch::Tracked+PageEpochs::collect_newer. Verifiedwatch::tests::(42 passed),safecopy::tests::(8 passed), and--features diagnostics.github-bot referenced this pull request2026-11-30 01:14:29 +00:00
@qlfu on GitHub · 2026-11-30 12:36 UTC · original · edited 2026-11-30 15:27 UTC
Fixed
writes_for_trackedon thepublished(from, to)fast path to returnguards_asked = falseinstead oftrue, preserving 4 KiBparts_writtengranularity forlanded_besidepages inTracked::take. Verified withwatch::tests and cleanmerge-treeagainst41adb551.Pull request closed