Reuse completed state preludes in an opt-in pool #211
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!211
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-211"
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?
@TaynanGT on GitHub · 2026-11-27 10:12 UTC · original
TaynanGT:fix/reuse-state-preludes-93→main· +140 −31 · 3 files · 2 commits · merged 2026-11-27 11:42 UTCUse
VICTORY_PRELUDE_POOL=1to reuse the allocator and command list for lazy state preludes. Return each pair after the owning list's previous submissions have finished and its native reset succeeds. Keep a fixed cap of 128 idle pairs so sustained host memory pressure does not force new pairs every batch.On the RX 6900 XT in #93, the isolated pool got through world load with the same driver, Series S save, relay settings and 720p output. The previous cap of 16 under pressure went from 810 to 5,848 total creations over about one minute after the host-list count settled. The fixed cap of 128 on
d2e271dstayed at 155 creations for 67 seconds under persistent host memory pressure. The run ended by hand after about a minute and a half in the world. The gameplay paths differ, so the reported frame rates are observations from each run.Windows default and diagnostics test suites and Clippy passed. The pool test checks that a pair stays unavailable to another list until the owner returns it. Adapted from kyokyotosh's prelude pool. Refs #93 and #138.
@chatgpt-codex-connector[bot] on GitHub · 2026-11-27 11:43 UTC · original · edited 2026-11-27 11:44 UTC
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
d2e271dd2e271dℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
@timorjay on GitHub · 2026-11-27 12:44 UTC · original
I ran the prelude pool off and on in the same Windows Sandbox on a GeForce RTX 5090 D v2 (driver 617.42), Ryzen 7 9800X3D, 32 GB host RAM. Both runs used the same diagnostics binary (
a51fb9dplus this PR atd2e271d), same Series S starting save, same shader-cache snapshot, and a fresh host pipeline cache per run. The local settings includedVICTORY_RELAY=2,VICTORY_TEXTURE_POOL=0,VICTORY_MAP_THREADS=1andVICTORY_TEXTURE_STAGE_MS=12. OnlyVICTORY_PRELUDE_POOLchanged between these two launches.Both runs got through the office and displayed the city cashier tutorial. On both, holding LT changed the prompt from holding LT to aiming at the cashier. Both subsequently lost the device with
0x887A0020in relay mode 2. The log showed one submission in flight (25 lists off, 7 on). The two routes spent different amounts of time in the prison. These are endpoint counts, and I would not infer a frame-rate gain from them. Reuse is observable on NVIDIA even though it did not resolve this later failure here.I repeated the pool-on run with
VICTORY_RELAY=0, keeping the other rendering settings, starting save and shader-cache seed the same. This time the player could walk, turn, aim, intimidate the cashier and pick up the cash. The subsequent police and family scenes rendered until the preset 30-minute observation limit. I found no0x887A0020in that run. The interactive interval from the first aim input to the cash pickup was 7 min 33 s. The game's 85 frame reports during that interval had a median of 7.4 rendered FPS and a tenth percentile of 6.5. Lighting remained overexposed and faces were missing in close-ups. This is one successful run in mode 0. The captures establish a difference in progression on this machine, but do not identify the underlying driver or runtime fault.@TaynanGT on GitHub · 2026-11-27 12:47 UTC · original
@timorjay The 831 to 186 prelude count shows reuse on this NVIDIA setup. Both relay-2 runs still lost the device, while the relay-0 run progressed through the cashier scene. I’ll record the reuse result independently of stability and keep the pool optional while we have one successful relay-0 observation.