Repository navigation
Conversation
…can still satisfy them
|
Retail result for this in the world phase (RTX 5080, NVIDIA 621.24, Windows 11; merged onto the tree of 7167396852 with #1972, our copy-cost and lifetime branches;
So it does with no override what took me a 30 s limit that then ran out behind a 107 s pipeline build (in another run 13 gates timed out that way). The picture of that run is the best so far (bloom, lens flare, lit tree and fence). One run; I have not read the code beyond the diff's shape. |
|
Thanks, the pausable clock is a good idea. Two things before this can go in:
AI-assisted (Claude Code, Claude Opus 5.5). |
|
Independent test report for ec95c3c (VERIFY-1887-1957-BLACKWELL, claimed in #1608). Setup: Windows 11 Pro 26300, VS 2026 MSVC, RelWithDebInfo, RTX 5070 Ti (Blackwell), NVIDIA driver 617.42, Full CTest (
The one new test, Repeat runs: AI-assisted (Claude Code, Claude Opus 5.5). |
|
Thank you @aslan2142 for the review (and @DadaCap / @kawaii-shakal for the retail RTX 5080 and RTX 5070 Ti verification!). All four review points are addressed in
AI-assisted: yes (Antigravity agent by Google DeepMind). |
|
Test report from a combined build on a second NVIDIA machine. Counts only. Machine: Windows 11, RTX 4070 SUPER, NVIDIA 621.01, 64 GB, own 1.0.2.1 copy. Build: Shaders: translated on Pipeline cache: warm and complete, 26,503 of 26,503 (9.6 GB).
Recipe:
AI-assisted (Claude Code). |
|
Combined integration verification of 9520db5 on Windows 11, MSVC RelWithDebInfo, Intel UHD Graphics (i5-1334U), Intel driver 32.0.101.6314.
This was cherry-picked into an existing private integration tree with other runtime changes, including a texture-quality experiment; it is not an isolated-main or full-suite result. It does not establish successful title startup or playability. No title files or shader content are included. AI-assisted: OpenAI Codex. |
|
Independent run on Windows 10 19045, GTX 1050 Ti (Pascal, 4 GB), NVIDIA 582.66, MSVC (VS 18 Build Tools), RelWithDebInfo. Base
AI-assisted (Claude Code). |
|
Independent Wine/RADV report for
Fedora 45, AMD Radeon RX 6700 XT (NAVI22), Mesa RADV 26.2.7, Wine Staging 11.21. A Windows Vulkan probe enumerated only AMD
Synthetic tests only. No retail run or frame-rate measurement. AI-assisted (Codex). Coordination claim. |
|
Independent test report (Linux, Wine and Proton) for 9520db5, claim VERIFY-1887-1957-LINUX-WINE in #1608. Setup: RTX 3090 (Ampere), NVIDIA 590.48.01, Debian 13 (Linux 6.12), clang-cl cross build with xwin; WineHQ 11.22 (winewayland) and GE-Proton11-14 (winex11). Test suites (main b9320a1 against main + this PR, same machine, full runtime CTest):
Retail boot under GE-Proton, 1200 s each, same tree and settings, the A press scripted from 50 s. Tree: main 71a769d with #1827, #1849, #1851, #1867, #1918 and a local merge of #429, plus local logging; settings
So on this machine the PR's own clock meets about as many gates as the 30 s override (1,059 of 1,118 against 1,065 of 1,067) without the override's cost in submissions. One run per column, so the speed numbers carry run-to-run noise. In the override run the opening "two years ago" card and the credit captions drew; in the default-limit run they did not. I did not watch the screen in the run with the PR. Not run on Windows. AI-assisted (Claude), measured and checked by me. |
|
A CPU-only check of the wait clock at
Two things from the pump code (
Why I looked: in a retail boot of mine (RTX 5060 Ti, main + this PR, default timeout) 40 gates were held, 18 met and 5 timed out, and no submission followed for about 200 s, the longest stall of the releaser being 151.5 s (one pipeline build inside a AI-assisted (Claude Code, Claude Opus 5.5). |
|
Independent test report for this PR at head What this adds to the reports above: an RTX 4060 (Ada); a native Windows full suite at the current head, on main Configuration: Windows 11 Pro 10.0.26300, desktop RTX 4060, NVIDIA driver 610.88. MSVC 19.44 (VS 2022), CMake + Ninja, RelWithDebInfo, full Counts
The 3 failures under
Each of the 3 passes alone on the merge; I did not see a failure specific to the merge. Mutation (the PR's tests against main's source)
Not covered: no retail boot or playability test. The open questions in the comments (a AI-assisted: yes (Claude Code, Claude Opus 5.5, built and ran the tests; a second agent checked this text) |
|
Additional synchronous Linux/Wine retail observation for head 9520db5, not an isolated performance A/B. RTX 3070 Ti 8 GiB, NVIDIA 620.73.04, Wine 11.22, clang-cl 23.1.5. Merged onto private integration fffc9857f (existing host-import/mesh/runtime fixes plus #2116 diagnostics), yielding 796896ead. Only merge conflict was adjacent includes; both headers retained. Targeted runtime build succeeds, focused Wine tests pass 11/11 (nine xs_proxy_mock modes, list_value_wait_budget, queue_holds_report); native list_value_wait_budget passes ASan+UBSan. 1800 s bounded run with LEONIDA_VALUE_WAIT_TIMEOUT_MS=30000, synchronous pipelines, compute warmup disabled, watchdog kicked: 33 gates held / 18 met / 8 timed out / 7 still pending, zero short waits, one demotion. At ~874 s there were 4 timeouts; by ~1593 s, 8. Submitted/landed writes remained 8145/8092; latest snapshot had 21 pending write groups, 26 unsatisfied CPU fence waits and 61 held operations with a release running. Meanwhile 22 slow compute builds completed, mostly about 1 minute each; active compilation lasted through the pass. Presents/submissions stopped at 1192/2424 around 203 s. No verified world frame or device-loss report. This illustrates the remaining finite-cap limit during a continuous cold compilation interval: the policy does not keep all gates valid through the full interval. It does NOT prove the pending work is deadlocked, nor that extending pause caps is the right fix. Cache state/input timing differed from the prior integration, so lower timeout counts are not a controlled causal result. Keeping subsequent warm-cache validation separate; raw logs/captures remain local. AI-assisted (OpenAI GPT-6.1 Sol). |
|
Thank you, @IlyassRS3. This went into AI-assisted (Claude Code, Claude Opus 5.5 and Claude Fable 5.2) |
d3d12_xs_list_values.h keeps both includes: held_work_report.h (this branch) and list_value_wait_budget.h (ubiquitarianism#1957). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claim:
RT-LIST-VALUE-WAIT-WORK-AWARE-TIMEOUT(claim comment#7168326837on #1608, taking @DadaCap's world-phase finding#7167966834).Problem
In retail world-phase testing (#1608
#7167966834), the default 200 ms wall-clock timeout inruntime/shims/d3d12_xs_list_values.h(which demotes to 4 ms after 4 timeouts in a row) cuts short all 122 command-list memory waits (0 met) whenever the releaser is busy running multi-second held work or an in-flight producer write has not yet finished on the GPU. That lets dependent queues run out of order and turns lit world frames into silhouettes/black frames, whereas raisingLEONIDA_VALUE_WAIT_TIMEOUT_MS=30000let 68–82 waits be met and produced lit buildings, windows, interiors, trees, and lamp glow.Fix
Extract a portable, sanitizer-verifiable timeout & producer dependency policy into
runtime/src/list_value_wait_budget.hand wire it intort::d3d12_xs::list_values::Pump(runtime/shims/d3d12_xs_list_values.h):GateTimeoutState): tracks idleelapsed_usseparately from paused time instead of comparing wall-clocknow >= deadline, with finite pause caps scaled to the gate's own timeout budget (default_pause_caps(gate_ms, cut_short)):PauseReason::releaser_busy: pauses while writes just landed, gates are opening in this pass, or the releaser thread still has queued/activeSignal()releases (pending_releases_atomic counter with RAIIPendingReleaseGuard), bounded bymax_pause_cap_us.PauseReason::matching_producer: pauses while an in-flightWriteGrouphas a final write (overwrite-aware back-to-front scan, including timestamp writes) that can satisfy an unmet wait of the gate, provided every pending gate<= after_gateon the producer's queue is cycle-free with respect to the waiting queue, bounded bymax_pause_cap_us.PauseReason::active_work: pauses while unrelated unblocked GPU work (an unblockedWriteGroupor unblocked action gate on another queue) is still executing, bounded byactive_pause_cap_us(and sharingtotal_paused_us <= max_pause_cap_us).default_pause_caps(gate_ms, cut_short)):active_us = 300x(60 sat200 ms) andmax_us = 1500x(300 s/ 5 min at200 ms, capped at 10 min) — covers multi-minute world-phase pipeline builds while guaranteeing a finite exit if a producer is held behind an untracked dependency (e.g. a title fence wait or stuckSignal()).cut_short) gates:active_us = 1x(4 ms) andmax_us = 4x(16 ms) of the gate's short 4 ms budget, so unmodelled waits pay only a few milliseconds rather than inheriting the full timeout's cap.PauseReason::none: ticks normally once no submitted or held work can still satisfy the gate (or when a direct/indirect multi-queue cycle is detected).take_open(): only constructs the flatPendingWriteGroup/PendingGateview when a non-forced front memory gate is still unmet and!releaser_busy.Pump:add_writes()recordsafter_gate = max_pending_gate_locked(queue.get()).watch_late()watches cut-short waits fornow + fullrather than the stalegate.since + full(which could already be expired after a long pause).note_outcome()guardsgate.waits.front()with!gate.waits.empty().Overlap notes
watch_releaser, untouched) and d3d12_xs: fix list-values relay UAF, overwritten WriteGroup relay, and pump start/stop races (RT-LIST-VALUES-RELAY-LIFECYCLE) #1868 (only 2 lines insideadd_writesrecordafter_gate, and thexs_proxy_mock_test.cppaddition is at section 11 right beforestop_list_values).Verification
ec95c3c0b).list_value_wait_budget(runtime/test/list_value_wait_budget_test.cpp, 11 test groups including finitemax_pause_cap_us, demoted-gate cap scaling, alternating pause reasons, and a 1 ms mock-Pumptick driver).Pumpregression tests inruntime/test/xs_proxy_mock_test.cpp(section 11a–d: matching producer pause, busy releaser pause, demoted gate cap under unrelated active work, and finite cap on a stuck matching producer).list_value_wait_budget_testcleanly under:clang++ -std=c++20 -O1 -g -fsanitize=address,undefined -Wall -Wextra -Werrorclang++ -std=c++20 -O1 -g -fsanitize=thread -Wall -Wextra -Werrorclang++ -std=c++20 -O2 -Wall -Wextra -Werrorrt::d3d12_xs::list_values::Pump(runtime/shims/d3d12_xs_list_values.h) directly under a scratch POSIX-backed Win32 harness running all four scenarios (11a–d) under ASan+UBSan and TSan (4/4 passed, 0 warnings/races), and confirmed the same test fails againstmain'sd3d12_xs_list_values.h(times out at 40 ms while the matching producer is in flight).python3 -I scripts/check_no_game_data.pyon all 5 changed files andpython3 -I tests/test_text_write_line_endings.py: all passed.