GPU: skip untouched zero runs during descriptor page sync #1220
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/fxceless--victory-fork!1220
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1220"
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?
@nicolasveilleux on GitHub · 2026-11-26 00:28 UTC · original
nicolasveilleux:perf/skip-cold-zero-descriptor-runs→main· +119 −2 · 2 files · 1 commits · openSkip groups of eight descriptor slots during the existing serial page-batched scan, but only when the copied-cache entries are all cold and the complete corresponding records are exactly zero. The existing per-record path handles cached, populated, or clipped records. Keeps the publish order and does not add workers. Independent of #1202; not stacked on #1043. Off by default; opt in with VICTORY_HEAP_SYNC_ZERO_RUNS=1.
Validation
Native Windows 11 / i7-10700F / RTX 2070 Super: 30 targeted tests passed, plus the isolated native A/B benchmark (12 measured pairs per workload).
Synthetic timings only; no measured gameplay FPS change.
@UwUCammie on GitHub · 2026-11-26 01:04 UTC · original
On the RX 7900 XT (Wine 11.22, RADV 26.3.1), the cold scan skipped 1,747,928 slots in the first room. I measured 5.73 FPS on and 5.95 off over about 78 seconds per setting. All four adjacent pairs favored off by 0.12–0.39 FPS. Separate-process controls agreed on the direction (5.68 on, 6.03 off). The sparse synthetic placed-heap test still showed a substantial CPU-time reduction. I’d keep this opt-in here.
The counterbalanced run gave me the full comparison in 286 seconds versus 458 seconds with two launches. The scan predicate also has a native Linux test now. Measurements and method · Portable fixture PR
@KainanP on GitHub · 2026-11-26 13:08 UTC · original
I benchmarked this PR next to #1293 and #1202, each against its own base, with one black-box
sync_heapsbenchmark: about 196 changed pages, 401,408 slots looked at and 9,298 mirrored per frame. Full table and method: #1293Result for this PR with
VICTORY_HEAP_SYNC_ZERO_RUNS=1: 5.44 → 5.32 ms per frame on the RTX 4060 Laptop and 4.77 → 4.66 ms on the Intel UHD, which is within noise. That is expected: every record in this heap is non-zero, and the sparse case this PR targets is not modelled. The counts match the base.AI use: Claude Code (Claude Opus 5.5).
🤖 Generated with Claude Code
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.