Ray tracing: no arena storm when the low range is full (the 30 s watchdog crash); reserve the arenas' room at the start #88
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/trustno1-coder--VIctory-NVIDIA!88
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-88"
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?
@Yorivel on GitHub · 2026-11-27 17:50 UTC · original
Yorivel:fix/rt-arena-room→main· +118 −1 · 3 files · 1 commits · merged 2026-11-27 20:07 UTCWith the structure builder on (
VICTORY_BVH_BUILDER=1), ray tracing ended 1-3 minutes in at+0x23cf683(write to 0x0). That address is the title's own hang watchdog: it fires when no frame has been presented for 30 s. Not a bad pointer.Cause: an arena storm.
memory::readyasks for another arena (Memory::another, 64 MiB throughupload::reserve) at every build dispatch while the spares are low.MEMORYlock.VirtualAlloc2, frames of 7-32 s, then the watchdog.Changes
Memory::another: after a failure, no other arena is tried before the next frame. The reason is logged (no room, or its copy could not be made), and a reservation whose copy could not be made is released.upload::reserve_early, called at host creation: when the builder is on, 50 reservations of 64 MiB (VICTORY_LOW_EARLY_MB, 3200;0off) are made in the low range with write watch, before the title fills it. An arena commits one of them before it looks for room. They are separate pieces because, as one 3.2 GB reservation, the submissions' write-watch askings walked all arenas in single runs, about 2 ms a frame more.Measured (RTX 4090, prison area, ray tracing on, frame generation off, 30 fps cap)
The first minute or two of a new area still stutters (waits for flights while the builder works). See the comments on #57 for what we found there.
Related, not in this PR:
victory warmwithoutVICTORY_BVH_BUILDER=1skips theCS_RaytracingResolvepipelines (make.rs's leave-out), yet writes them intowarm-done.txt, so later warms never make them. WithVICTORY_BVH_BUILDER=1 victory warm --again --usedthe start-up RT pipeline builds (~670 "being made") went away. A separate small PR follows for that.Testing
cargo checkon this branch (rebased on29d8dbf).959dcafbase with these two files, in several sessions of 3-10 minutes.+0xc18d1a, read 0x159c) was seen once in those sessions and did not repeat.🤖 Generated with Claude Code