perf(vk): pace presents without frame generation, and step the game by its display queue #3099

Merged
HumanBean merged 6 commits from neotoxic/Longshot:perf/present-pacer into main 2026-12-04 17:17:41 +00:00
Contributor

Summary

At a frame rate cap without frame generation, the game was held to the cap at its window acquire, but each frame's replay and GPU work after that took a varying time, so the presents went out as unevenly as that work: camera pans looked choppy while the frame counter said 60 (#2645, #315). The only pacer was frame generation's.

This adds a present pacer for the plain path. The presenter thread now waits, after the copy's fence, for the frame's slot on an even line one period apart. The line follows the game's own clock (each frame's place is the place before plus one period, or the game's present when later), and a slot is its place plus an offset, the frames' work after the game's present. Late frames go out at once; a hitch of a period or more is that frame's alone; a load's frame never waits a period; the offset shrinks 0.25 ms a frame while there is room. When the game's thread waits in its present instead of at its cap (below the cap, or a movie the host paces at 240, #73) the frames go out as they come, and once a quarter of the last 32 frames came late the line stops until 64 frames came at the cap's rate.

The game's real-time step now follows each frame's place in the host's display queue, so held to its cap every frame steps exactly one period: the step the paced pictures show.

Read first: gpu/vk/present_pace.h (the rule, no Vulkan), then pace_present and presenter_loop in gpu/vk/vk_replay.cpp, then hos_vi_native_presented in host/nn_vi.c.

The slot line is the idea of HeyListen's HL_PRESENT_PACE=4, by Sacrappy; written again here, none of its code.

See #2645, see #315.

Testing

Tested: Windows 11, RTX 5080, driver 617.42, NVIDIA V-Sync set to the application's setting, cap 60, Frame pacing on. Played, swinging the camera in every direction: one stutter in several minutes, and smoother to the eye than with Frame pacing off. The title movie plays as before (let go, 7 of 560 pictures skipped). An early build (the line taken from the presents) settled a period late and a later one dropped to 5 fps after a load; both fixed and covered by tests/present_pace_test.cpp.

Checks: tests/test_present_pace.py builds and runs the C++ test and checks the wiring. mise run test on this Windows PC: every check that fails here also fails on main @ 1c91b18f in the same run (the tools CI has on Linux and this PC lacks, or Linux-only paths), none new. Three fixtures that cut the changed source (test_pacing_policy, test_present_trace, test_present_acquire_ahead) failed to compile at first; b08df2a7 declares what the new lines call, and nothing they check changed.

On Linux (CachyOS, kernel 7.3, RTX 3060 Laptop, the tools CI uses: clang, glslang, spirv-val), mise run test @ b08df2a7: the 12 checks that fail also fail on main @ 1c91b18f there; test_run_all_junit timed out once in the full run (16 checks at once) and passes alone. dev.py base and dev.py rt build the game for Linux at this head, and it ran in the game there on 04/12 (below).

On 04/12, dev.py ab against main @ 1c91b18f at this head (03156c7c), two interleaved runs a side, 60 s each, cap 60 (--set HOS_FPS_MAX=60, the runs' vk: switches set line reads HOS_FPS_MAX=60 (player)), Frame pacing on (frame_pacing=1 in the pinned options file), the camera turning the whole run (HOS_INPUT_SCRIPT=0:RLEFT/900000, about 105° a second, checked on the bridge's camera), on this PC and on the Linux laptop (COSMIC, native Wayland, the session's own display): Hyrule Field and Lost Woods (the heaviest scene dev.py ab offers) with V-Sync and frame generation off; Hyrule Field with frame generation Fixed 2x (AMD FSR 3.1 frame interpolation: the dev builds have no NGX SDK, so no DLSS) and with V-Sync On (FIFO), HOS_FPS_LOG=1 for the game clock's speed. No hang, no black frame, every run 60 s at its scene. These are BeanBot's L2 (two more interleaved runs against main at the same spot, and a heavy area near the cap, with average and 1 % low fps and the pacer's stops) and L4 (frame generation on, and FIFO, main against this head, fps and the game's speed), and the Linux run, all three moved from Still to test; numbers in Measurements.

By eye, Windows 11 (RTX 5080, 120 Hz), 04/12 morning, the pacer build (Frame pacing on) with frame generation and with V-Sync On: smooth, nothing seen wrong (neo). (Moved from Still to test.)

The 70 checks that fail on main as well, on this PC

test_audio_output_devices, test_audio_output_errors, test_audio_source, test_audio_source_load, test_audio_wave_buffer_release, test_builder_pads_route, test_check_third_party, test_ci_source_times, test_cloth_kernels, test_cloth_loops, test_cloth_step8, test_coverage_run, test_cursor_hidden_in_play, test_cursor_hidden_linux, test_dead_targets_sweep, test_dev_cargoenv, test_dev_vcs, test_display_pointer, test_dlss_why, test_exclusive_marks, test_fsr4_tune, test_fullscreen_monitor_platform, test_game_font, test_game_menu_mouse_buttons, test_hd_rumble, test_helpers_extract, test_hos_ab, test_image_view_retry, test_lifter, test_linux_audio_output, test_longshot_builder, test_lower_depbar, test_lower_lds_after_sts, test_lower_register_markers, test_menu_hooks, test_menu_size, test_mesh_first_types, test_microphone_test_gain, test_monitor_friendly_names, test_mouse_native, test_native_suatom, test_native_zstd, test_nvn_null_pool, test_nvn_tex_builder_guard, test_pad_appcontainer, test_pad_headphones_reader, test_pad_motion_policy, test_pad_speaker, test_pipeline_cache_file, test_pipeline_play_cache, test_precompile_compute_guard, test_prepare_stall, test_program_answer_domains, test_recorder_sync, test_rumble_mapping, test_rumble_refresh, test_run_all_output, test_sampler_admission, test_sampler_stack_walk, test_sandbox_test_mode_start, test_screensaver, test_sdl_monitor_names, test_shader_module_guard, test_shadow_slot, test_svc_core_mask, test_switch_table, test_target_pool_cap, test_tex_desc_memo, test_thinlto_tls, test_vibration_permission

On the screen, PresentMon 2.6.0 over four interleaved 30 s runs (on, off, on, off) while swinging the camera: see Measurements.

Still to test:

  • AMD/Intel GPUs: play with Frame pacing on at cap 60, expecting even pans and no frame-rate loss (@Beanstalk). (Linux on NVIDIA ran: Measurements.)
  • FIFO on a display whose refresh is the cap (60 Hz), where the pacer stays off (pace_cap_period paces under FIFO only at a refresh of 1.05 times the cap or more): not run, both displays here are 120 and 165 Hz (@Beanstalk a 60 Hz display, V-Sync On, cap 60, Frame pacing on: the log's vk: present pacer: lines and the game's speed against main).## Measurements

Measurements

Verdict: far more even pictures on the screen at the same frame rate: 91.4 to 93.8 % of display intervals within 0.75 ms of the period, against 51.1 % on main and 52.2 to 54.9 % with the Frame pacing setting off (PresentMon), for about 2 ms of added wait a frame. The rare hitches over 25 ms (a shader built, a page read) are not the pacer's to fix and stay as they were. Against main with dev.py ab (04/12, at 03156c7c): the same frame rate everywhere; 1 % low and p99 within the runs' spread on this PC in every setup and on Linux without V-Sync, while on Linux this head's 1 % low is higher under FIFO (45.3 / 46.0 against 41.3 / 41.9 fps) and lower with frame generation (35.0 / 35.6 against 38.4 / 39.7 fps), two runs a side; under FIFO the frames the driver confirms shown are within 0.75 ms of the period 84.3 to 87.6 % of the time against 60.2 to 61.3 % on main; the game's speed is 1.000 on both sides with frame generation and under FIFO. Right at the cap (Lost Woods on the laptop, 59.5 to 59.9 fps) the pacer stops in the first 20 s and stays off: no flipping on and off, and no pacing there either (the game's thread is held in its present instead).

Against main, dev.py ab (04/12)

Setup: Windows 11 Pro 26300, RTX 5080, driver 617.42, Ryzen 9 7950X, display 120 Hz; and CachyOS (kernel 7.3.7), COSMIC on native Wayland, RTX 3060 Laptop, driver 620.85.02, display 165 Hz. dev.py ab --runs 2 --set HOS_FPS_MAX=60 --set HOS_INPUT_SCRIPT=0:RLEFT/900000 --options <frame_pacing=1>, 60 s a run after the warm-up, interleaved A1 B1 A2 B2, Render resolution 67 % (Lost Woods on this PC at Native, resolution=1: it holds 60 easily even so). dev.py ab printed every run's line but wrote no Measurements block: on Windows the runs differ in switches that are handles (LONGSHOT_BUILDER_PIPES, LONGSHOT_CRASH_BLOCK, LONGSHOT_NUP_HANDLE), on Linux in LONGSHOT_PADS_FD; the numbers below are its per-run lines (run 1 / run 2). "Presents" is the frame trace's at_ns, the game's present call (before the pacer); "shown" is the time the driver confirmed the frame shown (shown_at_ns, present-wait: under FIFO only); the pacer's own share is its log line's, over the 6 lines (3600 presents) of the measured stretch.

This PC (RTX 5080) Before: main @ 1c91b18f After: this PR @ 03156c7c
Hyrule Field: fps 60.0 / 60.0 60.0 / 60.0
Hyrule Field: 1 % low 53.9 / 53.7 fps 53.8 / 53.9 fps
Hyrule Field: p99 frame time 18.56 / 18.63 ms 18.58 / 18.55 ms
Hyrule Field: presents within 0.75 ms (trace) 78.0 / 75.3 % 79.2 / 76.5 %
Hyrule Field: the pacer — 3600 of 3600 paced, 1.84 / 1.73 ms of wait, 117 / 130 late (none a period), stopped 0 times, 0 let go, 99.1 / 99.2 % within 0.75 ms
Lost Woods, Native: fps 60.0 / 60.0 60.0 / 60.0
Lost Woods, Native: 1 % low 55.4 / 55.6 fps 55.3 / 55.6 fps
Lost Woods, Native: p99 frame time 18.06 / 17.97 ms 18.09 / 18.00 ms
Lost Woods, Native: the pacer — 3278 / 3536 of 3600 paced, 1.57 / 1.22 ms, 122 / 114 late (2 / 0 a period), stopped 3 / 1 times, 97.3 / 99.0 % within 0.75 ms
Frame generation Fixed 2x: fps (the game's) 60.0 / 60.0 60.0 / 60.0
Frame generation: 1 % low, p99 53.4 / 53.3 fps, 18.74 / 18.75 ms 53.7 / 53.3 fps, 18.63 / 18.76 ms
Frame generation: game speed (vi: game clock, 12 lines) 1.000 every line 1.000 every line; no pacer line (off with frame generation)
V-Sync On (FIFO): fps 60.0 / 60.0 60.0 / 60.0
V-Sync On: 1 % low, p99 54.3 / 53.7 fps, 18.41 / 18.61 ms 53.9 / 53.8 fps, 18.54 / 18.59 ms
V-Sync On: shown within 0.75 ms (driver-confirmed) 60.2 / 61.3 % 87.6 / 84.3 %
V-Sync On: shown intervals, 1st to 99th percentile 14.39 to 18.93 / 14.25 to 19.02 ms 15.50 to 17.92 / 15.48 to 17.93 ms
V-Sync On: game speed 1.000 every line 1.000 every line; the pacer on (120 Hz is over 1.05 times the cap): 3600 of 3600, 99.1 / 99.3 %
Linux laptop (RTX 3060 Laptop) Before: main @ 1c91b18f After: this PR @ 03156c7c
Hyrule Field: fps 60.0 / 60.0 60.0 / 60.0
Hyrule Field: 1 % low 46.9 / 40.9 fps 48.5 / 41.4 fps
Hyrule Field: p99 frame time 21.32 / 24.44 ms 20.63 / 24.16 ms
Hyrule Field: presents within 0.75 ms (trace) 58.4 / 50.6 % 58.3 / 51.2 %
Hyrule Field: the pacer — 3405 / 2566 of 3600 paced, 2.85 / 5.47 ms, 168 / 142 late (0 / 1 a period), stopped 1 / 2 times, 74 / 461 let go, 96.2 / 80.8 % within 0.75 ms
Lost Woods (59.5 to 59.9 fps): fps 59.5 / 59.9 59.7 / 59.9
Lost Woods: 1 % low, p99 49.2 / 51.6 fps, 20.34 / 19.38 ms 50.7 / 51.5 fps, 19.74 / 19.42 ms
Lost Woods: the pacer — stopped 3 times in the first 20 s, then off the rest of the run: 0 of 3600 paced, about 300 of 600 let go, 45 % within 0.75 ms
Frame generation Fixed 2x (FSR 3.1): fps (the game's) 51.4 / 50.8 51.0 / 50.7
Frame generation: 1 % low, p99 39.7 / 38.4 fps, 25.16 / 26.07 ms 35.6 / 35.0 fps, 28.05 / 28.59 ms
Frame generation: game speed 1.000 / 1.000 (median) 1.000 / 0.999 (median); no pacer line
V-Sync On (FIFO, 165 Hz): fps 59.9 / 60.0 60.0 / 60.0
V-Sync On: 1 % low, p99 41.9 / 41.3 fps, 23.84 / 24.19 ms 46.0 / 45.3 fps, 21.74 / 22.07 ms
V-Sync On: game speed 1.000 (median) 1.000 every line; the pacer on: 3203 / 2299 of 3600, 92.3 / 78.4 %

On Linux the pacer stops and lets go in the first 20 to 30 s of a run (the load, the warm-up) and settles at 600 of 600 paced, 97 to 99 % within 0.75 ms, in Hyrule Field once it holds the cap. Under FIFO at 165 Hz the shown intervals fall on the refresh (12.1 and 18.2 ms), so the 0.75 ms share means nothing there (0 % on both sides). With frame generation on the laptop, this head's 1 % low and p99 are lower in both runs (35.6 / 35.0 against 39.7 / 38.4 fps), at the same average and game speed: two runs a side, not checked further. Without V-Sync no driver confirmation comes, so the screen's side of the plain path is the PresentMon table below.

On the screen, PresentMon (03/12)

Setup: Windows 11, RTX 5080, driver 617.42, NVIDIA V-Sync set to the application's setting, cap 60, in play while swinging the camera. "Off" is this build with the Frame pacing setting off, which skips the pacer (the presenter as on main; the game's step still follows the display queue). On the screen: PresentMon 2.6.0 (--v1_metrics, msBetweenDisplayChange and msBetweenPresents), four interleaved 30 s runs, about 1800 intervals each. In the log: the renderer's line over windows of 600 presents.

On the screen (PresentMon, 30 s a run) Before: main @ 1c91b18f After: this PR @ f96a8e03, Frame pacing off (runs 1, 2) After: this PR @ f96a8e03 (runs 1, 2, 3)
Display intervals within 0.75 ms of 16.67 ms 51.1 % 52.2 / 54.9 % 93.8 / 92.8 / 91.4 %
Display intervals, 1st to 99th percentile 13.33 to 19.98 ms 12.73 to 19.73 / 13.85 to 19.24 ms 14.88 to 18.23 / 13.80 to 18.99 / 14.52 to 18.81 ms
Present intervals within 0.75 ms 64.1 % 63.6 / 66.2 % 98.9 / 98.6 / 98.6 %
Display intervals over 25 ms (of ~1800) 3 5 / 3 4 / 8 / 4
Frames never displayed 0 0 / 0 0 / 0 / 0
Frame rate 60.0 60.0 / 60.0 59.9 / 60.0 / 60.1

"main" and run 3 are two builds of the same tree with and without this commit (main with an unrelated UI branch on top, the same on both sides), one run each, the game relaunched between them; runs 1 and 2 of each column are the setting flipped in one build, interleaved (on, off, on, off).

main lands on the "Frame pacing off" runs (51.1 % against 52.2 and 54.9 %), so the setting off gives back main's presents, and HOS_STEP_SHOWN (on in the "off" runs, absent from the base) moves nothing on the screen. The pacer's log line in run 3: 600 of 600 paced, 2.79 ms of wait on average, 21 late (1 a period or more), stopped 0 times, 98.3 % of intervals within 0.75 ms.

In the log (600 presents a line) Off On @ f96a8e03
Intervals within 0.75 ms of 16.67 ms 61.7 to 76.5 % 97.5 / 98.3 / 99.2 %
Frames a period or more late (of 600) — 0 to 1
Added wait a frame 0 about 2 ms

Switches: RX_VK_PRESENT_PACE (default on, follows the Frame pacing setting) and HOS_STEP_SHOWN (default on); both ship at the default these numbers chose, and HOS_AB may flip either. HOS_NO_PACING is main's switch, read here and unchanged (default off): with it nothing holds the game to the display queue, so the step keeps the present call's time.

Risks

  • About 2 ms more latency a frame while pacing (the offset keeps 0.5 ms to spare).
  • A GPU that cannot hold the cap: the line stops after a quarter of late frames, so it costs no frames there.
  • Turn off with the Frame pacing setting, or RX_VK_PRESENT_PACE=0; HOS_STEP_SHOWN=0 gives the game's step its old timing. A revert is enough. Nothing changes in saves, settings.toml or the caches.

Checklist

Ready for review

  • One topic, on current main; the title is a Conventional Commit.
  • Tested on my own PC, in the game for a change the game runs, as Testing says.
  • mise run test passes (any failure that also fails on main is named).
  • 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 switch added or changed: it ships at the default the measurements chose, with its row in gpu/vk/switches.def.
  • A check under tests/ that reads changed source is updated, not weakened.
  • Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths.
  • AI assistance recorded with Assisted-by: / Co-Authored-By: trailers.

Ready to merge

  • Everything in Still to test has run, its results in Tested.
  • Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers").
  • Approved in review, every comment answered.
  • CI passes on the head; on current main, measured again or a comment says why the numbers still hold.

🤖 Generated with Claude Code

## Summary At a frame rate cap without frame generation, the game was held to the cap at its window acquire, but each frame's replay and GPU work after that took a varying time, so the presents went out as unevenly as that work: camera pans looked choppy while the frame counter said 60 (#2645, #315). The only pacer was frame generation's. This adds a present pacer for the plain path. The presenter thread now waits, after the copy's fence, for the frame's slot on an even line one period apart. The line follows the game's own clock (each frame's place is the place before plus one period, or the game's present when later), and a slot is its place plus an offset, the frames' work after the game's present. Late frames go out at once; a hitch of a period or more is that frame's alone; a load's frame never waits a period; the offset shrinks 0.25 ms a frame while there is room. When the game's thread waits in its present instead of at its cap (below the cap, or a movie the host paces at 240, #73) the frames go out as they come, and once a quarter of the last 32 frames came late the line stops until 64 frames came at the cap's rate. The game's real-time step now follows each frame's place in the host's display queue, so held to its cap every frame steps exactly one period: the step the paced pictures show. Read first: `gpu/vk/present_pace.h` (the rule, no Vulkan), then `pace_present` and `presenter_loop` in `gpu/vk/vk_replay.cpp`, then `hos_vi_native_presented` in `host/nn_vi.c`. The slot line is the idea of HeyListen's `HL_PRESENT_PACE=4`, by Sacrappy; written again here, none of its code. See #2645, see #315. ## Testing **Tested:** Windows 11, RTX 5080, driver 617.42, NVIDIA V-Sync set to the application's setting, cap 60, Frame pacing on. Played, swinging the camera in every direction: one stutter in several minutes, and smoother to the eye than with Frame pacing off. The title movie plays as before (let go, 7 of 560 pictures skipped). An early build (the line taken from the presents) settled a period late and a later one dropped to 5 fps after a load; both fixed and covered by `tests/present_pace_test.cpp`. Checks: `tests/test_present_pace.py` builds and runs the C++ test and checks the wiring. `mise run test` on this Windows PC: every check that fails here also fails on `main` @ 1c91b18f in the same run (the tools CI has on Linux and this PC lacks, or Linux-only paths), none new. Three fixtures that cut the changed source (`test_pacing_policy`, `test_present_trace`, `test_present_acquire_ahead`) failed to compile at first; b08df2a7 declares what the new lines call, and nothing they check changed. On Linux (CachyOS, kernel 7.3, RTX 3060 Laptop, the tools CI uses: clang, glslang, spirv-val), `mise run test` @ b08df2a7: the 12 checks that fail also fail on `main` @ 1c91b18f there; `test_run_all_junit` timed out once in the full run (16 checks at once) and passes alone. `dev.py base` and `dev.py rt` build the game for Linux at this head, and it ran in the game there on 04/12 (below). On 04/12, `dev.py ab` against `main` @ 1c91b18f at this head (03156c7c), two interleaved runs a side, 60 s each, cap 60 (`--set HOS_FPS_MAX=60`, the runs' `vk: switches set` line reads `HOS_FPS_MAX=60 (player)`), Frame pacing on (`frame_pacing=1` in the pinned options file), the camera turning the whole run (`HOS_INPUT_SCRIPT=0:RLEFT/900000`, about 105° a second, checked on the bridge's `camera`), on this PC and on the Linux laptop (COSMIC, native Wayland, the session's own display): Hyrule Field and Lost Woods (the heaviest scene `dev.py ab` offers) with V-Sync and frame generation off; Hyrule Field with frame generation Fixed 2x (AMD FSR 3.1 frame interpolation: the dev builds have no NGX SDK, so no DLSS) and with V-Sync On (FIFO), `HOS_FPS_LOG=1` for the game clock's speed. No hang, no black frame, every run 60 s at its scene. These are BeanBot's L2 (two more interleaved runs against `main` at the same spot, and a heavy area near the cap, with average and 1 % low fps and the pacer's stops) and L4 (frame generation on, and FIFO, `main` against this head, fps and the game's speed), and the Linux run, all three moved from Still to test; numbers in Measurements. By eye, Windows 11 (RTX 5080, 120 Hz), 04/12 morning, the pacer build (Frame pacing on) with frame generation and with V-Sync On: smooth, nothing seen wrong (neo). (Moved from Still to test.) <details><summary>The 70 checks that fail on main as well, on this PC</summary> test_audio_output_devices, test_audio_output_errors, test_audio_source, test_audio_source_load, test_audio_wave_buffer_release, test_builder_pads_route, test_check_third_party, test_ci_source_times, test_cloth_kernels, test_cloth_loops, test_cloth_step8, test_coverage_run, test_cursor_hidden_in_play, test_cursor_hidden_linux, test_dead_targets_sweep, test_dev_cargoenv, test_dev_vcs, test_display_pointer, test_dlss_why, test_exclusive_marks, test_fsr4_tune, test_fullscreen_monitor_platform, test_game_font, test_game_menu_mouse_buttons, test_hd_rumble, test_helpers_extract, test_hos_ab, test_image_view_retry, test_lifter, test_linux_audio_output, test_longshot_builder, test_lower_depbar, test_lower_lds_after_sts, test_lower_register_markers, test_menu_hooks, test_menu_size, test_mesh_first_types, test_microphone_test_gain, test_monitor_friendly_names, test_mouse_native, test_native_suatom, test_native_zstd, test_nvn_null_pool, test_nvn_tex_builder_guard, test_pad_appcontainer, test_pad_headphones_reader, test_pad_motion_policy, test_pad_speaker, test_pipeline_cache_file, test_pipeline_play_cache, test_precompile_compute_guard, test_prepare_stall, test_program_answer_domains, test_recorder_sync, test_rumble_mapping, test_rumble_refresh, test_run_all_output, test_sampler_admission, test_sampler_stack_walk, test_sandbox_test_mode_start, test_screensaver, test_sdl_monitor_names, test_shader_module_guard, test_shadow_slot, test_svc_core_mask, test_switch_table, test_target_pool_cap, test_tex_desc_memo, test_thinlto_tls, test_vibration_permission </details> On the screen, PresentMon 2.6.0 over four interleaved 30 s runs (on, off, on, off) while swinging the camera: see Measurements. **Still to test:** - AMD/Intel GPUs: play with Frame pacing on at cap 60, expecting even pans and no frame-rate loss (@Beanstalk). (Linux on NVIDIA ran: Measurements.) - FIFO on a display whose refresh is the cap (60 Hz), where the pacer stays off (`pace_cap_period` paces under FIFO only at a refresh of 1.05 times the cap or more): not run, both displays here are 120 and 165 Hz (@Beanstalk a 60 Hz display, V-Sync On, cap 60, Frame pacing on: the log's `vk: present pacer:` lines and the game's speed against main).## Measurements ## Measurements **Verdict:** far more even pictures on the screen at the same frame rate: 91.4 to 93.8 % of display intervals within 0.75 ms of the period, against 51.1 % on `main` and 52.2 to 54.9 % with the Frame pacing setting off (PresentMon), for about 2 ms of added wait a frame. The rare hitches over 25 ms (a shader built, a page read) are not the pacer's to fix and stay as they were. Against `main` with `dev.py ab` (04/12, at 03156c7c): the same frame rate everywhere; 1 % low and p99 within the runs' spread on this PC in every setup and on Linux without V-Sync, while on Linux this head's 1 % low is higher under FIFO (45.3 / 46.0 against 41.3 / 41.9 fps) and lower with frame generation (35.0 / 35.6 against 38.4 / 39.7 fps), two runs a side; under FIFO the frames the driver confirms shown are within 0.75 ms of the period 84.3 to 87.6 % of the time against 60.2 to 61.3 % on `main`; the game's speed is 1.000 on both sides with frame generation and under FIFO. Right at the cap (Lost Woods on the laptop, 59.5 to 59.9 fps) the pacer stops in the first 20 s and stays off: no flipping on and off, and no pacing there either (the game's thread is held in its present instead). #### Against `main`, `dev.py ab` (04/12) Setup: Windows 11 Pro 26300, RTX 5080, driver 617.42, Ryzen 9 7950X, display 120 Hz; and CachyOS (kernel 7.3.7), COSMIC on native Wayland, RTX 3060 Laptop, driver 620.85.02, display 165 Hz. `dev.py ab --runs 2 --set HOS_FPS_MAX=60 --set HOS_INPUT_SCRIPT=0:RLEFT/900000 --options <frame_pacing=1>`, 60 s a run after the warm-up, interleaved A1 B1 A2 B2, Render resolution 67 % (Lost Woods on this PC at Native, `resolution=1`: it holds 60 easily even so). `dev.py ab` printed every run's line but wrote no Measurements block: on Windows the runs differ in switches that are handles (`LONGSHOT_BUILDER_PIPES`, `LONGSHOT_CRASH_BLOCK`, `LONGSHOT_NUP_HANDLE`), on Linux in `LONGSHOT_PADS_FD`; the numbers below are its per-run lines (run 1 / run 2). "Presents" is the frame trace's `at_ns`, the game's present call (before the pacer); "shown" is the time the driver confirmed the frame shown (`shown_at_ns`, present-wait: under FIFO only); the pacer's own share is its log line's, over the 6 lines (3600 presents) of the measured stretch. | This PC (RTX 5080) | Before: main @ 1c91b18f | After: this PR @ 03156c7c | |---|---|---| | Hyrule Field: fps | 60.0 / 60.0 | 60.0 / 60.0 | | Hyrule Field: 1 % low | 53.9 / 53.7 fps | 53.8 / 53.9 fps | | Hyrule Field: p99 frame time | 18.56 / 18.63 ms | 18.58 / 18.55 ms | | Hyrule Field: presents within 0.75 ms (trace) | 78.0 / 75.3 % | 79.2 / 76.5 % | | Hyrule Field: the pacer | — | 3600 of 3600 paced, 1.84 / 1.73 ms of wait, 117 / 130 late (none a period), stopped 0 times, 0 let go, 99.1 / 99.2 % within 0.75 ms | | Lost Woods, Native: fps | 60.0 / 60.0 | 60.0 / 60.0 | | Lost Woods, Native: 1 % low | 55.4 / 55.6 fps | 55.3 / 55.6 fps | | Lost Woods, Native: p99 frame time | 18.06 / 17.97 ms | 18.09 / 18.00 ms | | Lost Woods, Native: the pacer | — | 3278 / 3536 of 3600 paced, 1.57 / 1.22 ms, 122 / 114 late (2 / 0 a period), stopped 3 / 1 times, 97.3 / 99.0 % within 0.75 ms | | Frame generation Fixed 2x: fps (the game's) | 60.0 / 60.0 | 60.0 / 60.0 | | Frame generation: 1 % low, p99 | 53.4 / 53.3 fps, 18.74 / 18.75 ms | 53.7 / 53.3 fps, 18.63 / 18.76 ms | | Frame generation: game speed (`vi: game clock`, 12 lines) | 1.000 every line | 1.000 every line; no pacer line (off with frame generation) | | V-Sync On (FIFO): fps | 60.0 / 60.0 | 60.0 / 60.0 | | V-Sync On: 1 % low, p99 | 54.3 / 53.7 fps, 18.41 / 18.61 ms | 53.9 / 53.8 fps, 18.54 / 18.59 ms | | V-Sync On: shown within 0.75 ms (driver-confirmed) | 60.2 / 61.3 % | 87.6 / 84.3 % | | V-Sync On: shown intervals, 1st to 99th percentile | 14.39 to 18.93 / 14.25 to 19.02 ms | 15.50 to 17.92 / 15.48 to 17.93 ms | | V-Sync On: game speed | 1.000 every line | 1.000 every line; the pacer on (120 Hz is over 1.05 times the cap): 3600 of 3600, 99.1 / 99.3 % | | Linux laptop (RTX 3060 Laptop) | Before: main @ 1c91b18f | After: this PR @ 03156c7c | |---|---|---| | Hyrule Field: fps | 60.0 / 60.0 | 60.0 / 60.0 | | Hyrule Field: 1 % low | 46.9 / 40.9 fps | 48.5 / 41.4 fps | | Hyrule Field: p99 frame time | 21.32 / 24.44 ms | 20.63 / 24.16 ms | | Hyrule Field: presents within 0.75 ms (trace) | 58.4 / 50.6 % | 58.3 / 51.2 % | | Hyrule Field: the pacer | — | 3405 / 2566 of 3600 paced, 2.85 / 5.47 ms, 168 / 142 late (0 / 1 a period), stopped 1 / 2 times, 74 / 461 let go, 96.2 / 80.8 % within 0.75 ms | | Lost Woods (59.5 to 59.9 fps): fps | 59.5 / 59.9 | 59.7 / 59.9 | | Lost Woods: 1 % low, p99 | 49.2 / 51.6 fps, 20.34 / 19.38 ms | 50.7 / 51.5 fps, 19.74 / 19.42 ms | | Lost Woods: the pacer | — | stopped 3 times in the first 20 s, then off the rest of the run: 0 of 3600 paced, about 300 of 600 let go, 45 % within 0.75 ms | | Frame generation Fixed 2x (FSR 3.1): fps (the game's) | 51.4 / 50.8 | 51.0 / 50.7 | | Frame generation: 1 % low, p99 | 39.7 / 38.4 fps, 25.16 / 26.07 ms | 35.6 / 35.0 fps, 28.05 / 28.59 ms | | Frame generation: game speed | 1.000 / 1.000 (median) | 1.000 / 0.999 (median); no pacer line | | V-Sync On (FIFO, 165 Hz): fps | 59.9 / 60.0 | 60.0 / 60.0 | | V-Sync On: 1 % low, p99 | 41.9 / 41.3 fps, 23.84 / 24.19 ms | 46.0 / 45.3 fps, 21.74 / 22.07 ms | | V-Sync On: game speed | 1.000 (median) | 1.000 every line; the pacer on: 3203 / 2299 of 3600, 92.3 / 78.4 % | On Linux the pacer stops and lets go in the first 20 to 30 s of a run (the load, the warm-up) and settles at 600 of 600 paced, 97 to 99 % within 0.75 ms, in Hyrule Field once it holds the cap. Under FIFO at 165 Hz the shown intervals fall on the refresh (12.1 and 18.2 ms), so the 0.75 ms share means nothing there (0 % on both sides). With frame generation on the laptop, this head's 1 % low and p99 are lower in both runs (35.6 / 35.0 against 39.7 / 38.4 fps), at the same average and game speed: two runs a side, not checked further. Without V-Sync no driver confirmation comes, so the screen's side of the plain path is the PresentMon table below. #### On the screen, PresentMon (03/12) Setup: Windows 11, RTX 5080, driver 617.42, NVIDIA V-Sync set to the application's setting, cap 60, in play while swinging the camera. "Off" is this build with the Frame pacing setting off, which skips the pacer (the presenter as on `main`; the game's step still follows the display queue). On the screen: PresentMon 2.6.0 (`--v1_metrics`, `msBetweenDisplayChange` and `msBetweenPresents`), four interleaved 30 s runs, about 1800 intervals each. In the log: the renderer's line over windows of 600 presents. | On the screen (PresentMon, 30 s a run) | Before: main @ 1c91b18f | After: this PR @ f96a8e03, Frame pacing off (runs 1, 2) | After: this PR @ f96a8e03 (runs 1, 2, 3) | |---|---|---|---| | Display intervals within 0.75 ms of 16.67 ms | 51.1 % | 52.2 / 54.9 % | 93.8 / 92.8 / 91.4 % | | Display intervals, 1st to 99th percentile | 13.33 to 19.98 ms | 12.73 to 19.73 / 13.85 to 19.24 ms | 14.88 to 18.23 / 13.80 to 18.99 / 14.52 to 18.81 ms | | Present intervals within 0.75 ms | 64.1 % | 63.6 / 66.2 % | 98.9 / 98.6 / 98.6 % | | Display intervals over 25 ms (of ~1800) | 3 | 5 / 3 | 4 / 8 / 4 | | Frames never displayed | 0 | 0 / 0 | 0 / 0 / 0 | | Frame rate | 60.0 | 60.0 / 60.0 | 59.9 / 60.0 / 60.1 | "main" and run 3 are two builds of the same tree with and without this commit (`main` with an unrelated UI branch on top, the same on both sides), one run each, the game relaunched between them; runs 1 and 2 of each column are the setting flipped in one build, interleaved (on, off, on, off). `main` lands on the "Frame pacing off" runs (51.1 % against 52.2 and 54.9 %), so the setting off gives back `main`'s presents, and `HOS_STEP_SHOWN` (on in the "off" runs, absent from the base) moves nothing on the screen. The pacer's log line in run 3: 600 of 600 paced, 2.79 ms of wait on average, 21 late (1 a period or more), stopped 0 times, 98.3 % of intervals within 0.75 ms. | In the log (600 presents a line) | Off | On @ f96a8e03 | |---|---|---| | Intervals within 0.75 ms of 16.67 ms | 61.7 to 76.5 % | 97.5 / 98.3 / 99.2 % | | Frames a period or more late (of 600) | — | 0 to 1 | | Added wait a frame | 0 | about 2 ms | Switches: `RX_VK_PRESENT_PACE` (default on, follows the Frame pacing setting) and `HOS_STEP_SHOWN` (default on); both ship at the default these numbers chose, and `HOS_AB` may flip either. `HOS_NO_PACING` is `main`'s switch, read here and unchanged (default off): with it nothing holds the game to the display queue, so the step keeps the present call's time. ## Risks - About 2 ms more latency a frame while pacing (the offset keeps 0.5 ms to spare). - A GPU that cannot hold the cap: the line stops after a quarter of late frames, so it costs no frames there. - Turn off with the Frame pacing setting, or `RX_VK_PRESENT_PACE=0`; `HOS_STEP_SHOWN=0` gives the game's step its old timing. A revert is enough. Nothing changes in saves, settings.toml or the caches. ## Checklist ### Ready for review - [x] One topic, on current `main`; the title is a Conventional Commit. - [x] Tested on my own PC, in the game for a change the game runs, as Testing says. - [x] `mise run test` passes (any failure that also fails on `main` is named). - [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 switch added or changed: it ships at the default the measurements chose, with its row in `gpu/vk/switches.def`. - [x] A check under `tests/` that reads changed source is updated, not weakened. - [x] Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths. - [x] AI assistance recorded with `Assisted-by:` / `Co-Authored-By:` trailers. ### Ready to merge - [ ] Everything in Still to test has run, its results in Tested. - [ ] Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers"). - [ ] Approved in review, every comment answered. - [ ] CI passes on the head; on current `main`, measured again or a comment says why the numbers still hold. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
perf(vk): pace presents without frame generation, and step the game by its display queue
Some checks failed
PR description / Title and description (pull_request_target) Has been cancelled
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
f96a8e0334
At a frame rate cap without frame generation, the host held the game to the cap at its window acquire, but each
frame's replay and GPU work after it took a varying time, so the presents went out as unevenly as that work and camera
pans looked choppy while the measured frame rate was the cap's (#2645, #315). The only pacer was frame generation's.

The presenter thread now waits, after the copy's fence, for the frame's slot (gpu/vk/present_pace.h). The line is the
game's own clock: each frame's place is the place before plus one period, or the game's present when later (the host's
display queue, on the renderer's clock); a slot is its place plus an offset, the frames' work after the game's present.
A first version took the line from the presents themselves: a held present holds the render thread's next hand-over,
and the line settled a whole period late (15.7 ms of wait a frame in play).
- A late frame goes out at once and the offset grows to it; a period or more late is that frame's hitch alone, the
  offset kept. A slot over a period after the frame was ready (a load's frame) is not waited for: the offset is taken
  again.
- The offset shrinks 0.25 ms a frame at most while the last 16 frames' smallest wait is over 0.5 ms.
- Only while the game's thread is held by its cap: when it waits in its present instead (smoothed over 16 frames, over
  1 ms; vk_framegen.cpp fixed_clock's rule) or presents faster than 0.9 period (a movie the host paces at 240, #73),
  the frames go out as they come.
- Once a quarter of the last 32 frames came late it stops, and paces again after 64 frames at the cap's rate.
It follows the Frame pacing setting, and stays off with frame generation and under FIFO at a cap the refresh holds.
RX_VK_PRESENT_PACE=0 turns it off (HOS_AB may flip it); a log line every 600 presents gives its counts and the share of
intervals within 0.75 ms of the period.

The game's real-time step now follows each frame's place in the host's display queue rather than the present call's
time: held to its cap, every frame steps exactly one period, the step the paced pictures show; a late frame steps by
its own time, as before. Not with HOS_NO_PACING. HOS_STEP_SHOWN=0 gives the call's time back (HOS_AB may flip it).

Measured in play at a cap of 60 (RTX 5080, driver 617.42, Windows 11, V-Sync off), the log's line over 600 presents:
97.5 to 99.2 % of the presents within 0.75 ms of the period with Frame pacing on, against 61.7 to 76.5 % off; 2 ms of
added wait on average; 60 fps either way. The title's movie is let go (7 of 560 pictures skipped). Not yet measured on
the screen (PresentMon).

The slot line is the idea of HeyListen's HL_PRESENT_PACE=4, by Sacrappy; written again here, none of its code.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Contributor

Tested in game: Windows 11, RTX 5080, driver 617.42, NVIDIA V-Sync set to the application's setting, cap 60, Frame pacing on: played while swinging the camera in every direction, one stutter in several minutes and smoother to the eye than with Frame pacing off; the log line gave 97.5 to 99.2 % of present intervals within 0.75 ms of the period (61.7 to 76.5 % off), 60 fps either way; the title movie plays as before.

Tested in game: Windows 11, RTX 5080, driver 617.42, NVIDIA V-Sync set to the application's setting, cap 60, Frame pacing on: played while swinging the camera in every direction, one stutter in several minutes and smoother to the eye than with Frame pacing off; the log line gave 97.5 to 99.2 % of present intervals within 0.75 ms of the period (61.7 to 76.5 % off), 60 fps either way; the title movie plays as before.
Member

Possibly related, for context:

  • PR #2053 WIP: perf(vk): the present lets the replay's order lock go once the frame's copy is on the queue (RX_VK_PRESENT_UNLOCKED=0 to disable) — Open Vulkan present-path change may overlap presenter code.
Possibly related, for context: - PR #2053 WIP: perf(vk): the present lets the replay's order lock go once the frame's copy is on the queue (RX_VK_PRESENT_UNLOCKED=0 to disable) — Open Vulkan present-path change may overlap presenter code.
test: give the present cuts' fixtures what the pacer's lines call
Some checks failed
PR description / Title and description (pull_request_target) Successful in 6s
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
b08df2a7b9
test_pacing_policy, test_present_trace and test_present_acquire_ahead compile cuts of host/nn_vi.c and
gpu/vk/vk_replay.cpp. The display queue's step now calls realtime_step after the queue, with HOS_STEP_SHOWN read
through env_on_or and hos_ab_value, and present_hand_off hands present_shown_at and present_shown_wait to the
presenter: the fixtures now declare those (each switch at its default, no HOS_AB run), and nothing they check changed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
neotoxic changed title from WIP: perf(vk): pace presents without frame generation, and step the game by its display queue to perf(vk): pace presents without frame generation, and step the game by its display queue 2026-12-03 18:56:08 +00:00
Owner
@review
BeanBot left a comment

Recommendation: Request changes. The presenter reads frame-generation state concurrently with a settings update through a plain integer, introducing a data race. The measured NVIDIA result is promising, but the new default also needs coverage on other affected systems and in demanding scenes.

The change smooths plain-path presents and makes the game step follow the host display queue. The reported Windows run shows substantially more even display intervals at about 60 fps, at the cost of roughly 2 ms of added wait per paced frame.

Blocking (1): must change before merging.

  1. L1 gpu/vk/vk_replay.cpp:7647: The presenter calls framegen_on(), which reads the plain opts.framegen while the settings applier can write it on another thread. (more on the line) Do: Publish the running frame-generation decision atomically for the presenter, or protect both its read and every write with the same lock.

Testing before merging (3) (runs on the systems it can change; it doesn't hold the recommendation)

  • L2 gpu/vk/vk_replay.cpp:7661: The default pacer's gain and frame-time cost need repeatable comparisons against the actual base, including an area near the cap. (more on the line) Do: Run at least two interleaved base and head measurements in the target and heavy areas, reporting display intervals, average and 1% low fps, frame times and pacer stops.
  • L3 gpu/vk/vk_replay.cpp:7711: The new presenter wait has not been exercised in game on Linux or on AMD and Intel GPUs. (more on the line) Do: Run paced and unpaced gameplay on the affected Tier 1 systems, including Linux and AMD/Intel, and check presentation intervals and frame rate.
  • L4 host/nn_vi.c:472: The changed game step applies even when the new presenter pacer is inactive, but those modes have not been checked in game. (more on the line) Do: Compare gameplay and frame timing against the base with frame generation enabled and with FIFO at a refresh-held cap; check motion and game speed. (@fix does its part first: Gate the new step to the modes whose display timeline it follows.)

@fix can do L1 and L4.

Questions (1) (not confirmed from the code; they don't hold the recommendation)

  • tests/test_present_pace.py:57: Is there a specific input sequence for which the current queue calculation delivers an incorrect game step?

Checks: Still running: 11 checks.

More: does it help, other systems, switches, what was read

Does it help: Unproven across supported setups. On the reported RTX 5080 Windows runs, 91.4–93.8% of display intervals were within 0.75 ms of the period, versus 51.1% in one base run; multiple interleaved runs of the actual base and heavy-scene frame-time results are missing.

Other systems: The host step also changes with frame generation, FIFO, pacing disabled in the menu, and on Linux. Linux gameplay, AMD and Intel GPUs, a heavy area near the cap, and FIFO at a refresh-held cap remain untested. The timestamp handoff uses the presenter mutex, and settings snapshots are atomically published.

Switches: RX_VK_PRESENT_PACE defaults on when Frame pacing is enabled; HOS_STEP_SHOWN defaults on independently of that setting. Both have switch-table rows and HOS_AB support. Their defaults have promising evidence on one NVIDIA Windows setup but lack the broader runs needed for all affected paths. HOS_NO_PACING is unchanged.

Reviewed: b08df2a7b9 against 1c91b18f86: Read AGENTS.md, CONTRIBUTING.md, docs/dev/standards.md, the PR template, commits, all changed hunks, present_pace.h, present_pace_test.cpp and test_present_pace.py, plus the surrounding presenter, host pacing, game-step and settings code. Skimmed the remaining changed test fixtures and switch table. docs/review-checklist.md and ../Tooling/AGENTS.md were absent. Large unchanged renderer and host files were read around relevant paths rather than in full; no recorded runs or generated files were changed.; nothing run (a code review).

Checked and fine:

  • Both commits record AI assistance.
  • The changed files contain no apparent game-derived fixture or build output, and no API versioned structure or generated shader was changed.
  • The presenter copies its new per-frame timestamps under the same mutex used for handoff.
  • The pacer uses the same steady-clock basis as the renderer's game-present timestamp.

Testing: No code, tests, builds or project scripts were run. The author reports Windows gameplay and measurements and Linux builds; CI is still running.

Overlaps and merge order: Not checked; the network is closed.


Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.

**Recommendation: Request changes.** The presenter reads frame-generation state concurrently with a settings update through a plain integer, introducing a data race. The measured NVIDIA result is promising, but the new default also needs coverage on other affected systems and in demanding scenes. The change smooths plain-path presents and makes the game step follow the host display queue. The reported Windows run shows substantially more even display intervals at about 60 fps, at the cost of roughly 2 ms of added wait per paced frame. **Blocking (1)**: must change before merging. 1. **L1** `gpu/vk/vk_replay.cpp:7647`: The presenter calls framegen_on(), which reads the plain opts.framegen while the settings applier can write it on another thread. (more on the line) **Do:** Publish the running frame-generation decision atomically for the presenter, or protect both its read and every write with the same lock. **Testing before merging (3)** (runs on the systems it can change; it doesn't hold the recommendation) - **L2** `gpu/vk/vk_replay.cpp:7661`: The default pacer's gain and frame-time cost need repeatable comparisons against the actual base, including an area near the cap. (more on the line) **Do:** Run at least two interleaved base and head measurements in the target and heavy areas, reporting display intervals, average and 1% low fps, frame times and pacer stops. - **L3** `gpu/vk/vk_replay.cpp:7711`: The new presenter wait has not been exercised in game on Linux or on AMD and Intel GPUs. (more on the line) **Do:** Run paced and unpaced gameplay on the affected Tier 1 systems, including Linux and AMD/Intel, and check presentation intervals and frame rate. - **L4** `host/nn_vi.c:472`: The changed game step applies even when the new presenter pacer is inactive, but those modes have not been checked in game. (more on the line) **Do:** Compare gameplay and frame timing against the base with frame generation enabled and with FIFO at a refresh-held cap; check motion and game speed. *(`@fix` does its part first: Gate the new step to the modes whose display timeline it follows.)* `@fix` can do L1 and L4. **Questions (1)** (not confirmed from the code; they don't hold the recommendation) - `tests/test_present_pace.py:57`: Is there a specific input sequence for which the current queue calculation delivers an incorrect game step? **Checks:** Still running: 11 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven across supported setups. On the reported RTX 5080 Windows runs, 91.4–93.8% of display intervals were within 0.75 ms of the period, versus 51.1% in one base run; multiple interleaved runs of the actual base and heavy-scene frame-time results are missing. **Other systems:** The host step also changes with frame generation, FIFO, pacing disabled in the menu, and on Linux. Linux gameplay, AMD and Intel GPUs, a heavy area near the cap, and FIFO at a refresh-held cap remain untested. The timestamp handoff uses the presenter mutex, and settings snapshots are atomically published. **Switches:** RX_VK_PRESENT_PACE defaults on when Frame pacing is enabled; HOS_STEP_SHOWN defaults on independently of that setting. Both have switch-table rows and HOS_AB support. Their defaults have promising evidence on one NVIDIA Windows setup but lack the broader runs needed for all affected paths. HOS_NO_PACING is unchanged. **Reviewed:** b08df2a7b938 against 1c91b18f86ae: Read AGENTS.md, CONTRIBUTING.md, docs/dev/standards.md, the PR template, commits, all changed hunks, present_pace.h, present_pace_test.cpp and test_present_pace.py, plus the surrounding presenter, host pacing, game-step and settings code. Skimmed the remaining changed test fixtures and switch table. docs/review-checklist.md and ../Tooling/AGENTS.md were absent. Large unchanged renderer and host files were read around relevant paths rather than in full; no recorded runs or generated files were changed.; nothing run (a code review). **Checked and fine:** - Both commits record AI assistance. - The changed files contain no apparent game-derived fixture or build output, and no API versioned structure or generated shader was changed. - The presenter copies its new per-frame timestamps under the same mutex used for handoff. - The pacer uses the same steady-clock basis as the renderer's game-present timestamp. **Testing:** No code, tests, builds or project scripts were run. The author reports Windows gameplay and measurements and Linux builds; CI is still running. **Overlaps and merge order:** Not checked; the network is closed. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
@ -7622,0 +7644,4 @@
/// cap the display's refresh already holds (V-Sync paces there)
int64_t pace_cap_period() {
const int cap = menu_fps_cap();
if (cap <= 0 || framegen_on()) return 0;
Member

L1 (blocking): The presenter calls framegen_on(), which reads the plain opts.framegen while the settings applier can write it on another thread. The presenter's mutex does not protect that settings write.

When: Changing Frame generation while presents are running can overlap menu/framegen.cpp's take_setting(opts.framegen, v) with framegen_running() on the presenter. That is a C++ data race, so the pacing decision has undefined behavior.

Do: Publish the running frame-generation decision atomically for the presenter, or protect both its read and every write with the same lock.

**L1** (blocking): The presenter calls framegen_on(), which reads the plain opts.framegen while the settings applier can write it on another thread. The presenter's mutex does not protect that settings write. *When:* Changing Frame generation while presents are running can overlap menu/framegen.cpp's take_setting(opts.framegen, v) with framegen_running() on the presenter. That is a C++ data race, so the pacing decision has undefined behavior. **Do:** Publish the running frame-generation decision atomically for the presenter, or protect both its read and every write with the same lock.
@ -7622,0 +7658,4 @@
static const char* env_text = getenv("RX_VK_PRESENT_PACE");
static const int env = !(env_text && env_value_off(env_text));
const int64_t period = pace_cap_period();
const bool on = period && settings_now().frame_pacing && (host && host->ab_value ? host->ab_value("RX_VK_PRESENT_PACE", env) : env);
Member

L2 (should fix): The default pacer's gain and frame-time cost need repeatable comparisons against the actual base, including an area near the cap.

When: The reported base has one run, and the heavy area where the line may repeatedly stop and restart has not been measured; the current numbers cannot establish its frame pacing or low-frame-rate cost there.

Do: Run at least two interleaved base and head measurements in the target and heavy areas, reporting display intervals, average and 1% low fps, frame times and pacer stops.

**L2** (should fix): The default pacer's gain and frame-time cost need repeatable comparisons against the actual base, including an area near the cap. *When:* The reported base has one run, and the heavy area where the line may repeatedly stop and restart has not been measured; the current numbers cannot establish its frame pacing or low-frame-rate cost there. **Do:** Run at least two interleaved base and head measurements in the target and heavy areas, reporting display intervals, average and 1% low fps, frame times and pacer stops.
@ -7651,6 +7708,8 @@ void presenter_loop() {
std::lock_guard g(presenter.mu);
presenter.copy_done_at = at;
}
if (copied) pace_present(game_at, game_wait); // (the FPS counter's Breakdown: the pacing's, after the copy's end)
Member

L3 (should fix): The new presenter wait has not been exercised in game on Linux or on AMD and Intel GPUs.

When: These systems use different scheduling and presentation paths; only the Windows NVIDIA path has an in-game result, so the default's effect on their pacing and frame rate remains unknown.

Do: Run paced and unpaced gameplay on the affected Tier 1 systems, including Linux and AMD/Intel, and check presentation intervals and frame rate.

**L3** (should fix): The new presenter wait has not been exercised in game on Linux or on AMD and Intel GPUs. *When:* These systems use different scheduling and presentation paths; only the Windows NVIDIA path has an in-game result, so the default's effect on their pacing and frame rate remains unknown. **Do:** Run paced and unpaced gameplay on the affected Tier 1 systems, including Linux and AMD/Intel, and check presentation intervals and frame rate.
@ -462,0 +469,4 @@
static int no_pacing = -1, step_shown = -1;
if (no_pacing < 0) no_pacing = env_on("HOS_NO_PACING");
if (step_shown < 0) step_shown = env_on_or("HOS_STEP_SHOWN", 1);
realtime_step(!no_pacing && hos_ab_value("HOS_STEP_SHOWN", step_shown) ? shown : now);
Member

L4 (should fix): The changed game step applies even when the new presenter pacer is inactive, but those modes have not been checked in game.

When: Frame generation and FIFO can display frames on a different timeline from the host's simulated queue, while the new default still uses that queue for the game's step.

Do: Compare gameplay and frame timing against the base with frame generation enabled and with FIFO at a refresh-held cap; check motion and game speed.

**L4** (should fix): The changed game step applies even when the new presenter pacer is inactive, but those modes have not been checked in game. *When:* Frame generation and FIFO can display frames on a different timeline from the host's simulated queue, while the new default still uses that queue for the game's step. **Do:** Compare gameplay and frame timing against the base with frame generation enabled and with FIFO at a refresh-held cap; check motion and game speed.
fix(vk): read the pacer's period at the hand-over, not on the presenter thread
Some checks failed
PR description / Title and description (pull_request_target) Has been cancelled
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
03156c7cac
The presenter thread called pace_cap_period(), and through it framegen_on(), which reads opts.framegen: the settings'
applier writes that field on the game's snapshot, on another thread, so turning Frame generation on or off while
presents ran was a data race on the presenter (BeanBot's L1 on #3099). The period is now taken in present_hand_off,
on the thread that presents (present_image reads framegen_on there already), and handed to the presenter with the
frame under presenter.mu, as the game's present time is. tests/test_present_pace.py checks that the presenter's loop
and pace_present no longer call it; the acquire-ahead fixture gets a pace_cap_period of none.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Contributor

Thanks. On 03156c7c:

L1 (fixed in 03156c7c). Right: pace_cap_period() ran on the presenter thread and read opts.framegen through framegen_on(), which the settings' applier writes on another thread. The period is now taken in present_hand_off, on the thread that presents (where present_image already reads framegen_on()), and handed to the presenter with the frame under presenter.mu, like the game's present time. The presenter reads none of those settings now; tests/test_present_pace.py checks that neither the loop nor pace_present calls pace_cap_period(). Built for Linux (dev.py rt) and the cut fixtures pass on Windows.

L4 (not gated, on purpose; now in Still to test). The step follows the host's display queue, and that queue is the host's own pacing of the game to its cap at the acquire, whatever presents the frame afterwards: with frame generation the game's frames are still held to the cap there (frame generation adds its frames on its own timeline), and under FIFO at a cap the refresh holds the acquire holds them to that same cap. Held to its cap, a frame's place is exactly a period after the one before in every mode; a frame later than its place steps by its own time, as before. Gating it to the pacer's modes would bring back the uneven step where the cap still holds the game. I have no run to show it yet in those modes, so Still to test now has frame generation on and FIFO at a held cap, against main, for motion and game speed. HOS_STEP_SHOWN=0 turns it off if a run says otherwise.

L2, L3. Agreed, they are runs: two more interleaved main/head runs at the same spot and one in a heavy area near the cap (average and 1 % low fps, the pacer's stops), Linux and AMD/Intel GPUs, are in Still to test for testers and the Test Farm.

Question (test_present_pace.py:57). No input I know of gives a wrong step: the queue's place is max(last + period, now), so a frame is never placed before its call, and a late one steps by its own time. The C++ test covers the pacer's line, not the step; the step's rule is the host's queue, unchanged here, only now handed to realtime_step.

Thanks. On 03156c7c: **L1 (fixed in 03156c7c).** Right: `pace_cap_period()` ran on the presenter thread and read `opts.framegen` through `framegen_on()`, which the settings' applier writes on another thread. The period is now taken in `present_hand_off`, on the thread that presents (where `present_image` already reads `framegen_on()`), and handed to the presenter with the frame under `presenter.mu`, like the game's present time. The presenter reads none of those settings now; `tests/test_present_pace.py` checks that neither the loop nor `pace_present` calls `pace_cap_period()`. Built for Linux (`dev.py rt`) and the cut fixtures pass on Windows. **L4 (not gated, on purpose; now in Still to test).** The step follows the host's display queue, and that queue is the host's own pacing of the game to its cap at the acquire, whatever presents the frame afterwards: with frame generation the game's frames are still held to the cap there (frame generation adds its frames on its own timeline), and under FIFO at a cap the refresh holds the acquire holds them to that same cap. Held to its cap, a frame's place is exactly a period after the one before in every mode; a frame later than its place steps by its own time, as before. Gating it to the pacer's modes would bring back the uneven step where the cap still holds the game. I have no run to show it yet in those modes, so Still to test now has frame generation on and FIFO at a held cap, against `main`, for motion and game speed. `HOS_STEP_SHOWN=0` turns it off if a run says otherwise. **L2, L3.** Agreed, they are runs: two more interleaved `main`/head runs at the same spot and one in a heavy area near the cap (average and 1 % low fps, the pacer's stops), Linux and AMD/Intel GPUs, are in Still to test for testers and the Test Farm. **Question (test_present_pace.py:57).** No input I know of gives a wrong step: the queue's place is `max(last + period, now)`, so a frame is never placed before its call, and a late one steps by its own time. The C++ test covers the pacer's line, not the step; the step's rule is the host's queue, unchanged here, only now handed to `realtime_step`.
Author
Contributor

L2 and L4 have run, at 03156c7c against main @ 1c91b18f (dev.py ab, two interleaved runs a side, cap 60, Frame pacing on, the camera turning), on this PC (RTX 5080, 120 Hz) and on Linux (RTX 3060 Laptop, COSMIC Wayland, 165 Hz); the tables are in Measurements.

  • L2: Hyrule Field holds 60.0 fps on both sides on both machines, 1 % low and p99 within the spread; the pacer paces 3600 of 3600 presents on this PC (99.1 / 99.2 % within 0.75 ms, stopped 0 times). Right at the cap (Lost Woods on the laptop, 59.5 to 59.9 fps) it does not flip: it stops 3 times in the first 20 s and stays off for the rest of the run (0 paced, the game's thread held in its present), so there is no pacing there either.
  • L4: the game clock's speed (HOS_FPS_LOG=1) is 1.000 on both sides with frame generation (Fixed 2x, FSR 3.1) and under FIFO, at the same fps. With frame generation the pacer writes no line (off). Under FIFO it runs on both displays (refresh over 1.05 times the cap), and the frames the driver confirms shown are within 0.75 ms of the period 84.3 / 87.6 % of the time against 60.2 / 61.3 % on main (this PC). Not run: FIFO on a 60 Hz display, where the pacer stays off; it is in Still to test.

On the laptop with frame generation, this head's 1 % low came out lower in both runs (35.6 / 35.0 against 39.7 / 38.4 fps) at the same average fps and game speed; under FIFO it came out higher (46.0 / 45.3 against 41.9 / 41.3). Two runs a side; both are written up as measured.

L2 and L4 have run, at 03156c7c against `main` @ 1c91b18f (`dev.py ab`, two interleaved runs a side, cap 60, Frame pacing on, the camera turning), on this PC (RTX 5080, 120 Hz) and on Linux (RTX 3060 Laptop, COSMIC Wayland, 165 Hz); the tables are in Measurements. - **L2**: Hyrule Field holds 60.0 fps on both sides on both machines, 1 % low and p99 within the spread; the pacer paces 3600 of 3600 presents on this PC (99.1 / 99.2 % within 0.75 ms, stopped 0 times). Right at the cap (Lost Woods on the laptop, 59.5 to 59.9 fps) it does not flip: it stops 3 times in the first 20 s and stays off for the rest of the run (0 paced, the game's thread held in its present), so there is no pacing there either. - **L4**: the game clock's speed (`HOS_FPS_LOG=1`) is 1.000 on both sides with frame generation (Fixed 2x, FSR 3.1) and under FIFO, at the same fps. With frame generation the pacer writes no line (off). Under FIFO it runs on both displays (refresh over 1.05 times the cap), and the frames the driver confirms shown are within 0.75 ms of the period 84.3 / 87.6 % of the time against 60.2 / 61.3 % on `main` (this PC). Not run: FIFO on a 60 Hz display, where the pacer stays off; it is in Still to test. On the laptop with frame generation, this head's 1 % low came out lower in both runs (35.6 / 35.0 against 39.7 / 38.4 fps) at the same average fps and game speed; under FIFO it came out higher (46.0 / 45.3 against 41.9 / 41.3). Two runs a side; both are written up as measured.
Merge main @ ca830e89 into perf/present-pacer
Some checks failed
PR description / Title and description (pull_request_target) Successful in 6s
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
e609015f45
No conflict; the branch is brought up to current main. Nothing of its own changes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Contributor

Brought up to current main (ca830e89) by a merge, e609015f (nothing rewritten). There was no conflict, although main had touched switches.def, vk_replay.cpp, nn_vi.c and test_pacing_policy.py alongside this branch.

On Windows:

  • dev.py base, rt and rt --empty build.
  • run_all.py --changed origin/main gives 180 passed and 2 failed. Both failures, test_pad_speaker and test_tex_desc_memo, fail the same way on main here.

The measurements in the description were taken at 03156c7c against 1c91b18f, before this merge. Measuring again on current main stays under Ready to merge.

Brought up to current `main` (ca830e89) by a merge, e609015f (nothing rewritten). There was no conflict, although `main` had touched `switches.def`, `vk_replay.cpp`, `nn_vi.c` and `test_pacing_policy.py` alongside this branch. On Windows: - `dev.py base`, `rt` and `rt --empty` build. - `run_all.py --changed origin/main` gives 180 passed and 2 failed. Both failures, `test_pad_speaker` and `test_tex_desc_memo`, fail the same way on `main` here. The measurements in the description were taken at 03156c7c against 1c91b18f, before this merge. Measuring again on current `main` stays under Ready to merge.
Owner
@review
BeanBot left a comment

Recommendation: Approve. The code is ready: only testing is left. The pacer substantially improves measured present regularity at the same average frame rate, and the reported runs cover Linux, frame generation and FIFO. AMD and Intel in-game runs are still needed for the presenter wait. Recommend approval; not approved on the forge.

The change spaces plain-path presents more evenly and makes the game step follow its display queue. It adds about 2 ms of average pacing wait on the measured Windows system and introduces pacing state and two developer switches.

Testing before merging (1) (runs on the systems it can change; it doesn't hold the recommendation)

  • L3 gpu/vk/vk_replay.cpp:7711: The presenter wait still needs in-game coverage on AMD and Intel GPUs. When: At a held frame-rate cap, the presenter waits before submitting presents on these GPUs, but their in-game pacing and frame-rate behavior has not been reported. Do: Run the plain path at cap 60 with Frame pacing on and compare pacing and frame rate against main on AMD and Intel.

Since the last review (on b08df2a7b9)
Resolved: L1 (The presenter calls framegen_on(), which reads the plain opts.framegen while the settings…); L2 (The default pacer's gain and frame-time cost need repeatable comparisons against the actua…); L4 (The changed game step applies even when the new presenter pacer is inactive, but those mod…)
Still open: L3 (The presenter wait still needs in-game coverage on AMD and Intel GPUs.)

Checks: Still running: 11 checks.

Also noticed (3; not asked for, not blocking)
  • On the Linux laptop with frame generation, the reported 1% lows fell from 38.4–39.7 to 35.0–35.6 fps in two runs per side.
  • FIFO at a 60 Hz refresh and a 60 fps cap remains untested.
  • The performance measurements predate the merge with current main.
More: does it help, other systems, switches, what was read

Does it help: Yes. PresentMon on Windows reports 91.4–93.8% of display intervals within 0.75 ms of the target period, versus 51.1% on main, at approximately 60 fps. The repeated base comparisons also show similar average fps, though Linux frame-generation lows were lower on this head.

Other systems: Windows and Linux NVIDIA runs are reported, including frame generation and FIFO. AMD and Intel GPUs remain untested; FIFO at a refresh equal to the cap also remains untested. The game step changes independently of whether the presenter pacer runs.

Switches: RX_VK_PRESENT_PACE defaults on when Frame pacing is enabled and the mode permits it; HOS_STEP_SHOWN defaults on. Both have switch-table entries and A/B controls. Their defaults have measured support on the tested NVIDIA systems; other GPU coverage remains open. HOS_NO_PACING is unchanged and defaults off.

Reviewed: e609015f45 against ca830e8959: Read AGENTS.md and CONTRIBUTING.md, the changed pacing header and tests, the relevant renderer and host diffs, the fix diff, and the surrounding hand-off and step references. Skimmed the other changed test fixtures and switch table; the large renderer and host files and referenced developer standards were not read in full. No review checklist or pull request template was found by the file search.; nothing run (a code review).

Checked and fine:

  • The period and game timing values are handed to the presenter together under its mutex.
  • The presenter waits after the copy fence and before the Vulkan present.
  • The reported frame-generation runs show no presenter-pacer log and game speed near 1.000.

Testing: No code or tests were run during this read-only review. The author reports game runs and comparisons on Windows and Linux NVIDIA hardware; CI is still running.

Overlaps and merge order: Not determined; the network is closed.


Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.

**Recommendation: Approve.** The code is ready: only testing is left. The pacer substantially improves measured present regularity at the same average frame rate, and the reported runs cover Linux, frame generation and FIFO. AMD and Intel in-game runs are still needed for the presenter wait. Recommend approval; not approved on the forge. The change spaces plain-path presents more evenly and makes the game step follow its display queue. It adds about 2 ms of average pacing wait on the measured Windows system and introduces pacing state and two developer switches. **Testing before merging (1)** (runs on the systems it can change; it doesn't hold the recommendation) - **L3** `gpu/vk/vk_replay.cpp:7711`: The presenter wait still needs in-game coverage on AMD and Intel GPUs. *When:* At a held frame-rate cap, the presenter waits before submitting presents on these GPUs, but their in-game pacing and frame-rate behavior has not been reported. **Do:** Run the plain path at cap 60 with Frame pacing on and compare pacing and frame rate against main on AMD and Intel. **Since the last review** (on b08df2a7b938) Resolved: L1 (The presenter calls framegen_on(), which reads the plain opts.framegen while the settings…); L2 (The default pacer's gain and frame-time cost need repeatable comparisons against the actua…); L4 (The changed game step applies even when the new presenter pacer is inactive, but those mod…) Still open: L3 (The presenter wait still needs in-game coverage on AMD and Intel GPUs.) **Checks:** Still running: 11 checks. <details> <summary>Also noticed (3; not asked for, not blocking)</summary> - On the Linux laptop with frame generation, the reported 1% lows fell from 38.4–39.7 to 35.0–35.6 fps in two runs per side. - FIFO at a 60 Hz refresh and a 60 fps cap remains untested. - The performance measurements predate the merge with current main. </details> <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Yes. PresentMon on Windows reports 91.4–93.8% of display intervals within 0.75 ms of the target period, versus 51.1% on main, at approximately 60 fps. The repeated base comparisons also show similar average fps, though Linux frame-generation lows were lower on this head. **Other systems:** Windows and Linux NVIDIA runs are reported, including frame generation and FIFO. AMD and Intel GPUs remain untested; FIFO at a refresh equal to the cap also remains untested. The game step changes independently of whether the presenter pacer runs. **Switches:** RX_VK_PRESENT_PACE defaults on when Frame pacing is enabled and the mode permits it; HOS_STEP_SHOWN defaults on. Both have switch-table entries and A/B controls. Their defaults have measured support on the tested NVIDIA systems; other GPU coverage remains open. HOS_NO_PACING is unchanged and defaults off. **Reviewed:** e609015f4521 against ca830e895926: Read AGENTS.md and CONTRIBUTING.md, the changed pacing header and tests, the relevant renderer and host diffs, the fix diff, and the surrounding hand-off and step references. Skimmed the other changed test fixtures and switch table; the large renderer and host files and referenced developer standards were not read in full. No review checklist or pull request template was found by the file search.; nothing run (a code review). **Checked and fine:** - The period and game timing values are handed to the presenter together under its mutex. - The presenter waits after the copy fence and before the Vulkan present. - The reported frame-generation runs show no presenter-pacer log and game speed near 1.000. **Testing:** No code or tests were run during this read-only review. The author reports game runs and comparisons on Windows and Linux NVIDIA hardware; CI is still running. **Overlaps and merge order:** Not determined; the network is closed. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Merge main (e345b3cab) into perf/present-pacer
Some checks are pending
CI / What the change needs (pull_request) Blocked by required conditions
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Blocked by required conditions
CI / Third-party parts and guide screenshots (pull_request) Blocked by required conditions
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Blocked by required conditions
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Blocked by required conditions
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Blocked by required conditions
CI / Website build and checks (pull_request) Blocked by required conditions
PR description / Title and description (pull_request_target) Successful in 6s
de078d267b
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Contributor

Brought up to current main (e345b3ca) by a merge, nothing rewritten. No conflict. Windows, run_all.py --changed origin/main: 183 passed, 3 failed: test_dlssg, test_sync_watch_event and test_turf_budget, which fail on main itself too (checked in a checkout of main on the same PC).

Brought up to current `main` (e345b3ca) by a merge, nothing rewritten. No conflict. Windows, `run_all.py --changed origin/main`: 183 passed, 3 failed: `test_dlssg`, `test_sync_watch_event` and `test_turf_budget`, which fail on `main` itself too (checked in a checkout of `main` on the same PC).
HumanBean deleted branch perf/present-pacer 2026-12-04 17:17:42 +00:00
Some checks are pending
CI / What the change needs (pull_request) Blocked by required conditions
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Blocked by required conditions
CI / Third-party parts and guide screenshots (pull_request) Blocked by required conditions
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Blocked by required conditions
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Blocked by required conditions
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Blocked by required conditions
CI / Website build and checks (pull_request) Blocked by required conditions
PR description / Title and description (pull_request_target) Successful in 6s
Some workflows are waiting to be reviewed.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 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!3099
No description provided.