Skip to content

S-4: trace world-load pool exhaustion - #59

Closed
JohnReedV wants to merge 2 commits into
ProjectLeonidaL:mainfrom
JohnReedV:codex/s4-world-pool
Closed

JohnReedV wants to merge 2 commits into
ProjectLeonidaL:mainfrom
JohnReedV:codex/s4-world-pool

Conversation

@JohnReedV

@JohnReedV JohnReedV commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

S-4: world-load pool exhaustion

Claiming the new stability item while investigating the first story world load on Linux/Proton.

On a Series X 1.0.2.1 run with an Intel i9-14900KS, NVIDIA RTX 5090 (driver 580.173.02), Proton 11 Wine and newer vkd3d-proton, the opening sequence reached the first story scene, then the title stopped in its pool allocator during Prestream. Its own summary showed the Building pool nearly full and the instance-list pool full. This matches the stop discussed in VIctory #698. The cause is still under investigation.

This draft adds an opt-in diagnostic watch that follows a pointer stored in the mapped title image and samples a u32 field safely. Failed reads from null, changed or unmapped pointers are skipped. Pointer fields are sampled every 50 ms, while existing direct image watches retain their 5 ms interval. No pool size or allocation behavior changes.

Checks: two focused Windows tests passed under offline Proton/Wine, including a changing and null pool pointer; Windows cross-compile and Clippy passed with diagnostics enabled; cargo xtask policy passed. Two double-sandbox title runs completed. The first stopped in an unlisted 25,000-slot pool while Building and Object remained below capacity; instance-list had reached its limit earlier and reclaimed entries. In the second run, that unlisted pool peaked below capacity, but Building reached its 22,500-slot limit and instance-list reached 45,000, then the title stopped in the Building/Object allocator. Thus the same world-load burst can exhaust either pool. Both initial runs lost pipeline compilation workers to stack overflow. A third run with the separate shader control-flow fix in PR #60 created both previously blocked host pipelines and had zero worker overflows, yet the title still stopped in the same pool allocator during Prestream; its Building pool was 22,234/22,500 and instance-list 45,000/45,000. Thus missing those pipelines was a real separate defect, but did not alone cause the pool stop. A private combined run with the open P-4 texture range-lock experiment is in progress to test whether faster world loading changes the result. The local diagnostic build uses the blake3/pure feature because the clang-cl assembly build tries to write into this host's read-only Cargo registry source.

Next: identify why these pools fill during world loading, then implement and validate a fix without suppressing allocation failure. Gameplay has not yet been reached on this machine.

AI-assisted. No game files, derived files, or logs are included.

@JohnReedV

Copy link
Copy Markdown
Contributor Author

Closing this S-4 draft because it adds an opt-in pool watcher but does not identify or fix the allocation growth. In one Linux/Proton run the watcher observed BUILDING 22,500/22,500 and INSTANCE_LIST 45,000/45,000 at an allocator stop. A later run combining the separate opt-in P-4 texture change stopped at a different title crash with BUILDING 10,137/22,500 and INSTANCE_LIST 19,424/45,000. That change in the failure point does not establish that S-4 is fixed. This needs a focused reproduction and a validated fix before a ready PR. No game files or logs are included.

@JohnReedV JohnReedV closed this Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant