upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/test/vk_queue_query_sync_test.cpp
diff options
context:
space:
mode:
authorNotRexed <therealnothingfn@gmail.com>2026-11-28 16:35:11 -0500
committerNotRexed <therealnothingfn@gmail.com>2026-11-28 16:35:11 -0500
commitbd06eb9049158d9b1dd94dc857700207f7673fe2 (patch)
treef1ef58f2409e55b523add7276791abeb52284614 /runtime/test/vk_queue_query_sync_test.cpp
parentc7fcf49a77e4974bec8e8fc7e7bce66c071e1c5b (diff)
Presents held to 0.9 of the recent mean interval since the last one, so a quick frame after a slow one is not shown at once (LEONIDA_PRESENT_SMOOTH=<fraction>, on by default; 0: off)
smooth.rs, called in present_planes right before frame generation's present_start and the swap chain's Present (on the presenting thread, leonida-submit with the line on), and right after it: the running mean of the intervals between presents (the newest weighs 0.1, each at most 100 ms), and a present that comes sooner than the fraction of it after the last one waits the rest. The title's frames and their simulation are unchanged; only when a frame is handed over to be shown moves. LEONIDA_AB can switch it. After kylepelham/El1xr (pacing.rs, VICTORY_PRESENT_SMOOTH, GPL-3.0; on by default there, measured on the same title at 19-21 frames a second without frame generation: change from one present interval to the next 12.7-15.3 -> 6.2 ms, spread 11.3 -> 7.2), which leaves it off while frame generation's proxy presents; here it holds the frame handed to the proxy too. As there, after a long stretch of slow frames (a load) the mean falls by at most 1 % a frame (held presents go into it), so faster frames are held for a few seconds after. Measured 2026-11-28: waterside save, Series X, 1080 lines, frame generation 2x, RTX 4060 Ti, Ryzen 5 7600X, standing; LEONIDA_AB switching it in phases of 10 s, four starts; phases of 100 frames or more in the world while frames were generated; the frames handed over to be shown, not held -> held: jitter ms spread ms p90-median median limit 28, markers 0 13.5 -> 7.6 12.3 -> 8.4 9.5 -> 11.0 72.0 -> 72.2 limit 28, markers 1 11.5 -> 7.8 11.5 -> 8.7 8.8 -> 8.5 71.2 -> 71.9 no limit, markers 0 11.1 -> 7.7 10.4 -> 8.2 6.6 -> 5.2 68.9 -> 68.9 no limit, markers 1 10.1 -> 7.2 13.0 -> 7.6 7.3 -> 7.4 70.1 -> 68.3 (jitter: the mean change from one interval to the next; its standard error 0.2-0.3 ms held, 0.5-0.9 not; limit: LEONIDA_FG_LIMIT_FPS, markers: LEONIDA_FG_MARKERS, the commit before.) Held, the four are within 0.6 ms of one another, about two standard errors: which of them is smoothest is not measured; the defaults (markers off, the launcher's limit at 28) stay. Two more starts with a switch that changes nothing (LEONIDA_BARRIER_MERGE), as the launcher starts now: not held, jitter 10.4 and 11.4 ms in its halves, spread 9.4 and 12.3, the asked summary of the title's presents (first two phases skipped, over 3,000 draws) mean 74.7 / median 72.2 / p90 83.1 / p90 - median 10.9; held by default, 10.0 and 8.7 ms, spread 13.2 and 11.7, in the phases where frames were generated (the window lost the focus for half of that run, so 13 of its 28 phases are left out). Test: smooth::tests::presents_are_held_to_a_fraction_of_the_running_mean. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/test/vk_queue_query_sync_test.cpp')
0 files changed, 0 insertions, 0 deletions