GPU: skip untouched zero runs during descriptor page sync #1217
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from fxceless/victory-fork. Originally posted by nicolasveilleux on 2026-11-26T00:28:56Z.
Skip 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.
Imported from fxceless/victory-fork. Originally posted by UwUCammie on 2026-11-26T01:04:27Z.
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
Imported from fxceless/victory-fork. Originally posted by KainanP on 2026-11-26T13:08:12Z.
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: https://github.com/fxceless/victory-fork/pull/1293#issuecomment-7192923419Result 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
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.