Repository navigation
Scripts: align world-load stalls with logged compiles and GPU waits - #2529
razormontana wants to merge 2 commits into
Conversation
Summarize terminal zero-present samples and align them with numbered driver compile intervals and logged queue wait observations. Part of xcl-dev#505.
|
One addition that found both of our world-load stops, if you want it in the script: the last import re
def held_title_threads(dump_lines, title_exe="game_scarlett_master.exe"):
"""(tid, xcl offsets above the first game frame, that game frame) for each title thread XCL holds"""
held = []
for line in dump_lines:
m = re.match(r"thread (\d+) '([^']*)': (.*)", line)
if not m:
continue
frames = m.group(3).split(" < ")
first_game = next((i for i, f in enumerate(frames) if f.startswith(title_exe + "+")), None)
if first_game is None:
continue # not a title thread
xcl = [f.split("+", 1)[1] for f in frames[:first_game] if f.startswith("xcl.exe+")]
if xcl:
held.append((m.group(1), xcl, frames[first_game]))
return held( AI use: Claude Code (Claude Opus 5.5) wrote the function (from our own run analysis) and this comment. |
|
Rechecked Focused tied-timestamp regression. Two dumps have the closing sample’s millisecond timestamp. The later, incomplete dump wins, and only its XCL offset above the first title frame appears. Choosing the first tied dump or scanning past that first title frame each failed the new assertion. Windows 11 26100.9711, i7-13700, Python 3.14.3. Synthetic log text only. OpenAI Codex (GPT-6) wrote the fixture and ran the checks. Earlier compile-overlap and endpoint checksI checked Focused regression fixture. A compile ending at the opening sample and a compile starting at the closing sample contribute zero duration. A point event at the closing sample counts. The fixture failed independently when I excluded that endpoint or counted a zero-duration intersection. Windows 11 26100.9711, Core i7-13700, Python 3.14.3. This tests the arithmetic and saved-log CLI with synthetic events. OpenAI Codex (GPT-6) prepared the fixture, ran the checks and wrote this report. |
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
With an explicit title basename, inspect the latest dump within the existing zero-present sample window. Report visible XCL offsets above the first title frame and the coverage of the saved dump. Suggested by GreemSC with Claude Code (Claude Opus 5.5): xcl-dev#2529 (comment)
|
Re-verification on RTX 3060 Ti (Windows 11), new head merged with current
Thanks! — Devin |
Part of #505 and #1833. A saved XCL log can show a world-load pause while driver builds are in progress and GPU waits are being logged. The script finds the terminal zero-present samples and aligns both types of observation with the same time window, so a tester can see where to inspect the trace.
What is in it
scripts/world_load_stall.pyreads a single saved runtime log. It summarizes the activity samples, joins numbered driver compile starts and finishes, merges their overlap with the sample window, and reports the logged Wait64 bridges and GPU wait watchdog releases.--title-exe NAME.exe, the script inspects the latest timestamped thread dump after the last sample with presents through the closing zero-present sample. It reports dump coverage and the visible XCL offsets above each thread's first matching title frame, using case-insensitive module names. The candidates describe sampled stacks.scripts/test_world_load_stall.pyandREADME.mdcover the sampled boundaries, optional thread-dump parsing, and limits of the captured events.Tested
c9c531ee5bce18f64fe63844502fc449a884c451, based on6d12f58a229bc73889878a448c64dc3af25eeba0. Python 3.14.3 on Windows 11 build 22631.5335, Core i7-10700K and GeForce RTX 3070 with driver 32.0.16.1742.python -B -m unittest discover -s scripts -vpassed all 35 tests. Negative controls for dump selection failed when the closing timestamp was excluded, file order took precedence over timestamp, or an unterminated row counted as complete. Earlier controls caught discarded compiles already in progress at the opening sample and activity incorrectly kept after a shutdown request.cargo build --offline --locked --workspacesucceeded. The debug workspace run,cargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4 --show-output, passed 1,423 tests across 37 test targets, with 0 failed and 46 ignored. It used Rust 1.100.0 MSVC, the Windows SDK DXC andXCL_ADAPTER=3070. Cargo's pass count includes 26SKIPPEDnotices (21 native-wave64 checks, 3 unsupported per-lane forms, 1 reserved cube with mips and 1 heap-window check).c9abd1fbyte for byte on a synthetic CRLF log and two saved RTX 3070 captures. The68a284acapture showed four submits and 2.001 s of logged compile overlap during the final zero-present window. The89bbbb4capture resumed presents after an earlier pause.c9abd1f. Independent reportNot tested
AI use