fix(host): the vsync ticker starts once; a full table or a failed ticker or audio start answers 0x2C01 #2151

Open
dazemc wants to merge 3 commits from dazemc/Longshot:fix/vsync-ticker-lock into main
Contributor

Summary

nn::vi::GetDisplayVsyncEvent registers the caller's event in a table of 8 under vsync_lock, but starts the ticker outside the lock:

if (!vsync_thread) vsync_thread = CreateThread(NULL, 0, vsync_main, NULL, 0, NULL);

Two guest threads can both see vsync_thread == NULL and each start a ticker. Every ticker runs hos_system_event_signal over the table once per period, so an auto-cleared vsync event fires twice per 16.7 ms and a waiter paced on it runs at double rate. On Linux CreateThread is pthread_create with a detached thread, and it returns after the thread may already have run — the window is real, not theoretical.

Separately, with 8 events registered the if is false, the call returns 0, and the 9th event is never in the table: its waiter blocks forever.

What changed (host/nn_vi.c): the registration and the ticker start are one section under vsync_lock; a full table returns Horizon's os::ResultOutOfResource (0x2C01, the code the host already uses for a full TLS slot table) and logs one line, instead of a silent success. A CreateThread that returns NULL — the thread limit, or no memory — is the same failure by another path: the slot is taken back out of the display's table, the call returns 0x2C01, and no event is left in that table with no ticker to signal it. A later call tries the ticker again. The ticker logs its start once (vi: the vsync ticker started), so a game run's log shows it.

host/nn_audio.c's OpenAudioRenderer has the same shape: it initializes the caller's auto-cleared renderer event and starts the audio thread. A NULL CreateThread now clears renderer_event, the handle and renderer_running, returns 0x2C01, logs it and leaves renderer_thread NULL so a later call retries; the host holds no renderer event after that, so nothing waits on one nothing signals.

One wording limit both paths share: hos_system_event_init runs before the failure check, so the object-table entry it makes for the guest's event stays in host/nn_os_sync.c's table, unsignalled. It is not a leak — fresh() finds that key and reinitialises it, so repeated failures add no entries — and a caller that checks its Result never waits on it; only one that ignores the Result blocks, exactly as ## Risks says.

Rebase status (2026-11-25, current): f7af4e26f → d1b245a45 onto main @ 8f7300756701b7c9a278e576bb075ac20e622a32. Stable patch-id 4ad9a3c3c4b5d5145ac28abf313cbcdc001312da is unchanged and main's old-base→new-main file intersection with this PR is empty. The evidence already named below (suite, platform, in-game and measurement, as applicable) therefore still stands at the historical heads that produced it. Earlier rebase notes are history; where they say "this head", they mean the evidence commit named beside that run, not d1b245a45.

Testing

Rebase (2026-11-25). Rebased onto origin/main be663a08a30fa953420104d3cef6877bed6674a2. Old head 437d8eab42f0bb47b67b76ee8d3d01182b1e526c → new head f7af4e26fc4aaedc439e292b7c87d5216f814cc3. git diff -U0 8aa5ab87..437d8eab and git diff -U0 be663a08a3..f7af4e26 hold the identical changed-line set (379 added/removed lines, 0 differing), so the rebase changed none of this PR's content. Main's new commits do touch host/nn_vi.c (30 insertions, 13 deletions, in #2286 and #2411), so the suite and the game runs below were taken on the pre-rebase head and do not describe the compiled result at this head. The mise run test box is unticked pending a suite at f7af4e26fc after the quiet window; the in-game and Windows runs were at 75a2aafd/437d8eab and are kept as the record of that head.

The head moved twice without a code change, and the bullets below name the tree each result was taken on. The head is now f7af4e26fc, which is 75a2aafd (tree fe2b05c6) plus one comment-only commit: git diff --stat 75a2aafd..437d8eab4 is 2 files changed, 6 insertions(+), 2 deletions(-), every changed line inside a C comment in host/nn_vi.c and host/nn_audio.c, so there is no code difference between the head and tree fe2b05c6. fe2b05c6 is in turn not 5db210a3's 0b31884e (git diff --shortstat 5db210a3 75a2aafd is 243 files changed, 19144 insertions(+), 6305 deletions(-)), so the suite and fixture bullets describe tree 0b31884e, not the head, except the windowed run at 75a2aafd below. The commit subject still says waiter and will be reworded at the rebase; the title now names the Result the failure paths answer.

At 75a2aafd (tree fe2b05c6, the code this head still carries): a windowed in-game run, queue job 2151-windowed-75a2aafd-b (ticket 176700, --mode shared), 2026-11-24T15:44:41Z–15:46:00Z: state: finished, exit_code: 0, stop_method: quit; log line 30 vi: the vsync ticker started, line 163 audio: renderer opened, no could not start and no vk: no window; 42.2 s of measured play (presents 1587 → 4719, (4719 - 1587 - 600) / 60) from kokiri-start; hyprctl clients -j and an external grim shot taken during play. Run folder ~/.local/share/longshot-dev/runs/control/2151-windowed-75a2aafd-20261124-b/.

Tested: at the tree at b567e2cf (5db210a3); the full suite was taken on base a2dc5385:

  • run_all --strict test_vsync_events test_audio_renderer_start: 2 passed, 0 failed, 0 skipped (0.3 s and 0.1 s; a passing check does not print the fixture's own lines).
  • The POSIX fixture on fix/posix-renderer-thread (a separate branch, no PR yet): PASS — a renderer thread that cannot start: reported failure, event sets 0, attempts 1.
  • The audio fixture against origin/main's host/nn_audio.c: fails on main for the reason — FAIL:56 result == 0x2C01, with a renderer thread that cannot start: result 0, handle 0x1, event 0x5000, thread (nil), attempts 1: main returns 0 and leaves the event registered.
  • The full suite at the tree at b567e2cf (5db210a3), taken on base a2dc5385: 913 passed / 23 failed / 18 skipped in 815 s (the job's full output is saved at /home/daze/.local/share/longshot-dev/2151-light-job-5db210a3.log), run_all.py --strict --jobs 5 inside systemd-run --user --scope -p MemoryMax=12G -p MemorySwapMax=0 with the pinned headers. The base's 911 / 23 / 18 in 635 s is from the 02:58 comment and has no saved log. The 23 failures were compared name by name with a2dc5385's at the time; they are not current main's failures: fe1c437c (#2213) fixed 17 of them and says main is back to one (tests/test_dev_packs), and main adds five new checks. The strict suite will be re-run on the rebased head. The two extra passes over the base's 911 are the new tests/test_vsync_events.py and tests/test_audio_renderer_start.py.
  • In the game at the tree at b567e2cf (5db210a3): queue job 2151-smoke-gpu (gpu mode, alone), Linux on this PC, RTX 4070 Ti, NVIDIA 620.70.06, headless, from the repository's kokiri-start save: title to play after 8 A presses, 30 s of play, screenshot at frame 3515, then quit — run state finished, exit code 0, stop_method: quit. The log's line 224 is vi: the vsync ticker started and line 279 is audio: renderer opened; there is no could not start line and no startup hang. (The first attempt, in shared mode, was OOM-killed during first-start shader preparation with another game beside it; this run prepared them and finished.) Run folder: /home/daze/.local/share/longshot-dev/runs/control/2151-smoke-20261122-012558/.

The fixture lines the new checks assert (the branch run is above; the audio fixture's line is printed only on a failure):

a ticker that cannot start: result 0x2c01, 0 events registered
a renderer thread that cannot start: result 0x2c01, handle 0x0, event 0x0, thread (nil), attempts 1

The block below is a manual run of the C fixture (tests/vsync_events_test.c) against main's host/nn_vi.c, not the committed Python test's output: on main, tests/test_vsync_events.py stops at the source check (tests/test_vsync_events.py:64; main starts the ticker at host/nn_vi.c:95, after the release at 93) before it builds the fixture.

main:  two callers at once: 2 ticker starts, 2 events registered
       FAIL: the table of 8, a 9th event: result 0
branch: two callers at once: 1 ticker start, 2 events registered
        the table of 8, a 9th event: result 0x2c01
        log: vi: GetDisplayVsyncEvent: the display's 8 vsync events are all taken
PASS

The checks that cut/read host/nn_vi.c (test_realtime_rate, test_water_substeps, test_camera_speed, test_fps_stats, test_movie_frame_count, test_scene_format) all passed in that suite run.

Tested on Windows (llvm-mingw). At 75a2aafd on a Windows 11 x86-64 box (Acer Nitro AN515-57, i5-11400H, llvm-mingw 20261104 UCRT), nx2\build.py --standalone with RX_VK_ONLY=1 compiled 268 renderer objects of this head and linked them: compiled in 183 s, 0 failed, link 2 s, 6 jobs, lifted code … (0 files) in the log, so no game data was read. Result: C:\Users\daze\longshot-2151\work\sa\build\longshot_vk.dll, 17,704,960 bytes, sha256 ea8a7bdbcc05ae80ec24e151cbe2cd21856381a34e1ed1779e05d6c3e1e38d85, PE32+ (0x20B) IMAGE_FILE_MACHINE_AMD64 / IMAGE_SUBSYSTEM_WINDOWS_GUI, exporting mkwvk_init, mkwvk_close_asked, mkwvk_crash_close and mkwvk_crash_page; llvm-strings finds 75a2aafd (source d2850c1d) in it. The checkout's git rev-parse HEAD was 75a2aafd8f314419de670e764aa2bcfee0669e5b (.head beside the log); build log build-75a2aafd.log, sha256 da665ea0a40ab06d558c8fe908be5d48b8bab0bcb9ff052d8060ea312c37bc02. The two files this PR changes compile as well: host/nn_vi.c → host_nn_vi.obj, 32,415 bytes, sha256 2e3fb8d4f89fe572cf38b3af31df1f06c6c6cb1a5548fb1ff99889b950c44b75, and host/nn_audio.c → host_nn_audio.obj, 170,534 bytes, sha256 9710732a4442412873d3645a35afc7321096b25210814bb287b0642230134da6, both COFF machine 0x8664, with nx2/build.py's own host flags. That was the renderer DLL link, not the single-object compile the earlier tree had; the whole pack then ran at this head on the same box, windowed: longshot.exe 577,531,904 bytes, sha256 24ab4560031f2437c57f0db494cc0487181f5f00ad7552517f2d646bdecf0d3b, on the NVIDIA GeForce GTX 1650, driver 610.62; the LOW MEMORY dialog was dismissed with WM_CLOSE before play. The game window was pid 9556, handle 1574064, title Longshot, rect 128,128,1422,886 (1294x758), visible=True at the in-play, mid-play and end-play checks; play ran from frame 3017 at 29.3 fps to frame 5121 at 33.4 fps, both samples in KokiriForest_Child, 2,104 frames over 64 s of wall time, then exit_code 0 / stop exit, with 0 vk: no window and 0 could not start lines. Log runs\win-2151\log.txt (692,237 bytes, sha256 3b938ade1f3ab5ed4481f868711e39683ff9e53369b00a0afa2771e0c17ca093) and smoke log smoke-75a2aafd.log (25,603 bytes, sha256 0f6f100b2f13018624b6870660b3091af47137c0c97319c0b6d5a8cd217f5bb4); the screenshots and the game data stayed on that box, since nothing left it.

Still to test:

  • Windows: the fixture is Linux-only (pthread rwlocks), so the race itself is not exercised there (by hand).

Measurements

Nothing to measure: this fixes a race and a dropped registration, not a frame path; the game run above is a boot/play check of the changed startup path, not a frame measurement.

Risks

A full vsync table, a ticker that cannot start, or an audio renderer that cannot start now reports 0x2C01 instead of 0 — a caller that ignores the Result still blocks on its unsignalled event, but the failure is visible in the result and the log, and the failed start takes the display's slot back out of vsync_events or clears the renderer's handle, renderer_event and renderer_running. One detail this leaves in place: hos_system_event_init runs before that check, so the object-table entry it made remains in host/nn_os_sync.c's table, unsignalled; fresh() reuses that key, so repeated failures add nothing. A later call can try again. One ticker instead of two changes only the double-signalling case. No switch; a revert is enough.

Checklist

Ready for review

  • One topic, on current main; the title is a Conventional Commit. — Rebased head d1b245a45 is directly on main @ 8f7300756701b7c9a278e576bb075ac20e622a32; the preserved diff is the single topic described in Summary.
  • Tested on my own PC, in the game for a change the game runs, as Testing says. Windowed run at this head: queue job 2151-windowed-75a2aafd-b (ticket 176700, --mode shared), run folder /home/daze/.local/share/longshot-dev/runs/control/2151-windowed-75a2aafd-20261124-b/, 2026-11-24T15:44:41Z–15:46:00Z. state: finished, exit_code: 0, stop_method: quit; log line 2 is longshot v3.2.0-14-g75a2aafd8 (source d2850c1d). Title to play after 5 A presses, 10 s warm-up, then the scripted play in KokiriForest_Child (child, life 12/12): shots/play-start.png at present 1587 and shots/play-end.png at present 4719, so 42.2 s of measured play ((4719 - 1587 - 600) / 60); the status lines read frame 1582 → 4727, fps 50.3 → 59.1. It is windowed, not headless: a hyprctl clients -j captured during play (saved as hypr-clients-play.json in the run folder) has the game's own window {"class": "dev.magicbean.Longshot", "title": "Longshot", "pid": 176708, "at": [966, 562], "size": [948, 512], "mapped": true, "visible": true, "workspace": {"id": 2, "name": "2"}, "fullscreen": 0, "xwayland": false} (Hyprland's logical size at scale 2; the game reports its window 1896x1024 and a 2560x1440 game picture), and an external grim shot of the desktop during play is external-play-1.png (3840x2160). The log has no vk: no window line (0 matches) and no could not start line; line 30 is vi: the vsync ticker started and line 163 is audio: renderer opened, with no startup hang. The earlier run at tree 0b31884e is superseded for this box by this one at the head.**
  • mise run test passes (any failure that also fails on main is named). Suite at f7af4e26fc4aaedc439e292b7c87d5216f814cc3: 835 passed, 2 failed, 8 skipped in 489 s (linux, 5 at once), exit 1; log prrefresh-logs/suite-2151-f7af4e26.log, sha256 ddd0f0a08f6dd411dca14a66e46f5802d989ba5f3a631ed0d669955217f6b9e8, .head = that sha. Passes against Amendment 1's CORE ∪ FLAKY plus the base failures of Amendment 2 — CORE/FLAKY: none; base-exempt: tests/test_display_startup_failure.py, tests/test_title_card_strips.py; same 8 skips. base failure tests/test_display_startup_failure.py exempt: fails identically at the merge-base be663a08a — display_startup_actual.inc:82:5: error: use of undeclared identifier 'bc_claim'; reproduction prrefresh-logs/base-be663a08a-two-ids.log, sha256 a26e89fa21110e64aa11987f7acae1a9d166b3c6e1877e8335aa3c9b0b9ac257. base failure tests/test_title_card_strips.py exempt: fails identically at the merge-base be663a08a — ModuleNotFoundError: No module named 'oot_patches'; same reproduction, same sha256. The head predates the main-green fix: its merge-base with be663a08a and with current main 7eb53d1a0 is be663a08a, the fix (#2539) is not merged, and 7eb53d1a0 itself still fails both ids (prrefresh-logs/base-7eb53d1a0-two-ids.log, sha256 64e995f08b1ac29ec5d69c0e9f31721eacd1491e89b1a975ea3448b9095390b3), so the exemption is legitimate here and would not be once a head is rebased past #2539.
  • Measured against main, or Measurements says why there is nothing to measure.
  • No game files, build output or hand-edited generated files; third_party/ untouched; nothing GPL-incompatible.

When it applies

  • A fix: a game-free test that fails on main and passes here. Both new checks are game-free. On main, tests/test_vsync_events.py fails at its source check, tests/test_vsync_events.py:64 (main starts the ticker at host/nn_vi.c:95, after the release at 93), and the audio fixture fails at tests/audio_renderer_start_test.c:56, FAIL:56 result == 0x2C01 (main returns 0 and leaves event 0x5000 registered). Both pass at this head's tree.
  • A check under tests/ that reads changed source is new and does not weaken an existing check.
  • Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths. Windows: linked at 75a2aafd, not a compile only. nx2\build.py --standalone with RX_VK_ONLY=1 compiled 268 renderer objects and linked longshot_vk.dll (compiled in 183 s, 0 failed, link 2 s) from a checkout whose git rev-parse HEAD is 75a2aafd8f31…: C:\Users\daze\longshot-2151\work\sa\build\longshot_vk.dll, 17,704,960 bytes, sha256 ea8a7bdbcc05ae80ec24e151cbe2cd21856381a34e1ed1779e05d6c3e1e38d85, PE32+ IMAGE_FILE_MACHINE_AMD64 / IMAGE_SUBSYSTEM_WINDOWS_GUI, exports mkwvk_init, mkwvk_close_asked, mkwvk_crash_close, mkwvk_crash_page, and the DLL carries 75a2aafd (source d2850c1d). The two changed files compile too: host/nn_vi.c → 32,415-byte and host/nn_audio.c → 170,534-byte COFF objects (machine 0x8664, sha256 2e3fb8d4… and 9710732a…). Linux: as above, the pack over a2dc5385 compiled both files and linked longshot (618,087,944 bytes) in 23 s. Run: longshot.exe with the whole pack on Windows at this head, windowed on the NVIDIA GeForce GTX 1650 (driver 610.62) after the LOW MEMORY dialog was dismissed with WM_CLOSE: 577,531,904 bytes, sha256 24ab4560031f2437c57f0db494cc0487181f5f00ad7552517f2d646bdecf0d3b, window handle 1574064 (pid 9556, rect 128,128,1422,886, 1294x758, visible=True), play ending at 33.4 fps after 2,104 frames in 64 s in KokiriForest_Child, exit_code 0; runs\win-2151\log.txt and smoke-75a2aafd.log on that box. The screenshots and game data stayed there.
  • AI assistance recorded with Assisted-by: / Co-Authored-By: trailers. The work was done with an AI coding agent (OpenCode, DeepSeek V4.1 Flash 1017): the two fixtures, the audio fold, the POSIX branch and the Windows COFF check are agent-written, directed and reviewed by the author. Both commits now carry Assisted-by: DeepSeek V4.1 Flash 1017 (opencode-go); no person co-authored, so there is no Co-Authored-By:. The trailer was added by a message-only amend: the tree is unchanged.

Ready to merge

  • Everything in Still to test has run, its results in Tested. Windows has not: the @Beanstalk request that names this head was posted on 2026-11-22 12:34, BeanBot answered that only a member of BigBeans can start it, and no approval has come yet. The by-hand item has not run either, and the rebase and strict suite are still pending. Ticks when those results are in Tested.
  • Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers"). No Tier 1 test of the affected area has run. The boot/play smoke ran on Tier 1 hardware — Linux on this PC, RTX 4070 Ti, NVIDIA 620.70.06 — but it is a startup check, not a test of the vsync or audio failure paths; Tier 1's Windows half has not run either, the same pending Windows item.
  • Approved in review, every comment answered. No review yet (pr status: Reviews: none); the Beanstalk approval is waiting for a BigBean.
  • CI passes on the head; on current main, measured again or a comment says why the numbers still hold. The suite evidence was taken on base a2dc5385; the head has since been rebased onto 8aa5ab87 at 75a2aafd, and then a comment-only commit made it 437d8eab4, and the suite has not been re-run on either. The in-game smoke is at tree 0b31884e (5db210a3), not at this head's tree (fe2b05c6). The CI status of earlier heads (6dd681be, f00baf93, 5db210a3) is not evidence for b567e2cf; re-confirm CI when the head reports. The @Beanstalk and CI asks that name b567e2cf (12:34 and 22:56) stay as history: the head moved to 75a2aafd after those asks, so their CI results are stale and have not been re-requested.
## Summary `nn::vi::GetDisplayVsyncEvent` registers the caller's event in a table of 8 under `vsync_lock`, but starts the ticker **outside** the lock: ```c if (!vsync_thread) vsync_thread = CreateThread(NULL, 0, vsync_main, NULL, 0, NULL); ``` Two guest threads can both see `vsync_thread == NULL` and each start a ticker. Every ticker runs `hos_system_event_signal` over the table once per period, so an auto-cleared vsync event fires twice per 16.7 ms and a waiter paced on it runs at double rate. On Linux `CreateThread` is `pthread_create` with a detached thread, and it returns after the thread may already have run — the window is real, not theoretical. Separately, with 8 events registered the `if` is false, the call returns 0, and the 9th event is never in the table: its waiter blocks forever. What changed (`host/nn_vi.c`): the registration and the ticker start are one section under `vsync_lock`; a full table returns Horizon's `os::ResultOutOfResource` (`0x2C01`, the code the host already uses for a full TLS slot table) and logs one line, instead of a silent success. A `CreateThread` that returns NULL — the thread limit, or no memory — is the same failure by another path: the slot is taken back out of the display's table, the call returns `0x2C01`, and no event is left in that table with no ticker to signal it. A later call tries the ticker again. The ticker logs its start once (`vi: the vsync ticker started`), so a game run's log shows it. `host/nn_audio.c`'s `OpenAudioRenderer` has the same shape: it initializes the caller's auto-cleared renderer event and starts the audio thread. A NULL `CreateThread` now clears `renderer_event`, the handle and `renderer_running`, returns `0x2C01`, logs it and leaves `renderer_thread` NULL so a later call retries; the host holds no renderer event after that, so nothing waits on one nothing signals. One wording limit both paths share: `hos_system_event_init` runs before the failure check, so the object-table entry it makes for the guest's event stays in `host/nn_os_sync.c`'s table, unsignalled. It is not a leak — `fresh()` finds that key and reinitialises it, so repeated failures add no entries — and a caller that checks its Result never waits on it; only one that ignores the Result blocks, exactly as `## Risks` says. **Rebase status (2026-11-25, current):** `f7af4e26f` → `d1b245a45` onto `main @ 8f7300756701b7c9a278e576bb075ac20e622a32`. Stable patch-id `4ad9a3c3c4b5d5145ac28abf313cbcdc001312da` is unchanged and main's old-base→new-main file intersection with this PR is **empty**. The evidence already named below (suite, platform, in-game and measurement, as applicable) therefore still stands at the historical heads that produced it. Earlier rebase notes are history; where they say "this head", they mean the evidence commit named beside that run, not `d1b245a45`. ## Testing **Rebase (2026-11-25).** Rebased onto `origin/main` `be663a08a30fa953420104d3cef6877bed6674a2`. Old head `437d8eab42f0bb47b67b76ee8d3d01182b1e526c` → new head `f7af4e26fc4aaedc439e292b7c87d5216f814cc3`. `git diff -U0 8aa5ab87..437d8eab` and `git diff -U0 be663a08a3..f7af4e26` hold the identical changed-line set (379 added/removed lines, 0 differing), so the rebase changed none of this PR's content. Main's new commits do touch `host/nn_vi.c` (30 insertions, 13 deletions, in #2286 and #2411), so the suite and the game runs below were taken on the pre-rebase head and do not describe the compiled result at this head. The `mise run test` box is unticked pending a suite at `f7af4e26fc` after the quiet window; the in-game and Windows runs were at `75a2aafd`/`437d8eab` and are kept as the record of that head. **The head moved twice without a code change, and the bullets below name the tree each result was taken on.** The head is now `f7af4e26fc`, which is `75a2aafd` (tree `fe2b05c6`) plus one comment-only commit: `git diff --stat 75a2aafd..437d8eab4` is `2 files changed, 6 insertions(+), 2 deletions(-)`, every changed line inside a C comment in `host/nn_vi.c` and `host/nn_audio.c`, so there is no code difference between the head and tree `fe2b05c6`. `fe2b05c6` is in turn not `5db210a3`'s `0b31884e` (`git diff --shortstat 5db210a3 75a2aafd` is `243 files changed, 19144 insertions(+), 6305 deletions(-)`), so the suite and fixture bullets describe tree `0b31884e`, not the head, except the windowed run at `75a2aafd` below. The commit subject still says `waiter` and will be reworded at the rebase; the title now names the Result the failure paths answer. **At `75a2aafd` (tree `fe2b05c6`, the code this head still carries): a windowed in-game run**, queue job `2151-windowed-75a2aafd-b` (ticket `176700`, `--mode shared`), 2026-11-24T15:44:41Z–15:46:00Z: `state: finished`, `exit_code: 0`, `stop_method: quit`; log line 30 `vi: the vsync ticker started`, line 163 `audio: renderer opened`, no `could not start` and no `vk: no window`; 42.2 s of measured play (presents 1587 → 4719, `(4719 - 1587 - 600) / 60`) from `kokiri-start`; `hyprctl clients -j` and an external `grim` shot taken during play. Run folder `~/.local/share/longshot-dev/runs/control/2151-windowed-75a2aafd-20261124-b/`. **Tested:** at the tree at `b567e2cf` (`5db210a3`); the full suite was taken on base `a2dc5385`: - `run_all --strict test_vsync_events test_audio_renderer_start`: **2 passed, 0 failed, 0 skipped** (0.3 s and 0.1 s; a passing check does not print the fixture's own lines). - The POSIX fixture on `fix/posix-renderer-thread` (a separate branch, no PR yet): **PASS** — `a renderer thread that cannot start: reported failure, event sets 0, attempts 1`. - The audio fixture against `origin/main`'s `host/nn_audio.c`: **fails on `main` for the reason** — `FAIL:56 result == 0x2C01`, with `a renderer thread that cannot start: result 0, handle 0x1, event 0x5000, thread (nil), attempts 1`: `main` returns 0 and leaves the event registered. - The full suite at the tree at `b567e2cf` (`5db210a3`), **taken on base `a2dc5385`**: **913 passed / 23 failed / 18 skipped in 815 s** (the job's full output is saved at `/home/daze/.local/share/longshot-dev/2151-light-job-5db210a3.log`), `run_all.py --strict --jobs 5` inside `systemd-run --user --scope -p MemoryMax=12G -p MemorySwapMax=0` with the pinned headers. The base's **911 / 23 / 18 in 635 s** is from the 02:58 comment and has **no saved log**. The 23 failures were compared name by name with `a2dc5385`'s at the time; they are **not current `main`'s failures**: `fe1c437c` (#2213) fixed 17 of them and says main is back to one (`tests/test_dev_packs`), and main adds five new checks. The strict suite will be re-run on the rebased head. The two extra passes over the base's 911 are the new `tests/test_vsync_events.py` and `tests/test_audio_renderer_start.py`. - **In the game at the tree at `b567e2cf` (`5db210a3`):** queue job `2151-smoke-gpu` (`gpu` mode, alone), Linux on this PC, RTX 4070 Ti, NVIDIA 620.70.06, headless, from the repository's `kokiri-start` save: title to **play** after 8 A presses, 30 s of play, screenshot at frame 3515, then `quit` — run state `finished`, exit code 0, `stop_method: quit`. The log's line 224 is `vi: the vsync ticker started` and line 279 is `audio: renderer opened`; there is no `could not start` line and no startup hang. (The first attempt, in `shared` mode, was OOM-killed during first-start shader preparation with another game beside it; this run prepared them and finished.) Run folder: `/home/daze/.local/share/longshot-dev/runs/control/2151-smoke-20261122-012558/`. The fixture lines the new checks assert (the branch run is above; the audio fixture's line is printed only on a failure): ``` a ticker that cannot start: result 0x2c01, 0 events registered a renderer thread that cannot start: result 0x2c01, handle 0x0, event 0x0, thread (nil), attempts 1 ``` The block below is a **manual run of the C fixture (`tests/vsync_events_test.c`) against `main`'s `host/nn_vi.c`**, not the committed Python test's output: on `main`, `tests/test_vsync_events.py` stops at the source check (`tests/test_vsync_events.py:64`; main starts the ticker at `host/nn_vi.c:95`, after the release at 93) before it builds the fixture. ``` main: two callers at once: 2 ticker starts, 2 events registered FAIL: the table of 8, a 9th event: result 0 branch: two callers at once: 1 ticker start, 2 events registered the table of 8, a 9th event: result 0x2c01 log: vi: GetDisplayVsyncEvent: the display's 8 vsync events are all taken PASS ``` The checks that cut/read `host/nn_vi.c` (`test_realtime_rate`, `test_water_substeps`, `test_camera_speed`, `test_fps_stats`, `test_movie_frame_count`, `test_scene_format`) all passed in that suite run. **Tested on Windows (llvm-mingw).** At `75a2aafd` on a Windows 11 x86-64 box (Acer Nitro AN515-57, i5-11400H, llvm-mingw 20261104 UCRT), `nx2\build.py --standalone` with `RX_VK_ONLY=1` compiled 268 renderer objects of this head and linked them: `compiled in 183 s, 0 failed`, link 2 s, 6 jobs, `lifted code … (0 files)` in the log, so no game data was read. Result: `C:\Users\daze\longshot-2151\work\sa\build\longshot_vk.dll`, 17,704,960 bytes, sha256 `ea8a7bdbcc05ae80ec24e151cbe2cd21856381a34e1ed1779e05d6c3e1e38d85`, PE32+ (`0x20B`) `IMAGE_FILE_MACHINE_AMD64` / `IMAGE_SUBSYSTEM_WINDOWS_GUI`, exporting `mkwvk_init`, `mkwvk_close_asked`, `mkwvk_crash_close` and `mkwvk_crash_page`; `llvm-strings` finds `75a2aafd (source d2850c1d)` in it. The checkout's `git rev-parse HEAD` was `75a2aafd8f314419de670e764aa2bcfee0669e5b` (`.head` beside the log); build log `build-75a2aafd.log`, sha256 `da665ea0a40ab06d558c8fe908be5d48b8bab0bcb9ff052d8060ea312c37bc02`. The two files this PR changes compile as well: `host/nn_vi.c` → `host_nn_vi.obj`, 32,415 bytes, sha256 `2e3fb8d4f89fe572cf38b3af31df1f06c6c6cb1a5548fb1ff99889b950c44b75`, and `host/nn_audio.c` → `host_nn_audio.obj`, 170,534 bytes, sha256 `9710732a4442412873d3645a35afc7321096b25210814bb287b0642230134da6`, both COFF machine `0x8664`, with `nx2/build.py`'s own host flags. That was the renderer DLL link, not the single-object compile the earlier tree had; **the whole pack then ran at this head on the same box, windowed:** `longshot.exe` 577,531,904 bytes, sha256 `24ab4560031f2437c57f0db494cc0487181f5f00ad7552517f2d646bdecf0d3b`, on the NVIDIA GeForce GTX 1650, driver `610.62`; the LOW MEMORY dialog was dismissed with `WM_CLOSE` before play. The game window was pid 9556, handle `1574064`, title `Longshot`, rect `128,128,1422,886` (1294x758), `visible=True` at the in-play, mid-play and end-play checks; play ran from frame 3017 at 29.3 fps to frame 5121 at **33.4 fps**, both samples in `KokiriForest_Child`, 2,104 frames over 64 s of wall time, then `exit_code 0` / `stop exit`, with 0 `vk: no window` and 0 `could not start` lines. Log `runs\win-2151\log.txt` (692,237 bytes, sha256 `3b938ade1f3ab5ed4481f868711e39683ff9e53369b00a0afa2771e0c17ca093`) and smoke log `smoke-75a2aafd.log` (25,603 bytes, sha256 `0f6f100b2f13018624b6870660b3091af47137c0c97319c0b6d5a8cd217f5bb4`); the screenshots and the game data stayed on that box, since nothing left it. **Still to test:** - Windows: the fixture is Linux-only (pthread rwlocks), so the race itself is not exercised there (by hand). ## Measurements Nothing to measure: this fixes a race and a dropped registration, not a frame path; the game run above is a boot/play check of the changed startup path, not a frame measurement. ## Risks A full vsync table, a ticker that cannot start, or an audio renderer that cannot start now reports `0x2C01` instead of 0 — a caller that ignores the Result still blocks on its unsignalled event, but the failure is visible in the result and the log, and the failed start takes the display's slot back out of `vsync_events` or clears the renderer's handle, `renderer_event` and `renderer_running`. One detail this leaves in place: `hos_system_event_init` runs before that check, so the object-table entry it made remains in `host/nn_os_sync.c`'s table, unsignalled; `fresh()` reuses that key, so repeated failures add nothing. A later call can try again. One ticker instead of two changes only the double-signalling case. No switch; a revert is enough. ## Checklist ### Ready for review - [x] One topic, on current `main`; the title is a Conventional Commit. — Rebased head `d1b245a45` is directly on `main @ 8f7300756701b7c9a278e576bb075ac20e622a32`; the preserved diff is the single topic described in Summary. - [x] Tested on my own PC, in the game for a change the game runs, as Testing says. **Windowed run at this head:** queue job `2151-windowed-75a2aafd-b` (ticket `176700`, `--mode shared`), run folder `/home/daze/.local/share/longshot-dev/runs/control/2151-windowed-75a2aafd-20261124-b/`, 2026-11-24T15:44:41Z–15:46:00Z. `state: finished`, `exit_code: 0`, `stop_method: quit`; log line 2 is `longshot v3.2.0-14-g75a2aafd8 (source d2850c1d)`. Title to play after 5 A presses, 10 s warm-up, then the scripted play in `KokiriForest_Child` (child, life 12/12): `shots/play-start.png` at present 1587 and `shots/play-end.png` at present 4719, so **42.2 s of measured play** (`(4719 - 1587 - 600) / 60`); the status lines read frame 1582 → 4727, fps 50.3 → 59.1. It is **windowed, not headless**: a `hyprctl clients -j` captured during play (saved as `hypr-clients-play.json` in the run folder) has the game's own window `{"class": "dev.magicbean.Longshot", "title": "Longshot", "pid": 176708, "at": [966, 562], "size": [948, 512], "mapped": true, "visible": true, "workspace": {"id": 2, "name": "2"}, "fullscreen": 0, "xwayland": false}` (Hyprland's logical size at scale 2; the game reports its window `1896x1024` and a 2560x1440 game picture), and an external `grim` shot of the desktop during play is `external-play-1.png` (3840x2160). The log has **no `vk: no window`** line (0 matches) and no `could not start` line; line 30 is `vi: the vsync ticker started` and line 163 is `audio: renderer opened`, with no startup hang. The earlier run at tree `0b31884e` is superseded for this box by this one at the head.** - [x] `mise run test` passes (any failure that also fails on `main` is named). **Suite at `f7af4e26fc4aaedc439e292b7c87d5216f814cc3`: 835 passed, 2 failed, 8 skipped in 489 s (linux, 5 at once), exit 1; log `prrefresh-logs/suite-2151-f7af4e26.log`, sha256 `ddd0f0a08f6dd411dca14a66e46f5802d989ba5f3a631ed0d669955217f6b9e8`, `.head` = that sha.** Passes against Amendment 1's CORE ∪ FLAKY plus the base failures of Amendment 2 — CORE/FLAKY: none; base-exempt: `tests/test_display_startup_failure.py`, `tests/test_title_card_strips.py`; same 8 skips. base failure `tests/test_display_startup_failure.py` exempt: fails identically at the merge-base `be663a08a` — `display_startup_actual.inc:82:5: error: use of undeclared identifier 'bc_claim'`; reproduction `prrefresh-logs/base-be663a08a-two-ids.log`, sha256 `a26e89fa21110e64aa11987f7acae1a9d166b3c6e1877e8335aa3c9b0b9ac257`. base failure `tests/test_title_card_strips.py` exempt: fails identically at the merge-base `be663a08a` — `ModuleNotFoundError: No module named 'oot_patches'`; same reproduction, same sha256. The head predates the main-green fix: its merge-base with `be663a08a` and with current `main` `7eb53d1a0` is `be663a08a`, the fix (#2539) is not merged, and `7eb53d1a0` itself still fails both ids (`prrefresh-logs/base-7eb53d1a0-two-ids.log`, sha256 `64e995f08b1ac29ec5d69c0e9f31721eacd1491e89b1a975ea3448b9095390b3`), so the exemption is legitimate here and would not be once a head is rebased past #2539. - [x] Measured against `main`, or Measurements says why there is nothing to measure. - [x] No game files, build output or hand-edited generated files; `third_party/` untouched; nothing GPL-incompatible. ### When it applies - [x] A fix: a game-free test that fails on `main` and passes here. **Both new checks are game-free. On `main`, `tests/test_vsync_events.py` fails at its source check, `tests/test_vsync_events.py:64` (main starts the ticker at `host/nn_vi.c:95`, after the release at 93), and the audio fixture fails at `tests/audio_renderer_start_test.c:56`, `FAIL:56 result == 0x2C01` (main returns 0 and leaves event `0x5000` registered). Both pass at this head's tree.** - [x] A check under `tests/` that reads changed source is new and does not weaken an existing check. - [x] Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths. **Windows: linked at `75a2aafd`, not a compile only.** `nx2\build.py --standalone` with `RX_VK_ONLY=1` compiled 268 renderer objects and **linked** `longshot_vk.dll` (`compiled in 183 s, 0 failed`, link 2 s) from a checkout whose `git rev-parse HEAD` is `75a2aafd8f31…`: `C:\Users\daze\longshot-2151\work\sa\build\longshot_vk.dll`, 17,704,960 bytes, sha256 `ea8a7bdbcc05ae80ec24e151cbe2cd21856381a34e1ed1779e05d6c3e1e38d85`, PE32+ `IMAGE_FILE_MACHINE_AMD64` / `IMAGE_SUBSYSTEM_WINDOWS_GUI`, exports `mkwvk_init`, `mkwvk_close_asked`, `mkwvk_crash_close`, `mkwvk_crash_page`, and the DLL carries `75a2aafd (source d2850c1d)`. The two changed files compile too: `host/nn_vi.c` → 32,415-byte and `host/nn_audio.c` → 170,534-byte COFF objects (machine `0x8664`, sha256 `2e3fb8d4…` and `9710732a…`). Linux: as above, the pack over `a2dc5385` compiled both files and linked `longshot` (618,087,944 bytes) in 23 s. **Run: `longshot.exe` with the whole pack on Windows at this head**, windowed on the NVIDIA GeForce GTX 1650 (driver `610.62`) after the LOW MEMORY dialog was dismissed with `WM_CLOSE`: 577,531,904 bytes, sha256 `24ab4560031f2437c57f0db494cc0487181f5f00ad7552517f2d646bdecf0d3b`, window handle `1574064` (pid 9556, rect `128,128,1422,886`, 1294x758, `visible=True`), play ending at 33.4 fps after 2,104 frames in 64 s in `KokiriForest_Child`, `exit_code 0`; `runs\win-2151\log.txt` and `smoke-75a2aafd.log` on that box. The screenshots and game data stayed there. - [x] AI assistance recorded with `Assisted-by:` / `Co-Authored-By:` trailers. **The work was done with an AI coding agent (OpenCode, DeepSeek V4.1 Flash 1017): the two fixtures, the audio fold, the POSIX branch and the Windows COFF check are agent-written, directed and reviewed by the author. Both commits now carry `Assisted-by: DeepSeek V4.1 Flash 1017 (opencode-go)`; no person co-authored, so there is no `Co-Authored-By:`. The trailer was added by a message-only amend: the tree is unchanged.** ### Ready to merge - [ ] Everything in Still to test has run, its results in Tested. Windows has not: the `@Beanstalk` request that names this head was posted on 2026-11-22 12:34, BeanBot answered that only a member of `BigBeans` can start it, and no approval has come yet. The by-hand item has not run either, and the rebase and strict suite are still pending. Ticks when those results are in Tested. - [ ] Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers"). No Tier 1 test of the affected area has run. The boot/play smoke ran on Tier 1 hardware — Linux on this PC, RTX 4070 Ti, NVIDIA 620.70.06 — but it is a startup check, not a test of the vsync or audio failure paths; Tier 1's Windows half has not run either, the same pending Windows item. - [ ] Approved in review, every comment answered. No review yet (`pr status`: Reviews: none); the Beanstalk approval is waiting for a BigBean. - [ ] CI passes on the head; on current `main`, measured again or a comment says why the numbers still hold. The suite evidence was taken on base `a2dc5385`; the head has since been rebased onto `8aa5ab87` at `75a2aafd`, and then a comment-only commit made it `437d8eab4`, and the suite has not been re-run on either. The in-game smoke is at tree `0b31884e` (`5db210a3`), not at this head's tree (`fe2b05c6`). The CI status of earlier heads (`6dd681be`, `f00baf93`, `5db210a3`) is not evidence for `b567e2cf`; re-confirm CI when the head reports. The `@Beanstalk` and CI asks that name `b567e2cf` (12:34 and 22:56) stay as history: the head moved to `75a2aafd` after those asks, so their CI results are stale and have not been re-requested.
fix(host): the display's vsync ticker starts under the table's lock, and a full table is a Result
Some checks failed
PR description / Description follows the template (pull_request_target) Successful in 5s
Website / Website on Cloudflare (pull_request_target) Has been skipped
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been cancelled
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
Guide screenshots / Guide images and local UI source review (pull_request) Has been cancelled
Third-party parts / As their notes say (pull_request) Has been cancelled
Third-party parts / The same as upstream (pull_request) Has been cancelled
fa9f400442
host/nn_vi.c's GetDisplayVsyncEvent registered the caller's auto-cleared
event in vsync_events (under vsync_lock) and then started the 60 Hz ticker
outside it: `if (!vsync_thread) vsync_thread = CreateThread(...)`. Two
guest threads in the function at once both found vsync_thread NULL and
each started a ticker. Each ticker signals every registered event once a
period, so a waiter paced on one woke twice a period and ran at double
rate.

The start moves into the section that already holds the lock, after the
registration it belongs with, so a ticker started there finds the event
that started it. CreateThread on Linux is pthread_create and returns
after the thread may already have run, so nothing outside the lock can
publish "started" before a second caller looks.

The table takes 8 events and a 9th registration was silently dropped
while the call returned 0: the caller's event was never signaled and its
waiter blocked forever. It now returns 0x2C01, os::ResultOutOfResource,
as hos_thread.c answers a full TLS slot table, and logs the count. The
result is the HLE's Result, so a caller that checks it can report it; one
that ignores it still gets the log line rather than a silent hang.

tests/test_vsync_events.py cuts vsync_events, nvsync, vsync_thread and
the HLE out of host/nn_vi.c (tests/srccut.py) and builds
tests/vsync_events_test.c over them with no display: two callers at once
through a CreateThread that counts the starts and holds the first caller
inside itself, then the table filled. On main: 2 ticker starts and a 0
for the 9th registration; here: 1 start, both events registered, 0x2C01
for the 9th and the eight whole. The check also reads the source for the
start between the lock's acquire and its release.

Not run in the game: a smoke holds this PC's job queue (no game runs were
asked for). The changed code is HLE state and one thread start, and the
game-free fixture is what exercises it.
Author
Contributor

Tested in game: Kokiri Forest (child), pack over 1885234b, 20 s: 90.8 fps median 11.03 ms, 0 cold frames; boots and plays. Arch Linux/Hyprland, RTX 4070 Ti, NVIDIA 620.70.06.

Tested in game: Kokiri Forest (child), pack over 1885234b, 20 s: 90.8 fps median 11.03 ms, 0 cold frames; boots and plays. Arch Linux/Hyprland, RTX 4070 Ti, NVIDIA 620.70.06.
dazemc force-pushed fix/vsync-ticker-lock from fa9f400442
Some checks failed
PR description / Description follows the template (pull_request_target) Successful in 5s
Website / Website on Cloudflare (pull_request_target) Has been skipped
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been cancelled
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
Guide screenshots / Guide images and local UI source review (pull_request) Has been cancelled
Third-party parts / As their notes say (pull_request) Has been cancelled
Third-party parts / The same as upstream (pull_request) Has been cancelled
to 936b343728
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
beanstalk/approval waiting for a BigBean's 👍 on the request
PR description / Description follows the template (pull_request_target) Successful in 28s
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been cancelled
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
Guide screenshots / Guide images and local UI source review (pull_request) Has been cancelled
Third-party parts / As their notes say (pull_request) Has been cancelled
Third-party parts / The same as upstream (pull_request) Has been cancelled
Website / Website on Cloudflare (pull_request) Has been cancelled
2026-11-21 23:33:50 +00:00
Compare
Author
Contributor

Rebased onto 344deb6c (head 936b3437); #2159 also touches host/nn_vi.c and the rebase was clean, test_vsync_events still passes. The in-game run was on 1885234b.

Rebased onto 344deb6c (head 936b3437); #2159 also touches host/nn_vi.c and the rebase was clean, test_vsync_events still passes. The in-game run was on 1885234b.
Author
Contributor

@Beanstalk Windows: start the game on this branch and confirm GetDisplayVsyncEvent still runs and the game presents normally — vsync events still delivered, no stall on start. Its fixture is Linux-only, so only the start is asked.

Ready otherwise.

@Beanstalk Windows: start the game on this branch and confirm `GetDisplayVsyncEvent` still runs and the game presents normally — vsync events still delivered, no stall on start. Its fixture is Linux-only, so only the start is asked. Ready otherwise.
Member

@dazemc only members of BigBeans can start the farm.

One of them can approve this request by reacting 👍 to it or to this comment. This request was for 936b343, and the PR has changed since (6dd681b), so a 👍 no longer approves it. Comment @Beanstalk again to ask for the new commit.

@dazemc only members of `BigBeans` can start the farm. ~~One of them can approve this request by reacting 👍 to it or to this comment.~~ This request was for `936b343`, and the PR has changed since (`6dd681b`), so a 👍 no longer approves it. Comment `@Beanstalk` again to ask for the new commit.
dazemc changed title from fix(host): the display's vsync ticker starts under the table's lock, and a full table is a Result to WIP: fix(host): the display's vsync ticker starts under the table's lock, and a full table is a Result 2026-11-22 01:41:52 +00:00
Author
Contributor

Back to WIP for one box: this head's merge base is 344deb6c, and main has since moved to a2dc5385 with #2171 (9e10f6f7) fixing the game-free checks (~199 test files). The suite numbers here were measured against the old main (813/116/18 there, now 911/22/18), so 'mise run test' is unticked until a rebase onto a2dc5385 and a re-run of tests/run_all.py --strict, test_vsync_events included.

The in-game smoke stands: its record (5bc9f83a, 1816 frames, 90.8 fps, 0 cold frames) matches, and the changed lines of host/nn_vi.c are identical to the head's.

The Ready to merge boxes stay unticked, each with its reason beside it: Windows (fixture is Linux-only) is with the Test Farm, waiting for a BigBean; no review yet; CI's build/test jobs are still pending.

Back to WIP for one box: this head's merge base is `344deb6c`, and `main` has since moved to `a2dc5385` with **#2171** (`9e10f6f7`) fixing the game-free checks (~199 test files). The suite numbers here were measured against the old `main` (813/116/18 there, now 911/22/18), so 'mise run test' is unticked until a rebase onto `a2dc5385` and a re-run of `tests/run_all.py --strict`, `test_vsync_events` included. The in-game smoke stands: its record (`5bc9f83a`, 1816 frames, 90.8 fps, 0 cold frames) matches, and the changed lines of `host/nn_vi.c` are identical to the head's. The Ready to merge boxes stay unticked, each with its reason beside it: Windows (fixture is Linux-only) is with the Test Farm, waiting for a BigBean; no review yet; CI's build/test jobs are still pending.
dazemc force-pushed fix/vsync-ticker-lock from 936b343728
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
beanstalk/approval waiting for a BigBean's 👍 on the request
PR description / Description follows the template (pull_request_target) Successful in 28s
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been cancelled
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
Guide screenshots / Guide images and local UI source review (pull_request) Has been cancelled
Third-party parts / As their notes say (pull_request) Has been cancelled
Third-party parts / The same as upstream (pull_request) Has been cancelled
Website / Website on Cloudflare (pull_request) Has been cancelled
to 6dd681bef0
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
beanstalk/approval waiting for a BigBean's 👍 on the request
PR description / Description follows the template (pull_request_target) Successful in 5s
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been cancelled
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
Guide screenshots / Guide images and local UI source review (pull_request) Has been cancelled
Third-party parts / As their notes say (pull_request) Has been cancelled
Third-party parts / The same as upstream (pull_request) Has been cancelled
Website / Website on Cloudflare (pull_request) Has been cancelled
2026-11-22 01:48:03 +00:00
Compare
Author
Contributor

Rebased onto a2dc5385: head is now 6dd681be. The rebase was clean — one commit replayed with no conflicts.

Full game-free suite, run in the same shape as a clean a2dc5385 baseline (tests/run_all.py --strict --jobs 3, systemd-run --user --scope -p MemoryMax=8G -p MemorySwapMax=0, the pinned headers):

  • clean a2dc5385: 911 passed / 23 failed / 18 skipped in 635 s
  • this head 6dd681be: 912 / 23 / 18 in 618 s

Failing names identical, compared name by name (23); the extra pass is the new tests/test_vsync_events.py. The one name new on a2dc5385 since 9e10f6f7 is tests/test_sim_turf_pools.py: #2174 changed the simulated-turf floor while that old check still asserts a zero floor, so it is stale on main and red identically here.

In-game evidence (Jev: 0.77, likely valid): the smoked 5bc9f83a record matches, the changed lines in host/nn_vi.c are identical to this head (#2159 touches the same file elsewhere), and no commit in 344deb6c..a2dc5385 touches it. No new in-game run was made.

Rebased onto `a2dc5385`: head is now `6dd681be`. The rebase was clean — one commit replayed with no conflicts. Full game-free suite, run in the same shape as a clean `a2dc5385` baseline (`tests/run_all.py --strict --jobs 3`, `systemd-run --user --scope -p MemoryMax=8G -p MemorySwapMax=0`, the pinned headers): - clean `a2dc5385`: **911 passed / 23 failed / 18 skipped in 635 s** - this head `6dd681be`: **912 / 23 / 18 in 618 s** Failing names identical, compared name by name (23); the extra pass is the new `tests/test_vsync_events.py`. The one name new on `a2dc5385` since `9e10f6f7` is `tests/test_sim_turf_pools.py`: #2174 changed the simulated-turf floor while that old check still asserts a zero floor, so it is stale on `main` and red identically here. In-game evidence (Jev: **0.77, likely valid**): the smoked `5bc9f83a` record matches, the changed lines in `host/nn_vi.c` are identical to this head (#2159 touches the same file elsewhere), and no commit in `344deb6c..a2dc5385` touches it. No new in-game run was made.
dazemc changed title from WIP: fix(host): the display's vsync ticker starts under the table's lock, and a full table is a Result to fix(host): the display's vsync ticker starts under the table's lock, and a full table is a Result 2026-11-22 02:58:36 +00:00
Author
Contributor

@Beanstalk Windows: start the game on this branch and confirm GetDisplayVsyncEvent still runs and the game presents normally — vsync events still delivered, no stall on start. Its fixture is Linux-only, so only the start is asked.

Head: 6dd681be (rebased onto a2dc5385).

@Beanstalk Windows: start the game on this branch and confirm `GetDisplayVsyncEvent` still runs and the game presents normally — vsync events still delivered, no stall on start. Its fixture is Linux-only, so only the start is asked. Head: `6dd681be` (rebased onto `a2dc5385`).
Member

@dazemc only members of BigBeans can start the farm.

One of them can approve this request by reacting 👍 to it or to this comment. This request was for 6dd681b, and the PR has changed since (9cd4714), so a 👍 no longer approves it. Comment @Beanstalk again to ask for the new commit.

@dazemc only members of `BigBeans` can start the farm. ~~One of them can approve this request by reacting 👍 to it or to this comment.~~ This request was for `6dd681b`, and the PR has changed since (`9cd4714`), so a 👍 no longer approves it. Comment `@Beanstalk` again to ask for the new commit.
fix(host): a vsync ticker that cannot start leaves no event registered
Some checks failed
beanstalk/approval changed since the request: ask again
PR description / Description follows the template (pull_request_target) Successful in 9s
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been cancelled
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
Guide screenshots / Guide images and local UI source review (pull_request) Has been cancelled
Third-party parts / As their notes say (pull_request) Has been cancelled
Third-party parts / The same as upstream (pull_request) Has been cancelled
9cd4714fde
GetDisplayVsyncEvent registered the event and then started the ticker.
CreateThread can return NULL (the thread limit, or no memory), leaving
the event in the table with no thread to signal it: its waiter blocks
forever, the same failure as a full table through another path.

Take the registration back, answer os::ResultOutOfResource (0x2C01), and
log it; a later call can try the ticker again.

tests/vsync_events_test.c gets a CreateThread that fails and asserts the
event is not left registered, with the result a failure.
dazemc force-pushed fix/vsync-ticker-lock from 9cd4714fde
Some checks failed
beanstalk/approval changed since the request: ask again
PR description / Description follows the template (pull_request_target) Successful in 9s
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been cancelled
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
Guide screenshots / Guide images and local UI source review (pull_request) Has been cancelled
Third-party parts / As their notes say (pull_request) Has been cancelled
Third-party parts / The same as upstream (pull_request) Has been cancelled
to f00baf93a7
Some checks failed
beanstalk/approval changed since the request: ask again
PR description / Description follows the template (pull_request_target) Successful in 6s
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been cancelled
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
Guide screenshots / Guide images and local UI source review (pull_request) Has been cancelled
Third-party parts / As their notes say (pull_request) Has been cancelled
Third-party parts / The same as upstream (pull_request) Has been cancelled
2026-11-22 07:03:21 +00:00
Compare
Author
Contributor

Description updated for head f00baf93: the CreateThread NULL path now covers the vsync ticker and nn_audio.c's renderer (event/handle cleared, 0x2C01, retry), with tests/audio_renderer_start_test.c + test_vsync_events' new case; the vsync fixture's InterlockedDecrement stub is in this head. The suite numbers at a2dc5385/6dd681be are not evidence for f00baf93: the targeted fixtures and suite at f00baf93 are queued, results to follow.

Description updated for head f00baf93: the CreateThread NULL path now covers the vsync ticker and nn_audio.c's renderer (event/handle cleared, 0x2C01, retry), with tests/audio_renderer_start_test.c + test_vsync_events' new case; the vsync fixture's InterlockedDecrement stub is in this head. The suite numbers at a2dc5385/6dd681be are not evidence for f00baf93: the targeted fixtures and suite at f00baf93 are queued, results to follow.
dazemc changed title from fix(host): the display's vsync ticker starts under the table's lock, and a full table is a Result to WIP: fix(host): the display's vsync ticker starts under the table's lock, and a full table is a Result 2026-11-22 07:24:10 +00:00
dazemc force-pushed fix/vsync-ticker-lock from f00baf93a7
Some checks failed
beanstalk/approval changed since the request: ask again
PR description / Description follows the template (pull_request_target) Successful in 6s
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been cancelled
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
Guide screenshots / Guide images and local UI source review (pull_request) Has been cancelled
Third-party parts / As their notes say (pull_request) Has been cancelled
Third-party parts / The same as upstream (pull_request) Has been cancelled
to 5db210a3e1
Some checks failed
beanstalk/approval changed since the request: ask again
PR description / Description follows the template (pull_request_target) Failing after 4s
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been cancelled
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
Guide screenshots / Guide images and local UI source review (pull_request) Has been cancelled
Third-party parts / As their notes say (pull_request) Has been cancelled
Third-party parts / The same as upstream (pull_request) Has been cancelled
2026-11-22 07:30:08 +00:00
Compare
Author
Contributor

Marked WIP and unticked the boxes the new head invalidates (in-game test, suite, fix-fails-on-main: reasons beside each). Head is now 5db210a3: the ticker logs its start once ("vi: the vsync ticker started") so the in-game smoke can read it out of the log; that is the only change since f00baf93. One queued job will run, in order: the two branch fixtures, the POSIX fixture (separate branch), the audio fixture against origin/main (it must fail there for the reason), the full suite at this head (jobs 5, MemoryMax=12G), then dev.py rt and a shared-mode game smoke (kokiri-start save, title to play, 30 s, quit) checking the ticker line, "audio: renderer opened" and no startup hang. Boxes stay unticked until that output is in Tested.

Marked WIP and unticked the boxes the new head invalidates (in-game test, suite, fix-fails-on-main: reasons beside each). Head is now 5db210a3: the ticker logs its start once ("vi: the vsync ticker started") so the in-game smoke can read it out of the log; that is the only change since f00baf93. One queued job will run, in order: the two branch fixtures, the POSIX fixture (separate branch), the audio fixture against origin/main (it must fail there for the reason), the full suite at this head (jobs 5, MemoryMax=12G), then dev.py rt and a shared-mode game smoke (kokiri-start save, title to play, 30 s, quit) checking the ticker line, "audio: renderer opened" and no startup hang. Boxes stay unticked until that output is in Tested.
Author
Contributor

Added the host-build checklist row the diff suggests (host/nn_audio.c and host/nn_vi.c): unticked until the queued Linux build and the Windows item land. No code change in this update.

Added the host-build checklist row the diff suggests (host/nn_audio.c and host/nn_vi.c): unticked until the queued Linux build and the Windows item land. No code change in this update.
dazemc changed title from WIP: fix(host): the display's vsync ticker starts under the table's lock, and a full table is a Result to WIP: fix(host): the vsync ticker starts once; a failed ticker or audio renderer leaves no waiter 2026-11-22 08:49:13 +00:00
Author
Contributor

Re-queued without blocking timing runs: the POSIX fixture, the audio fixture against origin/main and the full suite at 5db210a3 now run as one light job in the job queue (dev.py queue run --mode light), outside the machine lock; only dev.py rt and the 30 s game smoke take the lock, after the timing jobs ahead of them (#2154's keys, finalized-2). The description's "queued" wording is corrected accordingly (the lock poller is not a queue job). Title widened to name the nn_audio.c half. Already green at this head: run_all --strict test_vsync_events test_audio_renderer_start, 2 passed.

Re-queued without blocking timing runs: the POSIX fixture, the audio fixture against origin/main and the full suite at 5db210a3 now run as one light job in the job queue (dev.py queue run --mode light), outside the machine lock; only dev.py rt and the 30 s game smoke take the lock, after the timing jobs ahead of them (#2154's keys, finalized-2). The description's "queued" wording is corrected accordingly (the lock poller is not a queue job). Title widened to name the nn_audio.c half. Already green at this head: run_all --strict test_vsync_events test_audio_renderer_start, 2 passed.
Author
Contributor

Results at 5db210a3, light job outside the machine lock: POSIX fixture PASS (reported failure, event not set, one attempt); audio fixture against origin/main fails for the reason (FAIL:56 result == 0x2C01, result 0, event 0x5000 still registered) and passes here; full suite 913 passed / 23 failed / 18 skipped in 815 s with --jobs 5 under MemoryMax=12G, the 23 names identical to main's. Ticked the suite and fix-fails-on-main boxes from that output. Still unticked: in-game smoke (running under the machine lock after the timing jobs, including #2154) and the host-build box's Windows half. Title and wording already correct.

Results at 5db210a3, light job outside the machine lock: POSIX fixture PASS (reported failure, event not set, one attempt); audio fixture against origin/main fails for the reason (FAIL:56 result == 0x2C01, result 0, event 0x5000 still registered) and passes here; full suite 913 passed / 23 failed / 18 skipped in 815 s with --jobs 5 under MemoryMax=12G, the 23 names identical to main's. Ticked the suite and fix-fails-on-main boxes from that output. Still unticked: in-game smoke (running under the machine lock after the timing jobs, including #2154) and the host-build box's Windows half. Title and wording already correct.
Author
Contributor

The first in-game smoke at 5db210a3 did not reach the title: the system OOM killer killed the shared queue job during first-start shader preparation (start-up 36499/38809, 38809 programs, 6.2G peak + 3.8G swap) while another shared game ran. That is machine pressure, not a code result; the run's log shows the host up to device init only, so nothing is ticked. Retrying alone in the queue's gpu mode with a 900 s readiness timeout, under the machine lock after the timing jobs (#2154 is ahead).

The first in-game smoke at 5db210a3 did not reach the title: the system OOM killer killed the shared queue job during first-start shader preparation (start-up 36499/38809, 38809 programs, 6.2G peak + 3.8G swap) while another shared game ran. That is machine pressure, not a code result; the run's log shows the host up to device init only, so nothing is ticked. Retrying alone in the queue's gpu mode with a 900 s readiness timeout, under the machine lock after the timing jobs (#2154 is ahead).
Author
Contributor

Correction: the smoke retry is now a real queue ticket, not a lock poller — job 2151-smoke-gpu, mode gpu (no other game beside it), readiness timeout 900 s, waiting for the GPU behind #2154's shared probe; queue status shows it. The 913/23/18 suite output is saved at /home/daze/.local/share/longshot-dev/2151-light-job-5db210a3.log and the body names it. The Windows COFF check for host/nn_vi.c and host/nn_audio.c is job 2151-wincoff (light), waiting on the queue's memory admission; the host-build box stays unticked until it compiles.

Correction: the smoke retry is now a real queue ticket, not a lock poller — job 2151-smoke-gpu, mode gpu (no other game beside it), readiness timeout 900 s, waiting for the GPU behind #2154's shared probe; queue status shows it. The 913/23/18 suite output is saved at /home/daze/.local/share/longshot-dev/2151-light-job-5db210a3.log and the body names it. The Windows COFF check for host/nn_vi.c and host/nn_audio.c is job 2151-wincoff (light), waiting on the queue's memory admission; the host-build box stays unticked until it compiles.
Author
Contributor

Windows half of the host-build box done: host/nn_vi.c and host/nn_audio.c compile as x86_64-w64-mingw32 COFF objects (machine 0x8664, 33 KB and 170 KB) with llvm-mingw 20261104's clang 23.1.5. The first attempt used #2180's shortened flag list and failed on nn_vi.c's early rx_option call (implicit declaration); the real host flags from nx2/build.py add -Wno-everything, and both compile with them. Objects at /home/daze/.local/share/longshot-dev/2151-wincoff/. Box ticked. Smoke 2151-smoke-gpu still waits for the GPU.

Windows half of the host-build box done: host/nn_vi.c and host/nn_audio.c compile as x86_64-w64-mingw32 COFF objects (machine 0x8664, 33 KB and 170 KB) with llvm-mingw 20261104's clang 23.1.5. The first attempt used #2180's shortened flag list and failed on nn_vi.c's early rx_option call (implicit declaration); the real host flags from nx2/build.py add -Wno-everything, and both compile with them. Objects at /home/daze/.local/share/longshot-dev/2151-wincoff/. Box ticked. Smoke 2151-smoke-gpu still waits for the GPU.
Author
Contributor

In-game smoke passed at 5db210a3 (job 2151-smoke-gpu, gpu mode alone): title to play after 8 presses, 30 s of play, screenshot at frame 3515, quit with exit 0. Log line 224 'vi: the vsync ticker started', line 279 'audio: renderer opened'; no could-not-start line and no startup hang. Ticked the in-game box; the earlier OOM was the shared-mode first-start shader preparation with another game beside it, not the change. With the suite, the fixtures and the Windows COFF objects, every Ready-for-review and When-it-applies box is ticked.

In-game smoke passed at 5db210a3 (job 2151-smoke-gpu, gpu mode alone): title to play after 8 presses, 30 s of play, screenshot at frame 3515, quit with exit 0. Log line 224 'vi: the vsync ticker started', line 279 'audio: renderer opened'; no could-not-start line and no startup hang. Ticked the in-game box; the earlier OOM was the shared-mode first-start shader preparation with another game beside it, not the change. With the suite, the fixtures and the Windows COFF objects, every Ready-for-review and When-it-applies box is ticked.
dazemc changed title from WIP: fix(host): the vsync ticker starts once; a failed ticker or audio renderer leaves no waiter to fix(host): the vsync ticker starts once; a failed ticker or audio renderer leaves no waiter 2026-11-22 09:28:36 +00:00
dazemc left a comment

The Checklist has no ### When it applies section: the A fix box (the new tests/test_vsync_events.py and tests/test_audio_renderer_start.py fail on main and pass here), the Host code builds on Windows box (Testing is a COFF compile of the two changed host files; the full Windows link is not made), and the AI assistance recorded box are absent. The five Ready-for-review boxes are settled at 5db210a3; please add the section, and mark the Windows build box partial/CI if the full link has not run.

The Checklist has no `### When it applies` section: the `A fix` box (the new `tests/test_vsync_events.py` and `tests/test_audio_renderer_start.py` fail on `main` and pass here), the `Host code builds on Windows` box (Testing is a COFF compile of the two changed host files; the full Windows link is not made), and the `AI assistance recorded` box are absent. The five Ready-for-review boxes are settled at `5db210a3`; please add the section, and mark the Windows build box partial/CI if the full link has not run.
dazemc force-pushed fix/vsync-ticker-lock from 5db210a3e1
Some checks failed
beanstalk/approval changed since the request: ask again
PR description / Description follows the template (pull_request_target) Failing after 4s
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been cancelled
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
Guide screenshots / Guide images and local UI source review (pull_request) Has been cancelled
Third-party parts / As their notes say (pull_request) Has been cancelled
Third-party parts / The same as upstream (pull_request) Has been cancelled
to b567e2cf61
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
beanstalk/approval waiting for a BigBean's 👍 on the request
PR description / Description follows the template (pull_request_target) Successful in 5s
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been cancelled
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
Guide screenshots / Guide images and local UI source review (pull_request) Has been cancelled
Third-party parts / As their notes say (pull_request) Has been cancelled
Third-party parts / The same as upstream (pull_request) Has been cancelled
2026-11-22 10:57:18 +00:00
Compare
dazemc left a comment

WIA and AI boxes added; the AI is backed by the Assisted-by: trailer in b567e2cf. The Host code builds on Windows box is still [x] on a COFF compile only, with the full link not made by your own note — untick it or mark it partial/CI. The Tested/suite boxes still say 5db210a3; the head is b567e2cf (the trailer amend, tree unchanged) — say that there too or name the new head.

WIA and AI boxes added; the AI is backed by the `Assisted-by:` trailer in `b567e2cf`. The `Host code builds on Windows` box is still [x] on a COFF compile only, with the full link not made by your own note — untick it or mark it partial/CI. The Tested/suite boxes still say `5db210a3`; the head is `b567e2cf` (the trailer amend, tree unchanged) — say that there too or name the new head.
Author
Contributor

@Beanstalk Windows: start the game on this branch and confirm GetDisplayVsyncEvent still runs and the game presents normally — vsync events still delivered, no stall on start. This is a fresh request: the earlier one was for 6dd681be, and the head is now b567e2cf; the fixture is Linux-only, so this start/present check is the Windows half.

@Beanstalk Windows: start the game on this branch and confirm `GetDisplayVsyncEvent` still runs and the game presents normally — vsync events still delivered, no stall on start. This is a fresh request: the earlier one was for `6dd681be`, and the head is now `b567e2cf`; the fixture is Linux-only, so this start/present check is the Windows half.
Member

@dazemc only members of BigBeans can start the farm.

One of them can approve this request by reacting 👍 to it or to this comment. This request was for b567e2c, and the PR has changed since (2836e29), so a 👍 no longer approves it. Comment @Beanstalk again to ask for the new commit.

@dazemc only members of `BigBeans` can start the farm. ~~One of them can approve this request by reacting 👍 to it or to this comment.~~ This request was for `b567e2c`, and the PR has changed since (`2836e29`), so a 👍 no longer approves it. Comment `@Beanstalk` again to ask for the new commit.
Author
Contributor

Head b567e2cf is still ready and waits only on fork CI: its pull_request jobs are "Blocked by required conditions" and the PR has no ci: approved label. No earlier fork-CI ask names this head.

@HumanBean: please approve this head's fork CI runs (the Actions jobs, and the ci: approved label for the fork project) and review #2151 — the vsync ticker starting once, a failed ticker or audio renderer leaving no waiter.

Evidence is in the thread: the suite at 5db210a3 (913/23/18, the baseline's names) and the in-game smoke at 5db210a3; b567e2cf is a trailer amend with the same tree.

Head `b567e2cf` is still ready and waits only on fork CI: its `pull_request` jobs are "Blocked by required conditions" and the PR has no `ci: approved` label. No earlier fork-CI ask names this head. @HumanBean: please approve this head's fork CI runs (the Actions jobs, and the `ci: approved` label for the fork project) and review #2151 — the vsync ticker starting once, a failed ticker or audio renderer leaving no waiter. Evidence is in the thread: the suite at 5db210a3 (913/23/18, the baseline's names) and the in-game smoke at 5db210a3; `b567e2cf` is a trailer amend with the same tree.
dazemc left a comment

Read-only audit of b567e2cf, box by box. The fix reads correctly: the registration and the ticker start are one section under vsync_lock (host/nn_vi.c:90-119), a full table and a NULL CreateThread answer 0x2C01 and take the registration back (host/nn_vi.c:91-115), and the audio renderer clears its event, handle and renderer_running and leaves renderer_thread NULL (host/nn_audio.c:1648-1662). The two new checks are real and game-free (tests/test_vsync_events.py:59-74, tests/test_audio_renderer_start.py:33-35). The gaps below are base and evidence, not the fix.

Per-box

Box Verdict Evidence / gap
One topic, on current main No The head's merge base is a2dc5385; origin/main is 13 commits ahead. The title is Conventional and the scope is one theme, but the base claim is false at this head. git diff a2dc5385 origin/main -- host/nn_vi.c host/nn_audio.c is empty, so the fix is not invalidated; the suite claim is.
Tested in game Yes for the tree The run's manifest says v3.1.1-2-g5db210a3; b567e2cf and 5db210a3 both have tree 0b31884e; log lines 224 and 279 are exactly the claimed lines; state finished, exit 0, quit. Say "the tree at b567e2cf (5db210a3)" or re-run at the commit.
mise run test No at current main The head's 913/23/18 is in the saved log and the tree matches; the base 911/23/18 is from the 02:58 comment. But fe1c437c (#2213) fixed 17 of the 23 names (test_close_waits_for_save, test_compile_zero_byte, test_damaged_rom_files, test_draw_stream_visibility, test_fs_save_commit, test_fsr_uniform_ownership, test_guest_copies, test_hold_toggle, test_lower_atomg_cas, test_menu_i18n, test_menu_keys, test_menu_slider_ends, test_pads_after_menu, test_recording_admission, test_sim_turf_pools, test_vibration_menu, nx2/test_import_windows) and says main is back to one failing check (test_dev_packs); main also adds 5 test files. The head's 23 failures are mostly the stale base, so "the same names main fails" is not true at current main. Rebase and rerun tests/run_all.py --strict at the new base.
Measured / N/A Yes (N/A) The diff is one-time startup and failure paths; the ticker's per-frame loop is unchanged. The reason is explicit. The earlier 5bc9f83a 1816/90.8 vs 1851/92.6 is one run at a superseded commit; drop it or label it as not attributable.
No game files/build output/generated files/third_party Yes The diff is 6 source files only.
Fix test fails on main, passes here Yes The vsync check fails on main at tests/test_vsync_events.py:64 because main's start is at host/nn_vi.c:95, after the release at 93; the audio fixture fails at tests/audio_renderer_start_test.c:56 (the job log's FAIL:56). Note: the body's "main: two tickers..." output is a manual fixture run; the committed Python test on main fails at the source check and never reaches it.
New check, not weakening an old one Yes Two new tests; no existing check changed.
Host builds on Windows and Linux Partial Windows is a COFF compile only (33,169 and 169,901 bytes, machine 0x8664, clang 23.1.5), no link; Linux linked longshot (618,087,944 bytes) and ran the suite. #2141's box is the precedent, but the 11:02 review asked "untick it or mark it partial/CI"; the box is still [x]. Mark it partial/CI or cite #2141 in the box.
AI assistance trailers Yes Both commits carry Assisted-by: DeepSeek V4.1 Flash 1017 (opencode-go); the head is a message-only amend (both trees 0b31884e).
Docs / switches / menu N/A No gpu/vk/switches.def or gpu/vk/menu/; no user-visible setting. The template says delete N/A boxes.
Ready to merge Correctly unticked Windows by hand, Tier 1, approval and CI each have a reason; pr checks is 10 pending/blocked, 2 passed.

Claims to fix or settle

  • "the 23 failures are the same names main fails" — false at current main (#2213; git show -s fe1c437c, git diff --name-status a2dc5385 origin/main -- tests/). Settle with a rebase and one mise run test.
  • "At b567e2cf" for the game run — the manifest's version is 5db210a3; the tree is equal. Say "the tree" or re-run.
  • "a failed ticker or audio renderer leaves no waiter" — a caller that ignores 0x2C01 still waits on an unsignalled event, and the Risks says so. "Leaves no registered event" is the accurate claim.
  • The "main: two tickers" vsync output — not what tests/test_vsync_events.py prints on main (it stops at the source check). Label it a manual fixture run.

Nothing here asks for a code change: the fix and its tests stand. The next step is a rebase onto current main and a fresh strict suite at the new head, then the suite box can be re-ticked with the actual names.

Read-only audit of `b567e2cf`, box by box. The fix reads correctly: the registration and the ticker start are one section under `vsync_lock` (`host/nn_vi.c:90-119`), a full table and a NULL `CreateThread` answer `0x2C01` and take the registration back (`host/nn_vi.c:91-115`), and the audio renderer clears its event, handle and `renderer_running` and leaves `renderer_thread` NULL (`host/nn_audio.c:1648-1662`). The two new checks are real and game-free (`tests/test_vsync_events.py:59-74`, `tests/test_audio_renderer_start.py:33-35`). The gaps below are base and evidence, not the fix. **Per-box** | Box | Verdict | Evidence / gap | |---|---|---| | One topic, on current `main` | **No** | The head's merge base is `a2dc5385`; `origin/main` is 13 commits ahead. The title is Conventional and the scope is one theme, but the base claim is false at this head. `git diff a2dc5385 origin/main -- host/nn_vi.c host/nn_audio.c` is empty, so the fix is not invalidated; the suite claim is. | | Tested in game | **Yes for the tree** | The run's manifest says `v3.1.1-2-g5db210a3`; `b567e2cf` and `5db210a3` both have tree `0b31884e`; log lines 224 and 279 are exactly the claimed lines; state `finished`, exit 0, `quit`. Say "the tree at `b567e2cf` (`5db210a3`)" or re-run at the commit. | | `mise run test` | **No at current `main`** | The head's `913/23/18` is in the saved log and the tree matches; the base `911/23/18` is from the 02:58 comment. But `fe1c437c` (#2213) fixed 17 of the 23 names (`test_close_waits_for_save`, `test_compile_zero_byte`, `test_damaged_rom_files`, `test_draw_stream_visibility`, `test_fs_save_commit`, `test_fsr_uniform_ownership`, `test_guest_copies`, `test_hold_toggle`, `test_lower_atomg_cas`, `test_menu_i18n`, `test_menu_keys`, `test_menu_slider_ends`, `test_pads_after_menu`, `test_recording_admission`, `test_sim_turf_pools`, `test_vibration_menu`, `nx2/test_import_windows`) and says main is back to one failing check (`test_dev_packs`); main also adds 5 test files. The head's 23 failures are mostly the stale base, so "the same names main fails" is not true at current main. Rebase and rerun `tests/run_all.py --strict` at the new base. | | Measured / N/A | **Yes (N/A)** | The diff is one-time startup and failure paths; the ticker's per-frame loop is unchanged. The reason is explicit. The earlier `5bc9f83a` 1816/90.8 vs 1851/92.6 is one run at a superseded commit; drop it or label it as not attributable. | | No game files/build output/generated files/`third_party` | **Yes** | The diff is 6 source files only. | | Fix test fails on `main`, passes here | **Yes** | The vsync check fails on main at `tests/test_vsync_events.py:64` because main's start is at `host/nn_vi.c:95`, after the release at 93; the audio fixture fails at `tests/audio_renderer_start_test.c:56` (the job log's `FAIL:56`). Note: the body's "main: two tickers..." output is a manual fixture run; the committed Python test on main fails at the source check and never reaches it. | | New check, not weakening an old one | **Yes** | Two new tests; no existing check changed. | | Host builds on Windows and Linux | **Partial** | Windows is a COFF compile only (33,169 and 169,901 bytes, machine 0x8664, clang 23.1.5), no link; Linux linked `longshot` (618,087,944 bytes) and ran the suite. #2141's box is the precedent, but the 11:02 review asked "untick it or mark it partial/CI"; the box is still `[x]`. Mark it partial/CI or cite #2141 in the box. | | AI assistance trailers | **Yes** | Both commits carry `Assisted-by: DeepSeek V4.1 Flash 1017 (opencode-go)`; the head is a message-only amend (both trees `0b31884e`). | | Docs / switches / menu | **N/A** | No `gpu/vk/switches.def` or `gpu/vk/menu/`; no user-visible setting. The template says delete N/A boxes. | | Ready to merge | **Correctly unticked** | Windows by hand, Tier 1, approval and CI each have a reason; `pr checks` is 10 pending/blocked, 2 passed. | **Claims to fix or settle** - "the 23 failures are the same names `main` fails" — false at current main (#2213; `git show -s fe1c437c`, `git diff --name-status a2dc5385 origin/main -- tests/`). Settle with a rebase and one `mise run test`. - "At `b567e2cf`" for the game run — the manifest's version is `5db210a3`; the tree is equal. Say "the tree" or re-run. - "a failed ticker or audio renderer leaves no waiter" — a caller that ignores `0x2C01` still waits on an unsignalled event, and the Risks says so. "Leaves no registered event" is the accurate claim. - The "main: two tickers" vsync output — not what `tests/test_vsync_events.py` prints on main (it stops at the source check). Label it a manual fixture run. Nothing here asks for a code change: the fix and its tests stand. The next step is a rebase onto current main and a fresh strict suite at the new head, then the suite box can be re-ticked with the actual names.
dazemc changed title from fix(host): the vsync ticker starts once; a failed ticker or audio renderer leaves no waiter to fix(host): the vsync ticker starts once; a failed ticker or audio renderer leaves no registered event 2026-11-23 00:59:12 +00:00
dazemc changed title from fix(host): the vsync ticker starts once; a failed ticker or audio renderer leaves no registered event to WIP: fix(host): the vsync ticker starts once; a failed ticker or audio renderer leaves no registered event 2026-11-23 00:59:26 +00:00
Author
Contributor

Back to WIP after the audit (#issuecomment-75408). Body-only: the head is still b567e2cf, nothing pushed.

  • Base: a2dc5385, 13 commits behind origin/main (21d5bdf9); a rebase is pending. host/nn_vi.c and host/nn_audio.c are untouched on main (git diff a2dc5385 origin/main -- host/nn_vi.c host/nn_audio.c is empty), so the fix itself is unaffected.
  • Suite: 913 / 23 / 18 in 815 s is taken on base a2dc5385 (saved log 2151-light-job-5db210a3.log); the 911/23/18 baseline has no saved log, only the 02:58 comment. #2213 (fe1c437c) fixed 17 of the 23 and says main is back to one (test_dev_packs), so the box is unticked until the rebase and a fresh strict run.
  • In-game: the smoke ran at the tree (0b31884e, 5db210a3), not at the b567e2cf commit object; the tree is identical.
  • Windows: COFF compile only (nn_vi.obj 33,169 B, nn_audio.obj 169,901 B, machine 0x8664), no link; the box is partial, as the 11:02 review asked.
  • Wording/evidence: the title now says leaves no registered event; the 5bc9f83a fps numbers are dropped as not attributable; the two-ticker block is labelled a manual C-fixture run, while the committed test's main failure is the source check at tests/test_vsync_events.py:64.

The CI and Test Farm asks that name b567e2cf stay valid and are not re-asked here.

Back to WIP after the audit (#issuecomment-75408). Body-only: the head is still `b567e2cf`, nothing pushed. - **Base:** `a2dc5385`, 13 commits behind `origin/main` (`21d5bdf9`); a rebase is pending. `host/nn_vi.c` and `host/nn_audio.c` are untouched on main (`git diff a2dc5385 origin/main -- host/nn_vi.c host/nn_audio.c` is empty), so the fix itself is unaffected. - **Suite:** `913 / 23 / 18 in 815 s` is taken on base `a2dc5385` (saved log `2151-light-job-5db210a3.log`); the `911/23/18` baseline has no saved log, only the 02:58 comment. #2213 (`fe1c437c`) fixed 17 of the 23 and says main is back to one (`test_dev_packs`), so the box is unticked until the rebase and a fresh strict run. - **In-game:** the smoke ran at the tree (`0b31884e`, `5db210a3`), not at the `b567e2cf` commit object; the tree is identical. - **Windows:** COFF compile only (`nn_vi.obj` 33,169 B, `nn_audio.obj` 169,901 B, machine `0x8664`), no link; the box is partial, as the 11:02 review asked. - **Wording/evidence:** the title now says `leaves no registered event`; the `5bc9f83a` fps numbers are dropped as not attributable; the two-ticker block is labelled a manual C-fixture run, while the committed test's main failure is the source check at `tests/test_vsync_events.py:64`. The CI and Test Farm asks that name `b567e2cf` stay valid and are not re-asked here.
dazemc force-pushed fix/vsync-ticker-lock from b567e2cf61
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
beanstalk/approval waiting for a BigBean's 👍 on the request
PR description / Description follows the template (pull_request_target) Successful in 5s
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been cancelled
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
Guide screenshots / Guide images and local UI source review (pull_request) Has been cancelled
Third-party parts / As their notes say (pull_request) Has been cancelled
Third-party parts / The same as upstream (pull_request) Has been cancelled
to 2836e29e25
Some checks failed
beanstalk/approval changed since the request: ask again
PR description / Description follows the template (pull_request_target) Successful in 5s
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been cancelled
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
Guide screenshots / Guide images and local UI source review (pull_request) Has been cancelled
Third-party parts / As their notes say (pull_request) Has been cancelled
Third-party parts / The same as upstream (pull_request) Has been cancelled
Website / Website on Cloudflare (pull_request) Has been cancelled
2026-11-23 03:13:17 +00:00
Compare
dazemc force-pushed fix/vsync-ticker-lock from 2836e29e25
Some checks failed
beanstalk/approval changed since the request: ask again
PR description / Description follows the template (pull_request_target) Successful in 5s
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been cancelled
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
Guide screenshots / Guide images and local UI source review (pull_request) Has been cancelled
Third-party parts / As their notes say (pull_request) Has been cancelled
Third-party parts / The same as upstream (pull_request) Has been cancelled
Website / Website on Cloudflare (pull_request) Has been cancelled
to 75a2aafd8f
Some checks failed
beanstalk/approval changed since the request: ask again
PR description / Description follows the template (pull_request_target) Successful in 7s
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been cancelled
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
Guide screenshots / Guide images and local UI source review (pull_request) Has been cancelled
Third-party parts / As their notes say (pull_request) Has been cancelled
Third-party parts / The same as upstream (pull_request) Has been cancelled
Website / Website on Cloudflare (pull_request) Has been cancelled
2026-11-24 05:24:26 +00:00
Compare
Author
Contributor

@HumanBean — fork CI for head 75a2aafd, please.

What it is: the vsync ticker starts once under vsync_lock, and a ticker or audio renderer that cannot start returns 0x2C01 and leaves no event registered.
Asked: approve this head's fork CI runs, and a review when you have the time.
Evidence: the saved suite log /home/daze/.local/share/longshot-dev/2151-light-job-5db210a3.log (913/23/18, taken on base a2dc5385) and the 2151-smoke-20261122-012558 run.
Still WIP — suites land one at a time, so this is not a merge request.

@HumanBean — fork CI for head `75a2aafd`, please. **What it is:** the vsync ticker starts once under `vsync_lock`, and a ticker or audio renderer that cannot start returns `0x2C01` and leaves no event registered. **Asked:** approve this head's fork CI runs, and a review when you have the time. **Evidence:** the saved suite log `/home/daze/.local/share/longshot-dev/2151-light-job-5db210a3.log` (913/23/18, taken on base `a2dc5385`) and the `2151-smoke-20261122-012558` run. Still WIP — suites land one at a time, so this is not a merge request.
Author
Contributor

Windows testing dropped by the human 2026-11-24: the Host-code-builds-on-Windows box stays unticked, so this PR stays WIP. No link and no Test Farm request are planned.

Windows testing dropped by the human 2026-11-24: the Host-code-builds-on-Windows box stays unticked, so this PR stays WIP. No link and no Test Farm request are planned.
dazemc changed title from WIP: fix(host): the vsync ticker starts once; a failed ticker or audio renderer leaves no registered event to fix(host): the vsync ticker starts once; a failed ticker or audio renderer leaves no registered event 2026-11-24 16:16:56 +00:00
docs(host): say what a failed start leaves in the object table
Some checks failed
beanstalk/approval changed since the request: ask again
PR description / Description follows the template (pull_request_target) Successful in 6s
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been cancelled
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
Guide screenshots / Guide images and local UI source review (pull_request) Has been cancelled
Third-party parts / As their notes say (pull_request) Has been cancelled
Third-party parts / The same as upstream (pull_request) Has been cancelled
437d8eab42
Both comments claimed a failed start leaves no event or handle registered.
hos_system_event_init runs before the failure check (host/nn_vi.c:85,
host/nn_audio.c:1645), so the object-table entry it makes for the guest's key
stays. What the code takes back is the slot in vsync_events (with nvsync) or
renderer_event, renderer_running and the handle. That entry is not a leak:
nn_os_sync.c's fresh() finds the key and reinitialises it in place, so repeated
failures add nothing.

Comments only: no code line changes.

Assisted-by: DeepSeek V4.1 Flash 1017 (opencode-go)
dazemc changed title from fix(host): the vsync ticker starts once; a failed ticker or audio renderer leaves no registered event to fix(host): the vsync ticker starts once; a full table or a failed ticker or audio start answers 0x2C01 2026-11-25 02:52:21 +00:00
dazemc force-pushed fix/vsync-ticker-lock from 437d8eab42
Some checks failed
beanstalk/approval changed since the request: ask again
PR description / Description follows the template (pull_request_target) Successful in 6s
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been cancelled
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
Guide screenshots / Guide images and local UI source review (pull_request) Has been cancelled
Third-party parts / As their notes say (pull_request) Has been cancelled
Third-party parts / The same as upstream (pull_request) Has been cancelled
to f7af4e26fc
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website builds (pull_request_target) Has been skipped
Website / Website preview, build (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
Guide screenshots / Guide images and local UI source review (pull_request) Blocked by required conditions
Third-party parts / As their notes say (pull_request) Blocked by required conditions
Third-party parts / The same as upstream (pull_request) Blocked by required conditions
Website / Website on Cloudflare (pull_request) Blocked by required conditions
Website / Website builds (pull_request) Blocked by required conditions
Website / Website preview, build (pull_request) Blocked by required conditions
Website / Website preview, upload (pull_request) Blocked by required conditions
beanstalk/approval changed since the request: ask again
PR description / Description follows the template (pull_request_target) Successful in 11s
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test) (pull_request) Has been cancelled
CI / longshot-builder end to end (synthetic game) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
2026-11-25 09:03:33 +00:00
Compare
dazemc changed title from fix(host): the vsync ticker starts once; a full table or a failed ticker or audio start answers 0x2C01 to WIP: fix(host): the vsync ticker starts once; a full table or a failed ticker or audio start answers 0x2C01 2026-11-25 15:42:55 +00:00
Author
Contributor

Suite at f7af4e26fc4aaedc439e292b7c87d5216f814cc3 (log prrefresh-logs/suite-2151-f7af4e26.log, sha256 ddd0f0a08f6dd411dca14a66e46f5802d989ba5f3a631ed0d669955217f6b9e8, .head = that sha, exit 1): 835 passed, 2 failed, 8 skipped in 489 s (linux, 5 at once).

The two failing ids are outside the 19 CORE and 5 FLAKY ids of the suite-comparison rule, so the mise run test box cannot be ticked at this head:

  • tests/test_display_startup_failure.py — display_startup_actual.inc:82:5: error: use of undeclared identifier 'bc_claim'
  • tests/test_title_card_strips.py — ModuleNotFoundError: No module named 'oot_patches'

Neither is caused by this PR. Both fail identically on main be663a08a30fa953420104d3cef6877bed6674a2 in a clean worktree, same two exception lines (2 checks, 0 skipped); #2532 already records the oot_patches one as failing on current main. The header reads 837 checks against the rule baseline's 961 because main's #2411 moved the game's own tests out of tests/.

Marked work in progress until the suite rule's treatment of ids that fail identically on the head's base is settled.

Suite at `f7af4e26fc4aaedc439e292b7c87d5216f814cc3` (log `prrefresh-logs/suite-2151-f7af4e26.log`, sha256 `ddd0f0a08f6dd411dca14a66e46f5802d989ba5f3a631ed0d669955217f6b9e8`, `.head` = that sha, exit 1): **835 passed, 2 failed, 8 skipped in 489 s (linux, 5 at once)**. The two failing ids are outside the 19 CORE and 5 FLAKY ids of the suite-comparison rule, so the `mise run test` box cannot be ticked at this head: - `tests/test_display_startup_failure.py` — `display_startup_actual.inc:82:5: error: use of undeclared identifier 'bc_claim'` - `tests/test_title_card_strips.py` — `ModuleNotFoundError: No module named 'oot_patches'` Neither is caused by this PR. Both fail identically on `main` `be663a08a30fa953420104d3cef6877bed6674a2` in a clean worktree, same two exception lines (`2 checks, 0 skipped`); #2532 already records the `oot_patches` one as failing on current `main`. The header reads 837 checks against the rule baseline's 961 because main's #2411 moved the game's own tests out of `tests/`. Marked work in progress until the suite rule's treatment of ids that fail identically on the head's base is settled.
Author
Contributor

Description: Testing names the machine instead of a distribution; no other change.

Description: Testing names the machine instead of a distribution; no other change.
dazemc changed title from WIP: fix(host): the vsync ticker starts once; a full table or a failed ticker or audio start answers 0x2C01 to fix(host): the vsync ticker starts once; a full table or a failed ticker or audio start answers 0x2C01 2026-11-25 17:45:36 +00:00
dazemc force-pushed fix/vsync-ticker-lock from f7af4e26fc
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website builds (pull_request_target) Has been skipped
Website / Website preview, build (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
Guide screenshots / Guide images and local UI source review (pull_request) Blocked by required conditions
Third-party parts / As their notes say (pull_request) Blocked by required conditions
Third-party parts / The same as upstream (pull_request) Blocked by required conditions
Website / Website on Cloudflare (pull_request) Blocked by required conditions
Website / Website builds (pull_request) Blocked by required conditions
Website / Website preview, build (pull_request) Blocked by required conditions
Website / Website preview, upload (pull_request) Blocked by required conditions
beanstalk/approval changed since the request: ask again
PR description / Description follows the template (pull_request_target) Successful in 11s
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test) (pull_request) Has been cancelled
CI / longshot-builder end to end (synthetic game) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
to d1b245a457
Some checks are pending
CI / Conventional Commit title (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 3/4) (pull_request) Blocked by required conditions
CI / longshot-builder end to end (synthetic game) (pull_request) Blocked by required conditions
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Blocked by required conditions
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website preview, build (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
CI / What the change needs (pull_request) Blocked by required conditions
CI / Rust (rustfmt, clippy, cargo test) (pull_request) Blocked by required conditions
CI / Lint (pre-commit, ShellCheck) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 1/4) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 2/4) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 4/4) (pull_request) Blocked by required conditions
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Blocked by required conditions
CI / Workflow lint (actionlint) (pull_request) Blocked by required conditions
CI / Website build and checks (pull_request) Blocked by required conditions
Guide screenshots / Guide images and local UI source review (pull_request) Blocked by required conditions
Third-party parts / The same as upstream (pull_request) Blocked by required conditions
Third-party parts / As their notes say (pull_request) Blocked by required conditions
beanstalk/approval changed since the request: ask again
PR description / Description follows the template (pull_request_target) Successful in 8s
2026-11-25 17:55:31 +00:00
Compare
Author
Contributor

Rebased f7af4e26f to d1b245a45 on main 8f7300756; patch-id unchanged and intersection empty. Existing suite, Linux and Windows evidence stands; stale owed-rebase bullet removed.

Rebased f7af4e26f to d1b245a45 on main 8f7300756; patch-id unchanged and intersection empty. Existing suite, Linux and Windows evidence stands; stale owed-rebase bullet removed.
Some checks are pending
CI / Conventional Commit title (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 3/4) (pull_request) Blocked by required conditions
CI / longshot-builder end to end (synthetic game) (pull_request) Blocked by required conditions
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Blocked by required conditions
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website preview, build (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
CI / What the change needs (pull_request) Blocked by required conditions
CI / Rust (rustfmt, clippy, cargo test) (pull_request) Blocked by required conditions
CI / Lint (pre-commit, ShellCheck) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 1/4) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 2/4) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 4/4) (pull_request) Blocked by required conditions
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Blocked by required conditions
CI / Workflow lint (actionlint) (pull_request) Blocked by required conditions
CI / Website build and checks (pull_request) Blocked by required conditions
Guide screenshots / Guide images and local UI source review (pull_request) Blocked by required conditions
Third-party parts / The same as upstream (pull_request) Blocked by required conditions
Third-party parts / As their notes say (pull_request) Blocked by required conditions
beanstalk/approval changed since the request: ask again
PR description / Description follows the template (pull_request_target) Successful in 8s
This pull request doesn't have enough approvals yet. 0 of 1 approvals granted.
Some workflows are waiting to be reviewed.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u 'fix/vsync-ticker-lock:dazemc-fix/vsync-ticker-lock'
git switch 'dazemc-fix/vsync-ticker-lock'
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MagicBeanDev/Longshot!2151
No description provided.