Landed lists reset on a thread of their own (VICTORY_LAND_ASIDE=1, off by default) #1146
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!1146
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1146"
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?
@beamdotdev on GitHub · 2026-11-25 21:37 UTC · original
beamdotdev:perf/recording-thread-locks→main· +33 −1 · 1 files · 2 commits · openBranch
perf/recording-thread-locks, merged withmain58de9bf. Found with a stack-sampling profile on a six-thread processor.What it does
VICTORY_LAND_ASIDE=1(off by default): the host lists of landed flights are reset on a thread of their own (victory-land), not byland()at the end ofexecute_lateon the submitting thread. Asks that pile up are answered by one landing. A submission that follows takes a list from the idle ones or makes one, as before. Without the switch, or if the thread cannot be started,land()runs where it did.The other half of the first version of this PR, sparing the recording threads the descriptor heap's two locks, is now on
mainin its own form (5d659e0,VICTORY_HEAP_LOCKS=1, off by default). The merge takesdescriptor/host.rsexactly asmainhas it, so this PR no longer changes that file.Why
Profile (stack samples every 2.5 s over five minutes of the first gameplay scene, i5-9600K, 6 cores and 6 threads): about a tenth of the submitting thread's time was inside
list::recycle, which is the host's and the driver's work on the allocators. Nothing the next submission waits for.Measured (both halves together, before the split)
RTX 3070 8 GB, i5-9600K, 32 GB, first gameplay scene, the README's switch set of run 253 plus
VICTORY_CARD_WINDOWS_MB=2048 VICTORY_TEXTURE_ROOM_PERCENT=60, captures on, medians of three time windows of a 13-minute run:085ee7cVICTORY_LAND_ASIDE=1Limits
mainnow, run withVICTORY_HEAP_LOCKS=1with and withoutVICTORY_LAND_ASIDE=1.085ee7c. Not measured since the merge withmain.cargo build -p victory-gpu, plain and with--features diagnostics, both build;cargo test -p victory-gpu: 217 passed, 6 ignored.🤖 Generated with Claude Code
@Proudnoob4 on GitHub · 2026-11-25 22:16 UTC · original
AI-assisted testing (Gemini in OpenCode); measured locally on my own machine.
RTX 4080 / Windows 10 bundled test report (
6d1fe2f)Setup: Windows 10 Pro 22H2 (Agility SDK 1.620.2), i5-13600K (6P+8E), 32 GB RAM, RTX 4080 16 GB (driver 621.01), Series X profile, diagnostics release build (
9c184b3+#1146+ bundled perf PRs),VICTORY_LAND_ASIDE=1+ defaultVICTORY_HEAP_LOCKS=1.66/66targetedvictory-gpu(shadow/descriptor/plaincopy) tests pass.VICTORY_LAND_ASIDE=1,VICTORY_HEAP_LOCKS=1,0crashes /0device removals): 8.50 fps median, 9.20 p90, 9.30 max,usual frame 113 ms(recording, all threads: 271.7 ms in 40,578 calls,copy-back 23.2 ms).#1117, both add an atomic mirror ofHostHeap::made(made_nowvsmade_fast); unifying on#1146'smade_nowkeeps#1146'sVICTORY_HEAP_LOCKS=0opt-out and shardedHostHeap::keptcleanly. (Isolated single-PR A/B is unmeasured here.)@LeonardoS11 on GitHub · 2026-11-25 23:44 UTC · original
Measured here carried over an integration branch (current main plus a few open PRs), RTX 3080 Ti 12 GB, 24 threads, Windows 11 26200, Series S profile, the fixed room of the prologue, 300 s runs with the pipelines already cached.
VICTORY_LAND_ASIDEbuild and run with no image change in our screenshots.VICTORY_LAND_ASIDE=1and without. A second machine (RTX 5070 Ti, Ryzen 7 7700X, Windows 10) gave 113 ms both ways.Where our frame goes, for context: about 70 ms of preparing under the one submission lock on the submitting thread, and 35–45 ms of heap buffer pass on the recording threads. The recording threads' locks do not seem to be what bounds the frame on this card.
Written with Claude Code.
Recording threads: the descriptor heap's locks no longer line them up; landed lists reset on a thread of their own (VICTORY_LAND_ASIDE=1, off by default)to Landed lists reset on a thread of their own (VICTORY_LAND_ASIDE=1, off by default)5d659e0, VICTORY_HEAP_LOCKS=1) a964d82513View 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.