8000 1.10.1: reports of heavy lag; check the rollback time budget with TR off + vsync on · Issue #573 · inada-s/flycast · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

1.10.1: reports of heavy lag; check the rollback time budget with TR off + vsync on #573

Closed

Description

@inada-s

@inada-s-ai

Instruction from @inada-s:

1.10.1 shipped with the setting that lowers the delay. Some players say the lag is terrible, maybe because their rollbacks do not keep up. Check whether, with TR off + vsync on, there is enough time in a frame for the rollbacks.

Background

1.10.1 includes these changes:

TR off + vsync on is the recommended setting. Within one frame (16.68 ms) it has to fit:

  • emulation;
  • render;
  • Present, which can block with vsync on;
  • the rollback (load + N rerun frames);
  • the limiter.

Hypothesis: at the RTTs where PR 559 lowered the delay, the rollback depth grows. On slower PCs, or when Present blocks, a frame overruns. The game then slows down or stutters, which players call lag. This is not verified.

Measure first, report only, no fix yet

Use the existing perf tooling (gdxsv_tests/perf/, GDXSV_PERF_TRACE, PresentMon). TR off, vsync on, DX11, 2 peers.

  1. Use the real delay selection.
    • Do not set TEST_GGPO_DELAY. Let the ping test pick the delay.
    • Use several send delays, for example 30/30, 50/50, 80/80 and 120/120 ms one-way. Pick ones where 1.10.1 chooses a smaller delay than 1.10.0 did.
    • Run each on 1.10.0 and on 1.10.1, alternating.
  2. Per frame, from the trace:
    • time used in total;
    • the time in each part: emulation, render, Present (including the vsync block), load, rerun × depth, save;
    • the remaining slack before the next frame.
  3. Report per build and delay setting:
    • the chosen input delay;
    • the rollback depth histogram and rolled-back frames per minute;
    • the share of frames that overrun 16.68 ms;
    • the worst frame times;
    • the B3 frame period (59.94 kept?);
    • GGPO timesync waits;
    • press-to-display latency (A2).
  4. A slower PC. windows-mini is not the slowest PC players use. Repeat the worst setting with the emulator limited to fewer cores (CPU affinity), and say how much slower that makes a frame.
  5. Then a short proposal. For example: tune the rollback budget (1.5 frames) or cap the depth; make the budget depend on measured frame cost; or something else. Give the expected effect of each.

Time box: about one session of measuring. Post tables, not only conclusions. Do not change code until @inada-s decides.

Runner: windows-mini

Activity

  1. inada-s-ai commented on Oct 23, 2026

    @inada-s-ai

    Measured: TR off + vsync on, 1.10.0 vs 1.10.1, delay from the real ping test (windows-mini)

    Short answer: on windows-mini the rollbacks fit easily. No frame's own work went over 16.68 ms in 14 matches (about 29,000 frames). The worst frame took 10.5 ms, on 1.10.0. On 1.10.1 the worst was 10.1 ms, and a depth-2 frame takes about 6.2 ms. The frame period held at 59.94 and missed vblanks stayed at 0 to 0.1 % on both builds. On this box the budget is not what players feel as lag. I could not show the "slower PC" case: pinning the emulator to fewer cores does not slow a frame (below).

    Setup

    • Two local peers, DX11 (pvr.rend=2), ThreadedRendering=no, vsync=yes, DelayFrameSwapping=no. No TEST_GGPO_DELAY and no TEST_PING_MS, so the default 7.5 s ping test picks the delay. GGPO_NETWORK_DELAY = d on both peers.
    • Builds: inada-s/flycast main 8859c0b, which is 1.10.1 plus the perf trace (PR 547). For 1.10.0 I used tag gdxsv-1.10.0 with PR 547 cherry-picked; 2 conflicts in ggpo.cpp, where I kept the 1.10.0 code and added the trace lines. The release exes have no GDXSV_PERF_TRACE. Builds were run alternately.
    • Load: battle.py's (peer 1 press sweep; peer 2 changes its pad every 12 frames). Window: GGPO frames 180 to 2280 (35 s). Peer 1 is measured, with PresentMon on it.
    • "work" = time from limiter wake to the next limiter call, minus the time PresentMon shows in the Present API (the vsync block). That is emulation + save + load/rerun + render submit. The limiter's own slack is not usable with vsync on: in about 30 % of frames it is negative only because Present blocked to vblank, while B3 and B1 show no missed frame.

    Chosen delay (as the code predicts)

    one-way send delay max_rtt 1.10.0 delay 1.10.1 delay
    30 ms 62 2 2
    50 ms 102 4 2
    80 ms 162 6 4
    120 ms 242 8 6

    Per run

    run delay rolled-back frames/min depth hist work med/p99/max ms work >16.68 ms rollback ms med, depth 1/2 in Present med B3 med / within 1 ms B1 vblank missed timesync waits A2 med/p95 (n)
    30, 1.10.0 #1 2 24.0 1:14 3.08/5.02/10.2 0 % 4.33/- 0.26 16.68 / 100 % 0.048 % 0 71.6/81.9 (79)
    30, 1.10.1 #1 2 224.4 1:131 2.10/5.02/8.37 0 % 2.27/- 0.69 16.68 / 100 % 0.048 % 0 72.6/82.3 (78)
    30, 1.10.0 #2 2 20.5 1:10 2:1 2.99/4.39/10.48 0 % 4.67/6.64 11.13 16.68 / 98.95 % 0 % 0 75.6/82.1 (78)
    30, 1.10.1 #2 2 1.7 1:1 2.29/2.93/6.07 0 % 2.29/- 14.39 16.68 / 99.62 % 0 % 0 74.7/82.7 (78)
    50, 1.10.0 #1 4 0 - 3.35/4.20/6.89 0 % - 13.32 16.68 / 98.86 % 0 % 0 75.6/82.9 (79)
    50, 1.10.1 #1 2 279.1 1:101 2:31 2.30/5.94/7.46 0 % 2.22/3.92 14.38 16.68 / 87.14 % 0 % 0 75.4/82.2 (79)
    50, 1.10.0 #2 4 0 - 2.94/3.92/9.09 0 % - 0.07 16.68 / 100 % 0.095 % 0 69.3/80.3 (79)
    50, 1.10.1 #2 2 251.7 1:131 2:8 2.25/4.89/7.07 0 % 2.21/3.82 14.42 16.68 / 86.71 % 0 % 0 73.6/81.9 (79)
    80, 1.10.0 6 0 - 3.20/4.07/7.32 0 % - 13.48 16.68 / 99.71 % 0 % 0 75.3/82.2 (78)
    80, 1.10.1 4 191.8 1:110 2:1 2.22/4.75/10.11 0 % 2.21/3.74 14.45 16.68 / 89.33 % 0 % 0 74.7/82.6 (78)
    120, 1.10.0 8 0 - 3.41/4.16/9.14 0 % - 13.24 16.68 / 98.81 % 0 % 0 73.0/82.0 (79)
    120, 1.10.1 6 18.8 1:9 2:1 2.27/3.08/7.08 0 % 1.91/3.44 14.41 16.68 / 98.81 % 0 % 0 75.1/82.6 (79)

    Work by rollback depth, 50 ms on 1.10.1 (frames, med, max ms): depth 0 (1967, 2.28, 7.46), depth 1 (101, 4.31, 6.20), depth 2 (31, 6.23, 7.35). One rerun frame costs about 1.75 ms and one load about 0.5 ms. The rollback speedups show in the numbers: a depth-1 rollback takes 4.3 to 4.7 ms on 1.10.0 and 2.2 ms on 1.10.1. Median work also fell from about 3.2 ms to 2.2 ms.

    What the numbers say

    • The frame budget: a frame fits at any depth seen here, and it would still fit up to about depth 7 at the per-rerun cost measured here (2.3 + 0.5 + 1.75·d ≤ 16.68). The rollback depth stays at 1 to 2 because the latency left over after the delay is at most 1.5 frames, which is the design of PR 559.
    • Rollback count: 1.10.1 rolls back far more frames: 190 to 280 per minute at 50 and 80 ms, against 0 on 1.10.0. Peer 2 changes its input only 5 times a second here. Real play changes input more often, so expect more.
    • B3 jitter: with rollbacks, B3 "within 1 ms" drops from about 99 % to 87 %. The median and the drift stay at 16.683 ms. This is frame-to-frame jitter of the limiter wake, not lost frames (B1 shows 0 % missed vblanks).
    • 30 ms varies between runs: 1.10.1 gave 131 rollbacks in run 1 and 1 in run 2, with the same delay of 2. The real one-way time at 30 ms is right at the delay's edge (GGPO jitter is 0.67 to 1.0 × the send delay), so the timesync phase decides. This is not a difference between builds.
    • A2 leaves out the input delay. analyze.py counts from the GGPO frame whose add carries the press to the display of that frame + 2. That fits battle.py, where the delay is fixed at 2. With the ping-test delay it does not: A2 reads about 75 ms for delay 2 and for delay 8 alike. The real press-to-display ≈ A2 + (delay − 2) × 16.68 ms. This is derived, not measured on screen. On that basis 1.10.1 shows a press 33 ms sooner at 50 ms and 80 ms, and at 120 ms.

    A slower PC (item 4): not shown

    • I pinned peer 1 to logical CPUs 0-1 (one physical core with SMT) and peer 2 to 2-7, at 50 ms. Work med/p99/max was 2.15/4.70/7.41 ms on 1.10.1 and 3.36/4.31/8.06 ms on 1.10.0. That is the same as without pinning. The emu thread is single-threaded under TR off, so affinity does not make a frame slower.
    • What it would take: a frame overruns only when the per-frame cost is about 2.2× windows-mini's at depth 2 (6.2 → 16.7 ms), or about 7× at depth 0. To test that, the CPU clock needs to be lowered (powercfg maximum processor state) or a weak GPU used. That is not done.

    Likely sources of the reported lag (hypothesis, not tested)

    1. Visual corrections, not slowdown. 1.10.1 10BC8 shows 190 to 280 rolled-back frames per minute where 1.10.0 showed 0. Each rollback can make the opponent's position snap or jump by 1 or 2 frames, which players may call lag. This fits "lag" reports from players whose frame times are fine.
    2. Real-world RTT spikes against a delay with no headroom. The ping test takes the max over 7.5 s. If the RTT later goes above it, the rollback depth goes above 1.5 frames. The rig has no RTT spikes (only GGPO's uniform jitter), so this was not measured.
    3. Slower PCs: possible only at roughly 2× this box's single-thread cost. Not reached here.

    Proposals (no code changed)

    • A. Raise the rollback budget from 1.5 to 2.0 or 2.5 frames. Delay +0 to +1 at the RTTs above. Expect fewer, shallower rollbacks (at 50 ms: delay 3, depth mostly 0 to 1), at the cost of about 17 ms more input latency. This is the cheapest test of hypothesis 1. Check it with the same rig first: rolled-back frames per minute at 50 and 80 ms.
    • B. Make the budget depend on the measured frame cost. Not needed for frame time on a box like this one (6 ms at depth 2). It would only help on PCs at least 2× slower. Of value only if Sentry or user reports show low-end hardware.
    • C. Give players a choice ("low delay" vs "stable", for example GdxMinDelay in the UI, or a budget option). Players who see the snapping can pick the 1.10.0 behaviour.
    • D. Before choosing: get one bad-lag report with its replay or log (max_rtt=... delay=..., GGPO stats) to tell hypothesis 1 from 2. Fix A2 for a delay other than 2 so press-to-display is measured on screen, not derived.

    Not done / where

    • Ran on windows-mini only: Ryzen 5 3400GE, Vega 11 iGPU, 1080p60, DX11, both peers on one box. Not run: Vulkan, TR on, real network RTT spikes, lowered CPU clock.
    • Scripts and the 1.10.0 trace diff: inada-s/gdxsv-reveng tools/rollback_budget/.

    Handover

    • Done: items 1 to 3 and 5 on windows-mini. Item 4 was tried; the affinity method does not slow a frame.
    • Next, if wanted: (a) a lowered CPU clock (powercfg maximum processor state) for item 4; (b) proposal A with the same rig (budget 2.0 or 2.5): rolled-back frames per minute at 50 and 80 ms; (c) an A2 that works for any input delay.
    • Decision needed: which proposal, if any. No code was changed.
    • @inada-s: choose a proposal (A/B/C/D) or close.

    Status: waiting

  2. inada-s commented on Oct 23, 2026

    @inada-s
    OwnerAuthor

    @inada-s-ai Field data from the live server for this issue. Please investigate. The questions are at the end.

    Summary

    • Some players say battles are not comfortable on 1.10.x. The assumption was that the rollback speedups of 1.10.0 let a lower delay play well. On some PCs that does not seem to hold.
    • Production reports (P2PMatchingReport, last 2 days, 86 battles with at least one 1.10.1 peer) show 3 patterns:
      1. One peer's FPS jitters on its own while the others are steady. On 1.10.x the other peers then timesync about 2.6× more. Before 1.10, they did 1.5× more.
      2. The jitter rises with the predicted rollback depth for some players. FPS stdev goes from about 0.3–1.0 at depth 0–1 to 4–5 at depth 1–2.
      3. Prediction-barrier stalls are about 10× higher on 1.10.1 even at RTT ≤ 20 ms. There the rollback depth should be about 0, so rollback cost does not explain them.
    • Player A, the clearest case, is on a hybrid-GPU laptop in a maximized window. That is a very different setup from windows-mini (desktop iGPU). See the hardware section.

    Data source and metrics

    • Source: P2PMatchingReport from gdxsv-lbs (Cloud Logging), 2026-10-22 to 10-24. Only reports with frame_count > 3000 and at least 7 fps_history samples. The first 2 samples are dropped.
    • fps_history is stats.extra.current_fps (fpsAvg), sampled every 600 frames.
    • blk = input_block_count_0+1+2 per 10k frames. These count waits at the prediction barrier (MAX_PREDICTION_FRAMES = 6), in addLocalInput and gdxsv_ggpo_wait_prediction_barrier.
    • ts = total_timesync per 10k frames.
    • "Predicted depth" = max_rtt/2/16.68 - delay. max_rtt and delay come from the max_rtt=... delay=... line in before_log.
    • Sample sizes are small (one or two nights). Treat every number as a lead, not a proof.

    1. One peer jitters alone, and the others wait (1.10.x only)

    These are battles where all peers ran the same version. "Jitter" means the jitteriest peer has FPS stdev > 2 and every other peer has < 1.5. "Calm" means the jitteriest peer has < 0.8.

    version battle type n jittery peer ts other peers ts other peers blk
    1.10 calm 14 32 39 25
    1.10 one jitters 12 32 103 23
    ≤1.9.6 calm 4 53 38 20
    ≤1.9.6 one jitters 8 74 56 11

    On 1.10 the jittery peer does not timesync more itself; the others do. Before 1.10 the jittery peer itself had the higher timesync.

    Count of "jitters alone" battles per player:

    • Player A: 8 of 20 on 1.10.1, against 1 of 20 on 1.9.6.
    • Every other player: at most 1.

    Player A's delay is 2 on both versions (RTT about 25 ms). So for Player A this is not "a lower delay means deeper rollbacks". Something else in 1.10.x changed for that PC. Player A, per version:

    version n max_rtt delay FPS stdev samples < 55 fps own blk own ts
    1.9.6 11 26 2.0 1.83 3 % 2.8 9
    1.10.1 9 23 2.0 3.05 10 % 0.1 13

    Example fps_history of Player A on 1.10.1, battle 1792767195435, delay 2, max_rtt 35. It swings both ways, which looks like late frames followed by short frames:
    59.8 57.4 52.7 60.8 57.1 61.3 64.2 61.7 50.5 55.5 58.8 57.6 60.1 61.2 55.7 60.8 52.4 57.0 61.5 61.4 ... 67.6 ... 68.3 ... 48.3

    Most stable peers sit at stdev 0.1–0.4, for example 59.9 ± 0.3.

    2. Jitter by predicted rollback depth (1.10 only, per player)

    player depth 0–1: FPS stdev (n) depth 1–2: FPS stdev (n)
    Player B (Hong Kong, RTT ~110 to Japan) 0.29 (5) 4.01 (5)
    Player C 1.03 (4) 5.00 (2)
    Player D 1.58 (6) 0.53 (1)
    Player E 0.13 (3) 1.03 (1)
    Player F 0.45 (5) 0.09 (1)

    All peers together:

    version predicted depth n FPS stdev samples < 55 fps blk 30 ms+
    ≤1.9.6 0–1 182 1.12 1.4 % 1.1
    1.10 0–1 162 0.85 1.3 % 5.6
    1.10 1–2 14 2.60 3.2 % 35.9

    Player B's delay went from 3.5 (1.9.6) to 2.5 (1.10.1). Over the same change, Player B's blk went from 116 to 347 per 10k frames. Player C's delay went from 3.0 to 2.0, and blk from 0.7 to 222.

    Battles at predicted depth ≥ 1 that show the two kinds of pattern. Each cell is FPS stdev / blk / ts.

    battle peer 1 peer 2 peer 3 peer 4 reading
    1792768297435 B: 5.2 / 48 / 59 0.2 / 20 / 78 0.3 / 31 / 69 1.0 / 62 / 62 Only B jitters, few stalls → B's own frame time
    1792769361435 6.0 / 599 / 109 C: 6.2 / 613 / 93 B: 6.6 / 689 / 95 G: 5.1 / 17 / 13 G hardly waits, the others stall 600+ → the others wait on G
    1792769953435 G: 5.6 / 14 / 30 B: 3.8 / 806 / 96 4.9 / 551 / 111 C: 3.8 / 596 / 93 Same as above
    1792771273435 2.4 / 977 / 188 4.7 / 1043 / 195 B: 2.5 / 1132 / 173 G: 1.0 / 46 / 65 Same as above

    All peers in these battles ran 1.10.1, delay 2 or 3, max_rtt 89 to 138.

    3. Stalls at low RTT (1.10.1 vs 1.9.6)

    • At max_rtt ≤ 20 ms, input_block_count_0 was 31.2 per 10k frames on all-1.10.1 battles and 3.3 on all-1.9.6 battles.
    • At 61 ms and above the gap was larger still.
    • Player H (Hong Kong fixed line, RTT 3–8 ms, steady FPS) had almost no stalls on 1.9.6 (10/18). On 1.10.1 (10/24) Player H had 5 stalls over 500 ms in 6 games.
    • At this RTT the depth is about 0, so rollback cost does not explain these. They look like inputs from some peer arriving bunched or late.

    Hardware of Player A (Sentry crash report, 2026-10-10, 1.9.6, same machine_id as today's 1.10.1 logins)

    • Laptop: NVIDIA GeForce RTX 3050 Laptop GPU, with the Intel iGPU driver also loaded (hybrid / Optimus; the display likely goes out through the iGPU).
    • pvr.rend=2 (DX11), window maximized, not fullscreen, rend.vsync=yes, rend.FixedFrequency=2 (59.94), rend.ThreadedRendering=no, rend.DupeFrames=no, rend.Resolution=960, aica.LimitFPS=yes, gdxsv.MinDelay=2.
    • NVIDIA ShadowPlay capture (nvspcap64.dll) is loaded in the process.
    • The log has FixedFrequency: Over slept 1000-1550 [us] every few minutes.
    • The monitor refresh rate is unknown. Neither Sentry nor platform_info records it.
    • No Sentry reports exist for Players B, C or G.

    Relevant 1.9.6 → 1.10.x changes found so far

    • 743c39edf (1.10.0) Frame limiter: an absolute schedule.
      • 1.9.6 waited one period from the previous frame's end, so any lateness, including oversleep, was never paid back.
      • 1.10 pays back lateness under one period by shortening the next wait, and skips whole periods at one period or more.
      • With TR off, the local input is sent once per frame. So on 1.10 a late frame is followed by a short one, and the input send interval inherits that late/short pattern.
    • 6acf2c8d0 (1.10.0) Rollback frame order:
      • input before the advance
      • early present with TR off
      • the limiter on the emu thread with TR on
      • MaxFrameLatency 1
    • b81dd7f15 (1.10.1) delay = ceil(one-way frames − 1.5). Lower delay, more rollbacks; your rig measured 190 to 280 rolled-back frames per minute.
    • The GGPO library, gdxsv_sleep_us and the 1 ms network pump (IdleLoop) have no functional changes in this range.
    • I first wrote that 1.10's limiter "does not catch up". That was wrong; it is the other way round, as above. The data in sections 1–3 does not depend on that.

    Hypotheses to test

    1. On PCs with an irregular present cost, the input send interval jitters on 1.10.x: hybrid-GPU laptop + DX11 windowed + vsync + TR off, like Player A. The cause would be 743c39e, 6acf2c8, or both. The jitter reaches the other peers as late or bunched inputs, so they timesync and stall.
    2. Some PCs cannot fit depth 1–2 rollbacks in a frame (Players B and C). Your windows-mini numbers say there is 2.2× headroom at depth 2, so these PCs would have to be quite slow. Or vsync and Present blocking eat the budget, which is not measured on windows-mini.
    3. The low-RTT stall increase (section 3) has some third cause that is unrelated to delay or depth.

    Asks

    • Reproduce the conditions of hypothesis 1 on the rig: DX11, windowed/maximized, vsync on, TR off, FixedFrequency=2. On a hybrid-GPU laptop if one is available; otherwise on a monitor that is not 59.94 Hz. Compare 1.9.6, 1.10.0, and 1.10.1 with 743c39e reverted. Measure:
      • the interval between add traces of the local peer (send interval jitter)
      • the remote peer's prediction-barrier waits and timesync
      • wake slack distribution
    • Check whether 1.10.x produces the "others timesync, the jittery peer does not" pattern, and why.
    • Propose extra platform_info fields so field data can split these cases:
      • GPU name(s)
      • display refresh rate
      • fullscreen or windowed
      • vsync, FixedFrequency, ThreadedRendering, renderer
      • AC or battery
    • Optional: per-battle counters in P2PMatchingReport:
      • frames late by ≥1 period
      • p99 of the local input send interval
      • max rollback frame time

    Player names are replaced with letters. Raw data, mapping and battle codes are available from inada-s on request.

  3. inada-s commented on Oct 23, 2026

    @inada-s
    OwnerAuthor

    @inada-s-ai Field data from production (P2PMatchingReport, 2026-10-22 to 10-24). Please investigate.

    Some players say 1.10.x battles are not comfortable, although the rollback speedups should allow the lower delay. Player names are replaced with letters.

    Data

    Others timesync more when one peer's FPS jitters (1.10 only). These are battles where all peers ran the same version. "One jitters" means one peer has FPS stdev > 2 and every other peer has < 1.5. "ts" is total_timesync per 10k frames.

    version battle type n jittery peer ts other peers ts
    1.10 calm 14 32 39
    1.10 one jitters 12 32 103
    ≤1.9.6 calm 4 53 38
    ≤1.9.6 one jitters 8 74 56

    Player A: delay 2 and RTT about 25 ms on both versions. FPS stdev 1.83 on 1.9.6 (n=11) and 3.05 on 1.10.1 (n=9). Player A was the only jittery peer in 8 of 20 battles on 1.10.1, against 1 of 20 on 1.9.6.

    • Environment: laptop with an RTX 3050 Laptop GPU and an Intel iGPU.
    • Settings: DX11, maximized window (not fullscreen), vsync on, FixedFrequency=2, ThreadedRendering off.

    FPS jitter grows with predicted rollback depth (max_rtt/2/16.68 - delay) on 1.10:

    player depth 0–1 depth 1–2
    B 0.29 (n=5) 4.01 (n=5)
    C 1.03 (n=4) 5.00 (n=2)

    Battles where only one peer waits little while the other peers stall a lot. Each cell is FPS stdev / input blocks per 10k frames.

    battle peer 1 peer 2 peer 3 peer 4
    1792769361435 6.0 / 599 C 6.2 / 613 B 6.6 / 689 G 5.1 / 17
    1792769953435 G 5.6 / 14 B 3.8 / 806 4.9 / 551 C 3.8 / 596
    1792771273435 2.4 / 977 4.7 / 1043 B 2.5 / 1132 G 1.0 / 46

    Input blocks at low RTT. At max_rtt ≤ 20 ms, input_block_count_0 was 31.2 per 10k frames on all-1.10.1 battles and 3.3 on all-1.9.6 battles.

    Hypotheses to check

    1. Since 1.10.x, the interval between input sends is unstable (frame limiter 743c39edf, frame order 6acf2c8d0).
    2. GGPO is not polled for long stretches during rollbacks (ggpoMutex held in nextFrame, DoPoll skipped in rollback). Packets are then lost or delayed.
  4. inada-s commented on Oct 23, 2026

    @inada-s
    OwnerAuthor

    @inada-s-ai Instruction from @inada-s, in addition to the field data above (#573 (comment), #573 (comment)):

    Packet loss also looks more frequent than before. That bothers me.

    Work from the field data, not only from the windows-mini rig.

    Add packet loss to the investigation

    Where loss could come from on 1.10.x (to check, not verified):

    • Long gaps between socket reads. ggpoMutex is held through nextFrame, and DoPoll is skipped during a rollback. A late frame (the limiter's late/short pattern) or a long rollback then leaves the UDP socket unread longer. If the OS receive buffer fills, datagrams are dropped.
      • Check the socket's SO_RCVBUF (the Windows default is small).
      • Check how many datagrams arrive per gap: relays, 4 peers, input + quality reports.
    • Bunched sends. On 1.10.x a late frame is followed by a short one, so the input send interval inherits that pattern (see the field data). Bursts may be dropped more on some routers and Wi-Fi.
    • A counting artefact. Check how the "packet loss" figure is computed: GGPO network stats, the OSD, or P2PMatchingReport. Late, bunched or out-of-order packets may be counted as lost.

    Measure on the rig, with 1.9.6, 1.10.0 and 1.10.1, alternating:

    • Use the existing GGPO_NETWORK_DELAY. Add loss and jitter if a switch exists; else a small test-only switch is fine (runtime, documented).
    • Count datagrams sent vs received per peer, at the socket level. Also count drops by the OS if visible: WSAEMSGSIZE, a buffer counter, or sent/received counts.
    • Log the longest gap between socket reads per frame, and how it relates to rollback depth and to late frames.
    • Report the loss figure from the same source the players and @inada-s see, so the numbers match.

    Then a short proposal, if loss rises on 1.10.x. For example:

    • poll the socket during rollbacks, or from a separate thread;
    • raise SO_RCVBUF;
    • smooth the send interval.

    Keep the earlier rules: report first, no code change until @inada-s decides. Put the measurement scripts in this repository (gdxsv_tests/) if they will be reused; otherwise drop them. Do not put them in gdxsv-reveng: move tools/rollback_budget/ out of it the same way.

    Runner: windows-mini


    Generated by Claude Code

  5. inada-s commented on Oct 23, 2026

    @inada-s
    OwnerAuthor

    @inada-s-ai Instruction from @inada-s, follow-up to #573 (comment):

    The packet loss @inada-s sees is the on-screen stats OSD. Compare that figure across 1.9.6, 1.10.0 and 1.10.1. Nothing else to add. (An earlier version of this comment asked to count reordered packets; drop that, it is not in scope.)

    Runner: windows-mini


    Generated by Claude Code

  6. inada-s commented on Oct 23, 2026

    @inada-s
    OwnerAuthor

    @inada-s-ai Instruction from @inada-s:

    The rise in packet loss is compared with 1.9.6. There is no field data for 1.10.0; it was live too briefly.

    • The GGPO network code and the OSD loss counting are the same in 1.9.6 and 1.10.1, so the cause is in when the emulator calls GGPO. Two suspects:
      1. 1.10.0: frame pacing (743c39e, 6acf2c8) bunches the input sends;
      2. 1.10.1: lower input delay (b81dd7f), so more rollbacks and longer gaps without socket reads.
    • On the rig, measure the OSD loss for 1.9.6, 1.10.0 and 1.10.1, alternating, under the same conditions. 1.10.0 tells which of the two it is.
    • Then confirm with local test builds that revert only the suspect. These are for measurement only, not a PR.

    Report the numbers and which change it is. No fix until @inada-s decides.

    Runner: windows-mini


    Generated by Claude Code

  7. inada-s commented on Oct 23, 2026

    @inada-s
    OwnerAuthor

    @inada-s-ai Instruction from @inada-s:

    When poll stops, packet relay stops too, so the other players are affected in a chain.

    A peer forwards relayed packets only when it reads its socket (Peer2PeerBackend::OnMsg, p2p.cpp).

    So if one PC's reads stall, two things happen to the packets it relays for two other players:

    • they are delayed;
    • if its 16 KB receive buffer fills, they are dropped.

    The players on both ends then see loss and lag, though their own PCs are fine. One slow PC could raise the loss for the whole room.

    Include this in the measurement:

    • A 4-peer room where one peer relays for two others, and only that relay peer is loaded: frame stalls or longer rollbacks.
    • Compare 1.9.6 / 1.10.0 / 1.10.1 as before.
    • Report the OSD loss on the two other peers, and the relay peer's longest gap between socket reads.
    • Check in the field data (P2PMatchingReport) whether matches with relayed peers show more loss on 1.10.1 than on 1.9.6.

    Still report only; no fix until @inada-s decides.

    Runner: windows-mini


    Generated by Claude Code

  8. inada-s-ai commented on Oct 23, 2026

    @inada-s-ai

    Packet loss: a first answer (windows-mini, code + 3 rig runs)

    Short answer: the loss figure counts sequence-number gaps. It is not a count of dropped datagrams. A single lost packet adds 2, a single reordered packet adds 2 (and the late packet is then thrown away), and every session starts with about 10 phantom losses. That counting and the socket setup are the same in 1.9.6 and 1.10.x. On the rig, rollbacks make the socket go unread up to 3× longer (2.6 → 9.6 ms), but the receive buffer still holds about 400 datagrams, so OS buffer overflow is ruled out at these rates. Why players see more loss on 1.10.x is still open. The best lead is reordering from bunched sends, which counts as loss (hypothesis).

    Where the figure comes from

    • The OSD shows ↓ N (recv_packet_loss) and ↑ N (send_packet_loss, the peer's ↓ sent back in its quality report every 1 s). The connection grade uses the increase over the last 2 s (lossHealth: 0 / ≤2 / ≤4 / ≤7). P2PMatchingReport has no loss field.
    • udp_proto.cpp OnMsg: skipped = seq - last_seq; when skipped != 1, loss += skipped. Measured effects:
      • 1 lost packet → +2. k lost in a row → +k+1.
      • 1 reordered packet → +2, and that packet is dropped as "out of order" (seq < last wraps to a large skipped).
      • About 10 phantom losses at session start, on both peers. Sync packets do not move last_seq (9d352ac6e, since 1.9.3), so the first input arrives with last=0, seq=10.
    • No change between 1.9.6 and 1.10.1 in udp.cpp, the sequence logic, the send queue, or the OSD loss code (bc6a34d9a is in both). A rise between them comes from the traffic, not from the counter.

    Socket

    • SO_RCVBUF = SO_SNDBUF = 16384 (macOS 9216), in udp.cpp, unchanged.
    • Measured traffic, 2 peers: 62 datagrams/s per peer, 40 B on average, at most 2–3 datagrams waiting per read. With 4 peers plus relays, expect about 4× that. 16 KB is then about 1 s of traffic; the longest gap seen was 9.6 ms.
    • UDP Receive Errors (netstat -s -p udp) is 0 since boot (2026-10-17). Loopback traffic is not counted there (+26 datagrams over a whole run), so this says nothing about the rig peers.

    Rig: gap between socket reads (scratch trace build, main 8859c0b, 2 peers, 50 ms send delay, TR off, vsync, DX11)

    run delay rollbacks max read gap per 10 s window, in battle (ms) reads ≥ 4 ms max datagrams per read loss counter
    ping test 2 53 (depth 1: 34, 2: 19) 2.5–9.6 0–12 per 10 s 3 10 / 11 (start only)
    TEST_GGPO_DELAY=4 4 0 2.4–3.0 0 2 10 / 11 (start only)
    delay 4 + GGPO_OOP_PERCENT=1 4 0 – – – 70 / 57 = 10 + 2 × 30 and 11 + 2 × 23 reordered
    • The first 10 s window (loading, before the battle) has 20 ms gaps in every run.
    • In the reorder run, the datagrams received per 10 s stayed at 619–620: nothing was lost, yet the counter rose by 2 for each reordered packet.
    • The trace diff (scratch, not committed) is below.

    What this means for the field reports (hypothesis)

    1. Reordering counts as loss. On 1.10.x, a late frame is followed by a short one, so two inputs can leave about 1–2 ms apart instead of about 16.7 ms. Wi-Fi and some routers reorder packets that close 10BC8 together more often. Each reorder shows as +2 and drops a packet that had arrived. The dropped packet is not needed: the next input packet repeats all unacked inputs. That fits Player A's late/short pattern. Not measured: needs a real network or a jitter switch that can reorder by a few ms (GGPO_OOP_PERCENT holds a packet back by up to 10 × delay + 1 s).
    2. Real loss from long read gaps: ruled out at these rates (buffer ≫ gap).
    3. More lost packets counted per real loss on 1.10.x: not supported. The rate is 62 datagrams/s in every run, the same with and without rollbacks.

    Proposals (no code changed)

    • A. Fix the counter (small, low risk): count skipped - 1; do not count a gap at the first message after sync; count late arrivals separately as "reordered". Then the OSD shows real loss. Needed before any loss number can be compared across versions.
    • B. Smooth the send interval (only if A still shows a 1.10.x rise): send the local input at a steady time, not right after a short frame.
    • Not needed on this data: a bigger SO_RCVBUF, or polling during rollbacks.

    Not done yet

    • 1.9.6 and 1.10.0 with the same trace: not built this run, so "1.10.x shows more loss" is not reproduced on the rig.
    • Field-data hypotheses 1–3 (the send-interval jitter after 743c39edf, others timesyncing, low-RTT stalls): not started. Next run: trace the add interval and wake slack on 1.9.6 / 1.10.1 / 1.10.1 with 743c39edf reverted, windowed DX11, on a monitor that is not 59.94 Hz if possible.
    • Moving tools/rollback_budget/ from gdxsv-reveng to gdxsv_tests/: not done.
    • Where: windows-mini only (2 local peers, loopback). Not run: 4 peers, relay, Wi-Fi, a real network.
    Scratch trace diff (GGPO_TEST_LOG=1 → NETTRACE lines)
    diff --git a/core/deps/ggpo/lib/ggpo/network/udp.cpp b/core/deps/ggpo/lib/ggpo/network/udp.cpp
    index ea35966f8..0d6c239c1 100644
    --- a/core/deps/ggpo/lib/ggpo/network/udp.cpp
    +++ b/core/deps/ggpo/lib/ggpo/network/udp.cpp
    @@ -7,6 +7,7 @@
     
     #include "ggpo_types.h"
     #include "udp.h"
    +#include <chrono>
     
     SOCKET
     CreateSocket(uint16 bind_port, bool v6)
    @@ -126,6 +127,20 @@ bool
     Udp::OnLoopPoll(void *cookie)
     {
        uint8 recv_buf[MAX_UDP_PACKET_SIZE];
    +   // NETTRACE (scratch, flycast#573): gap between socket reads and datagrams per read.
    +   static const bool nt = GGPOPlatform::GetConfigInt("GGPO_TEST_LOG") != 0;
    +   static uint64_t nt_last_us, nt_win_start_us, nt_polls, nt_dgrams, nt_bytes, nt_maxgap, nt_maxper, nt_g[5];
    +   int nt_n = 0;
    +   uint64_t nt_now = (uint64_t)std::chrono::duration_cast<std::chrono::microseconds>(
    +      std::chrono::steady_clock::now().time_since_epoch()).count();
    +   if (nt && nt_last_us) {
    +      uint64_t gap = nt_now - nt_last_us;
    +      if (gap > nt_maxgap) nt_maxgap = gap;
    +      const uint64_t lim[5] = {4000, 8000, 16000, 33000, 100000};
    +      for (int i = 0; i < 5; i++) if (gap >= lim[i]) nt_g[i]++;
    +   }
    +   nt_last_us = nt_now;
    +   if (!nt_win_start_us) nt_win_start_us = nt_now;
     
        for (int s = 0; s < 2; s++) for (;;) {
           SOCKET sock = s == 0 ? _socket_v4 : _socket_v6;
    @@ -156,8 +171,22 @@ Udp::OnLoopPoll(void *cookie)
                 Log("recvfrom returned (len:%d  from:%s:%d).", len, src_ip, port);
              }
              UdpMsg *msg = (UdpMsg *)recv_buf;
    +         nt_n++;
    +         nt_bytes += len;
              _callbacks->OnMsg(recv_addr, msg, len);
    -      } 
    +      }
    +   }
    +   if (nt) {
    +      nt_polls++;
    +      nt_dgrams += nt_n;
    +      if ((uint64_t)nt_n > nt_maxper) nt_maxper = nt_n;
    +      if (nt_now - nt_win_start_us >= 10000000) {
    +         LogInfo("NETTRACE polls=%llu dgrams=%llu bytes=%llu maxgap_us=%llu gap4=%llu gap8=%llu gap16=%llu gap33=%llu gap100=%llu maxper=%llu",
    +                 nt_polls, nt_dgrams, nt_bytes, nt_maxgap, nt_g[0], nt_g[1], nt_g[2], nt_g[3], nt_g[4], nt_maxper);
    +         nt_win_start_us = nt_now;
    +         nt_polls = nt_dgrams = nt_bytes = nt_maxgap = nt_maxper = 0;
    +         for (auto &g : nt_g) g = 0;
    +      }
        }
        return true;
     }
    diff --git a/core/deps/ggpo/lib/ggpo/network/udp_proto.cpp b/core/deps/ggpo/lib/ggpo/network/udp_proto.cpp
    index 4588783ce..1f66bd27c 100644
    --- a/core/deps/ggpo/lib/ggpo/network/udp_proto.cpp
    +++ b/core/deps/ggpo/lib/ggpo/network/udp_proto.cpp
    @@ -467,11 +467,13 @@ UdpProtocol::OnMsg(UdpMsg *msg, int len)
           // Log("udpproto%d | checking sequence number -> next - seq : %d - %d = %d", _queue, seq, _next_recv_seq, skipped);
           if (skipped > MAX_SEQ_DISTANCE) {
              Log("udpproto%d | dropping out of order packet (seq: %d, last seq:%d)", _queue, seq, _next_recv_seq);
    +         if (_test_log) LogInfo("NETTRACE oop q=%d seq=%d last=%d", _queue, seq, _next_recv_seq);
              return;
           }
     
           if (_next_recv_seq < seq && skipped != 1) {
             _recv_packet_loss += skipped;
    +        if (_test_log) LogInfo("NETTRACE loss q=%d type=%d seq=%d last=%d skipped=%d total=%d", _queue, msg->hdr.type, seq, _next_recv_seq, skipped, _recv_packet_loss);
           }
        }
     

    Handover

    • Done: the loss counter and the socket buffer, from code; read gaps, phantom loss and reorder counting, on the rig.
    • Next: (1) 1.9.6 / 1.10.1 with the same trace, alternating; (2) the send interval (add trace) and the remote timesync for field-data hypothesis 1, including 743c39edf reverted; (3) move tools/rollback_budget/ into gdxsv_tests/.
    • Decision for @inada-s: proposal A (fix the counter) can go in now if you want comparable loss numbers. Otherwise I will keep measuring.

    Status: continue

  9. inada-s commented on Oct 23, 2026

    @inada-s
    OwnerAuthor

    @inada-s-ai Instruction from @inada-s (replaces "no fix until @inada-s decides" in my earlier comments):

    Don't wait for my decision. Try the suspicious patterns one after another.

    The case that matters most: ping about 100 ms with delay = 2. Relay is unknown, so test both with and without relay.

    On the rig: GGPO_NETWORK_DELAY set for about 100 ms RTT, delay 2, 4 peers, 1.9.6 vs 1.10.1, compare the OSD loss.

    Try the suspects without asking first. Experimental builds and draft PRs are fine; merging still waits for @inada-s. Examples:

    • revert the frame pacing (743c39e / 6acf2c8) or the delay budget (b81dd7f) on their own;
    • poll the socket during rollbacks (or from a separate thread), so reads and relay forwarding do not stop;
    • a larger SO_RCVBUF;
    • smoother send intervals.

    Keep each try measured against 1.9.6, interleaved, and post a short table: build, OSD loss, rollback frames, the longest gap between socket reads. Stop a branch of the search when it shows no effect.

    Runner: windows-mini


    Generated by Claude Code

  10. inada-s-ai commented on Oct 23, 2026

    @inada-s-ai

    @inada-s Seen: #573 (comment), #573 (comment), #573 (comment), #573 (comment). They arrived while this run was ending, after the report above. Plan for the next run:

    • Builds: each one gets the same scratch trace from the report above. It logs the OSD ↓ counter (recv_packet_loss) per loss event and the longest gap between socket reads per 10 s window.
      • 1.9.6, 1.10.0, 1.10.1;
      • 1.10.1 with b81dd7f15 reverted;
      • 1.10.1 with 743c39edf + 6acf2c8d0 reverted;
      • then the fixes one at a time: poll during rollbacks, a larger SO_RCVBUF, smoothed sends.
    • Case: 4 peers, GGPO_NETWORK_DELAY=50 (about 100 ms RTT), delay 2 (TEST_GGPO_DELAY=2, the same for every build), with and without relay. With relay: one peer forwards for two others, and only that peer is loaded.
      • The relay case gets the OSD loss on the two other peers, and the relay peer's longest read gap.
    • Order: interleaved, against 1.9.6. One table: build, OSD loss, rolled-back frames, longest read gap.
    • Already measured (2 peers, report above):
      • the OSD figure starts at about 10 on every build since 1.9.3: subtract it;
      • with rollbacks the longest read gap goes from about 3 to 9.6 ms;
      • nothing was lost at 2 peers.
      • So a rise at 4 peers would come from relay forwarding, or from bunched sends meeting the network delay simulation. GGPO's simulated delay keeps packets in order, so on the rig bunching cannot cause a reorder.
    • Field data: I have no P2PMatchingReport access, and the report has no loss field. "Relayed matches on 1.10.1 vs 1.9.6" needs the data from you, or a loss field added to the report.

    Status: continue

  11. inada-s-ai commented on Oct 23, 2026

    @inada-s-ai

    4 peers, ~100 ms RTT, delay 2, with and without relay: 1.9.6 vs main (windows-mini)

    Short answer: on the rig, no build loses a packet. 1.9.6 and main show the same OSD ↓ figure: only the 10–13 phantom losses at session start. The suspects that act on the receiving socket (poll during rollbacks, a bigger SO_RCVBUF) have nothing to fix here. The longest gap between socket reads is ≤ 20 ms on both builds, and main has 3–4× fewer gaps ≥ 8 ms than 1.9.6. The bunched-send suspect is the wrong way round. 1.9.6 sends unevenly (23 % of input sends 5–10 ms apart, 32 % 20–34 ms apart). Main sends evenly (98.5 % 14–20 ms apart). Reverting 743c39edf changes nothing there.

    Setup

    • GGPO_NETWORK_DELAY=50 on every peer (about 100 ms RTT), TEST_GGPO_DELAY=2, TR off, vsync, DX11, 4 windowed peers, rand_input, 90 s runs, order interleaved.
    • Relay: TEST_RELAY=single. p1 reaches p4 through p2, and p2 receives about 2450 datagrams per 10 s instead of 1830.
    • Builds: 1.9.6 = tag + trace. main = 8859c0b + trace (1.10.1 + perf trace only; 15 commits, nothing in GGPO or pacing). rev743 = main + trace + 743c39edf reverted by hand (relative limiter schedule).
    • The trace (GGPO_TEST_LOG=1) logs each loss event with the recv_packet_loss total, out-of-order drops, the read gap per 10 s window, and a histogram of the intervals between input sends. Diff: gdxsv-reveng tools/rollback_budget/nettrace.diff. Runner: run4.py, sendhist.py (gdxsv-reveng 292ff94).

    Results (per run, all 4 peers)

    run build relay OSD ↓ per queue (min–max) oop rolled-back frames longest read gap (ms) reads ≥ 8 ms apart
    a196 1.9.6 none 10–12 0 9237 16.8 2696
    aM main none 10–12 0 7411 18.4 476
    b196 1.9.6 none 10–12 0 9091 16.8 2564
    bM main none 10–12 0 8113 15.6 881
    r196a 1.9.6 single 10–12 0 9273 16.4 2645
    rMa main single 10–12 0 7780 14.6 791
    r196b 1.9.6 single 10–12 0 9187 17.8 2643
    rMb main single 10–13 0 7578 14.0 558
    s196a 1.9.6 single 10–12 0 9298 18.3 2546
    sMa main single 10–13 0 7738 16.8 707
    sRa rev743 single 10–12 0 7345 80.6 (one, on p4; 68.8 on p2) 250
    s196b 1.9.6 single 10–12 0 9263 20.1 2620
    sMb main single 10–12 0 7452 16.4 634
    • The OSD figure is set at session start (see the earlier report), and no loss event came after it on any run. Datagrams per 10 s were steady on every peer (1.9.6: 1820–1840, main: 1850–1860).
    • With delay fixed at 2, 1.9.6 rolls back more frames than main (about 9200 vs 7600 per run, 4 peers together).

    Interval between input sends (all peers and queues, after the first 600 sends of each queue)

    run < 5 ms 5–10 10–14 14–20 20–34 ≥ 34
    s196a 0.1 % 23.1 % 9.8 % 34.4 % 32.3 % 0.3 %
    s196b 0.1 % 23.5 % 9.2 % 34.5 % 32.3 % 0.4 %
    sMa 0.0 % 0.1 % 0.6 % 98.4 % 0.8 % 0.1 %
    sMb 0.0 % 0.1 % 0.6 % 98.6 % 0.8 % 0.1 %
    sRa (rev743) 0.0 % 0.0 % 0.3 % 99.1 % 0.5 % 0.1 %
    • So the even sends on main do not come from the limiter schedule (743c39edf). The likely source is 6acf2c8d0 (input before the advance), but that is not tested.

    What this rules out, and what is left

    • Ruled out on the rig (loopback, 4 peers, ±relay): socket overflow; read gaps from rollbacks (≤ 20 ms on both builds, ~4 datagrams queued against a 16 KB buffer); bunched sends on 1.10.x.
    • Branches stopped as having no effect here: poll during rollbacks, a larger SO_RCVBUF, smoothed sends, the 743c39edf revert. b81dd7f15 (delay budget) only changes the chosen delay, and this case fixes it at 2, so it was not run.
    • Left (hypothesis): loss on the real path. Loopback never drops or reorders, and the GGPO_NETWORK_DELAY queue keeps packets in order, so this rig cannot show it. Two ways forward:
      • A. Fix the counter (skipped - 1, no gap counted at the first message after sync, late packets counted apart). Then field loss numbers mean what they say and can be compared across versions. Small change; I can open it as a draft PR next run.
      • B. A rig drop/reorder knob (GGPO_DROP_PERCENT, a short in-order jitter) to see whether 1.10.x needs more retransmits, or rolls back deeper, for the same real loss.
    • Field data is still the missing piece: the OSD figure from a 1.9.6 and a 1.10.1 player on the same line.

    Where

    • windows-mini only: 4 local peers, loopback, one 60 Hz monitor. Not run: a real network, Wi-Fi, a relay server, other machines.
  12. inada-s-ai commented on Oct 23, 2026

    @inada-s-ai

    Handover

    • Done: 4 peers, ~100 ms RTT, delay 2, ±relay, 1.9.6 vs main vs main with 743c39edf reverted, 13 interleaved runs (report above). No real loss on any build. Read gaps and send intervals are not worse on 1.10.x; 1.9.6 is the one that sends unevenly.
    • Stopped (no effect on the rig): poll during rollbacks, SO_RCVBUF, smoothed sends, the 743c39edf revert.
    • Next: (1) draft PR for counter fix A, with a functional test if GGPO_OOP_PERCENT can show the reorder count; (2) a scratch drop knob (B): same real loss rate on 1.9.6 and main, then compare rollback depth and retransmits; (3) 6acf2c8d0 revert, only if the send-interval difference matters.
    • Tools: gdxsv-reveng tools/rollback_budget/run4.py, sendhist.py, nettrace.diff (292ff94).

    Status: continue

  13. inada-s commented on Oct 23, 2026

    @inada-s
    OwnerAuthor

    @inada-s-ai Instruction from @inada-s's monitor, on #573 (comment):

    • Skip A (counter fix) for now. @inada-s said reordering and the counter are not the problem now. The field figure rose against 1.9.6 with the same counter.
    • Do B next. Loopback cannot lose packets, so add a scratch drop/jitter knob and give 1.9.6 and main the same real loss: ping ~100, delay 2, ±relay. Compare:
      • the OSD loss;
      • rollback depth;
      • how long a lost input takes to be recovered (resend after the next ack);
      • whether one lost packet leads to more follow-on loss or stalls on main.
    • Also check whether packet size or packets per second differ between 1.9.6 and main on that path: input bits per packet, and acks. More bytes per datagram on a lossy line means more loss.
    • Tools: run4.py, sendhist.py and nettrace.diff are again in gdxsv-reveng. Move them to flycast gdxsv_tests/ if they will be reused, else drop them.

    Runner: windows-mini


    Generated by Claude Code

  14. inada-s-ai commented on Oct 23, 2026

    @inada-s-ai

    B: same real loss on 1.9.6 and main: 4 peers, ~100 ms RTT, delay 2, ±relay (windows-mini)

    Answers #573 (comment).

    Short answer: with the same real loss, 1.9.6 and main show the same OSD loss for the same drops (about 2.15× the dropped datagrams on both builds). A lost input is recovered just as fast on both: 87–89 % within 20 ms, by the next packet. One drop does not lead to more loss or stalls on main. Packet size is the same: 43.5–43.7 B per datagram on both. Main sends about 1.5 % more datagrams. So, on an equally lossy line, main does not show a higher loss figure than 1.9.6. Main does timesync 2–5× more than 1.9.6, with or without loss. That matches field pattern 1. Reverting 743c39edf does not remove it. Reverting 6acf2c8d0 leaves it at 6–43 against 6–14 on 1.9.6, which is not conclusive.

    Setup

    • Scratch knob GGPO_DROP_PERCENT=2 drops 2 % of the datagrams each peer receives. Drops come before relay forwarding, so a relayed packet can be lost on either hop. The same diff is applied to both builds.
    • It also logs the time from a dropped input to the next input with the same magic (recovery), plus total_timesync and input_block_count every 600 frames (the P2PMatchingReport fields).
    • Same rig as before: GGPO_NETWORK_DELAY=50 on all peers, TEST_GGPO_DELAY=2, TR off, vsync, DX11, 4 windowed peers, 90 s, builds interleaved. Sums are over all 4 peers.
    • Builds: 1.9.6 = tag + trace + knob. main = 8859c0b + trace + knob.

    2 % drop

    run build relay OSD loss dropped loss/drop rb frames rollbacks ≥3 deep recovered < 20 ms 20–34 ms ≥ 34 ms timesync blk0/1/2
    n196a 1.9.6 none 2533 1184 2.14 9031 137 1027 78 11 24 2/0/3
    nMa main none 2484 1140 2.18 7577 152 1008 63 2 35 1/1/2
    n196b 1.9.6 none 2366 1108 2.14 8820 149 951 71 9 20 1/0/3
    nMb main none 2518 1173 2.15 7362 162 1039 54 4 39 0/1/2
    sMa main single 2709 1261 2.15 7886 269 1090 98 4 112 65/0/3
    s196a 1.9.6 single 2487 1164 2.14 9081 94 992 102 6 18 0/0/3
    sMb main single 2693 1272 2.12 7547 163 1112 92 3 48 0/0/3
    s196b 1.9.6 single 2495 1153 2.16 8844 103 957 116 13 14 0/1/2
    • OSD loss / drops is about 2.15 on both builds. Two things inflate it: each gap counts skipped rather than skipped - 1, and the 10–13 phantom losses at session start.
    • Relay: main had about 8 % more drops (1261 and 1272 against 1164 and 1153), and its OSD loss is higher by the same 8 %. Main's datagram rate is only about 1 % higher, so this may be noise over 2 runs each. Hypothesis, not checked.
    • Rollbacks: main rolls back fewer frames in total, but has somewhat more rollbacks of depth 3 or more (relay: 269 and 163 against 94 and 103).
    • Packets: 43.5–43.7 B per datagram on both builds, with and without loss. Datagrams per peer per 10 s at 2 % drop: main 1813–1816, 1.9.6 1779–1788 (no relay).

    Timesync without loss (0 % drop, relay single)

    build runs timesync (4 peers) rb frames
    1.9.6 z196a, b, c 6, 14, 12 9363, 9271, 9131
    main zMa, b, c 57, 32, 26 7786, 7244, 7636
    main, 743c39edf reverted zRa, b 36, 41 7437, 7656
    main, 6acf2c8d0 reverted (input after the advance, MaxFrameLatency 0) zOa, zOb, zIa–d* 43, 37, 38, 6, 45, 31 8344–9228

    * zIa–d were meant to turn the restored RollbackInputBeforeAdvance back on. The --config override did not reach emu.cfg (it still had no), so all six runs are the same build in the same mode.

    • Main timesyncs more than 1.9.6 even with no loss, so loss does not cause it. The limiter revert does not remove it. With the frame-order revert, 1.9.6 rolls back about as many frames as before, but timesync stays mostly in main's range. Neither suspect is confirmed.

    What this says

    • On an equally lossy path, main does not turn the loss into a higher OSD figure, slower recovery, follow-on loss or larger packets. If the field loss figure is higher than on 1.9.6, this rig does not show why. Field lines may differ between the samples (hypothesis).
    • Main does timesync more than 1.9.6 on the rig, like field pattern 1. The cause is not 743c39edf, and 6acf2c8d0 is not shown. Next: bisect 1.9.6..main on the 0 % timesync count. A run takes 95 s and the count varies run to run, so use ≥3 runs per build.

    Where

    • windows-mini only: 4 local peers, loopback with simulated drops, one 60 Hz monitor. Not run: a real lossy network, Wi-Fi, bursty loss, a relay server.
    • Scratch diffs and runner: G:/ai/reveng/s654 on windows-mini (nettrace3.diff, rev6acf.diff, run4.py, table.py). Not committed.
  15. inada-s-ai commented on Oct 23, 2026

    @inada-s-ai

    Handover

    • Done (1.10.1: reports of heavy lag; check the rollback time budget with TR off + vsync on #573 (comment)): B from 1.10.1: reports of heavy lag; check the rollback time budget with TR off + vsync on #573 (comment). Same 2 % real drop on 1.9.6 and main, ±relay, 25 runs. Same OSD loss per drop (2.15×), same recovery (one send interval), same packet size (43.6 B), no follow-on loss on main. Main timesyncs 2–5× more than 1.9.6, also with 0 % loss.
    • Stopped: the loss path (no difference between builds on the rig). The 743c39edf revert has no effect on timesync.
    • Not done: the 6acf2c8d0 revert with RollbackInputBeforeAdvance=yes. The config:gdxsv.RollbackInputBeforeAdvance=yes override passed through rbk_lib.run_match did not reach emu.cfg. Next run: find out why, or flip the default in the build.
    • Next: bisect gdxsv-1.9.6..8859c0b26 on the timesync count at 0 % drop, ≥3 runs per build, with the 1.9.6 control interleaved. Scratch diffs and runner are on windows-mini in G:/ai/reveng/s654 (nettrace3.diff applies to both builds; rev6acf.diff; run4.py <exe> <tag> 50 2 single <drop%>; table.py).
    • Tools: run4/sendhist/nettrace dropped from gdxsv-reveng (a6c555f). They are local scratch, not reused as is.

    Status: continue

  16. 24 remaining items

  17. inada-s commented on Oct 24, 2026

    @inada-s
    OwnerAuthor

    @inada-s-ai Instruction from @inada-s, on the choices in #573 (comment):

    • (c) is dropped. Rollback tuning is done. The 4 ms per re-run frame is inflated: 4 instances share 4 cores on an iGPU. Do not work on re-run cost or a depth-aware delay.
    • (b) first: why 1.10 timesyncs about 10× more than 1.9.6 (23–48 vs 2–4 per run, same delay and RTT, with or without vsync).
    • (a) in parallel, small: in gdxsv: rollback, Present, input and limiter timing stats in P2PMatchingReport #575, redefine budget_exhausted_* as the real slack. That is P − (cycle − Present block − limiter sleep), as in the report. Keep the cost rules (fixed histograms, no allocation on hot paths).

    (b) How to investigate

    Find the mechanism first; don't bisect yet.

    • On 1.9.6 and on 1.10 (same rig, quiet box, load checked before each run, interleaved), log at each timesync recommendation:
      • the averaged local and remote frame advantage (TimeSync::recommend_frame_wait_duration);
      • the per-frame _local_frame_advantage samples that went into it;
      • the frame and the sleep frames.
    • Also log a light per-frame series on each peer, no allocation: frame number, wall time of nextFrame, the local frame advantage, last_received_input.frame per remote. That shows how the advantage moves.
    • Compare the two versions:
      • Is the advantage noisier on 1.10? Is it biased one way? Does it swing with the limiter's late/short pattern (743c39edf) or with input-before-advance (6acf2c8d0; the input is sent before the advance, and SetLocalFrameNumber uses delay + 1)?
      • Does one peer trigger the holds, or all of them?
    • Known so far, for context:
      • reverting 743c39edf halved it at 302bec0b9, and a second step came later (part 3 above);
      • with all peers on the same version, the 1-frame bias from delay + 1 cancels, so it should not be the cause by itself. Confirm or refute this with the logs.
    • Then propose a fix and measure it the same way: timesync count, missed vblanks and rollback frames, against 1.9.6.
    • Ask @inada-s before any bisect.

    Runner: windows-mini


    Generated by Claude Code

  18. inada-s-ai commented on Oct 24, 2026

    @inada-s-ai

    Handover (windows-mini)

    PR 574 (SIO_UDP_CONNRESET): done, see #574 (comment). C1: 62–67 10054 lines per remaining peer before, 0 after; default suite all PASS.

    (a) budget = real slack, PR 575: code written, built, not verified, not pushed.

    • rollback_budget itself becomes the slack (proto says budget_exhausted_frames = frames with rollback_budget <= 0, so one definition): per limiter cycle (wake to wake, from the first wake after the first input) period − (cycle − Present blocking on the limiter's thread − limiter sleep). Present blocking is counted only with TR off (TR on: the UI thread presents; same as the s664 analysis). No allocation; two time points and an int64 more.
    • Proto comment updated in P2PMatchingReport: per-frame rollback time and p50 gdxsv#439 (e5d6c06; comment only, pb.go comment line regenerated with protoc 3.13, go build ok). flycast gdxsv.pb.* carry no comments: no regen.
    • Diff: G:/ai/reveng/s666r/a575.diff (apply on ai/net-report c166b49). Builds: s666r/fly575N.exe (clean), s666r/fly575D.exe (+ report dump at wake 3000, present_b / sleep_b perf-trace events).
    • Next: battle.py --exe s666r/fly575D.exe --cells 30_170_tr0_vs1 (and tr1), then python s666r/slack.py <out>/<cell>_1/p1 (and p2): report vs CSV slack must match; then commit + push to ai/net-report, update the PR body.

    (b) timesync 10×: first data, mechanism hypothesis (probe s666r/tsprobe.diff on GGPO lib, same on both builds; ts196.exe = 1.9.6 + nettrace3 + probe, ts110.exe = gdxsv-master 8859c0b + same; rig s666r/run4t.py, tsbatch.sh, analysis ts.py out/<run>).

    • 3 interleaved runs each (4 peers, TR off + vsync, delay 2, 50 ms send delay, load 1–8 % before each, 0–1 Over slept on p1), timesync events per peer:
    run 1.9.6 1.10
    1 2 / 0 / 2 / 2 11 / 10 / 9 / 8
    2 3 / 0 / 3 / 1 10 / 12 / 11 / 19
    3 2 / 3 / 4 / 5 8 / 8 / 5 / 8
    • 1.9.6 run 1: almost all at frames < 150 (start-up); 1.10: all through the match.
    • Per-remote _local_frame_advantage (the samples TimeSync averages), 12 pairs × 3 runs: 1.9.6 mean +0.08…+0.49, sd 0.55–0.84. 1.10 mean +0.03…−1.10, sd 0.75–1.54. Both peers of a pair shift by about −0.8 frame (symmetric, so it cancels as expected: confirmed), and the spread nearly doubles.
    • A recommendation needs radv − adv ≥ 3 (round to ≥ 2 frames). The trigger cases are mostly l = −2 ×10, r = +1 ×10: steady one-frame offsets on both sides, not spikes. With a doubled spread of the difference, ≥ 3 is hit far more often → hypothesis: the 10× comes from the wider advantage distribution, not from the bias.
    • Big ones (5–6 frames, 1.10 run 1 at frames ~650 and ~2550): p3/p4 fell 5–7 frames behind p1/p2 (adv +7 clusters on p3/p4) at the same time on both; cause not looked at yet.
    • Not yet checked: whether the ±1 steady offsets follow the limiter late/short pattern (743c39edf) or input-before-advance (6acf2c8d0). The F lines include re-run frames (they come from IncrementFrame), so use S-line times for frame pacing.
    • Next: plot adv vs F/S times around triggers; correlate with wake slack (perf.csv on 1.10) to test the limiter link; then propose a fix.

    Scratch: G:/ai/reveng/s666r/ on windows-mini.

    Status: continue

  19. inada-s commented on Oct 24, 2026

    @inada-s
    OwnerAuthor

    @inada-s-ai Instruction from @inada-s, add to the current run, next to the p2 present_wait question (#575 (comment)):

    Does fullscreen change the Present wait?

    • TR off + vsync. Compare three display modes:
      • windowed;
      • borderless fullscreen;
      • exclusive fullscreen, if flycast's DX11 path supports it; else say so.
    • Use the PR 575 fields, now merged (present_wait, rollback_room, over_period), plus PresentMon for:
      • the present mode (Composed: Flip / Hardware: Independent Flip / Hardware Legacy Flip);
      • the Present call → display latency.
    • One peer in the mode under test is enough. Keep the others as they are, and alternate the modes, ≥2 runs each. Check the box is quiet before each run.
    • Report one table. If the p2 case comes from the window being DWM-composed, this should show it.

    Runner: windows-mini


    Generated by Claude Code

  20. inada-s-ai commented on Oct 24, 2026

    @inada-s-ai

    Handover (b): where the timesync spread comes from (windows-mini)

    About #573 (comment) (fullscreen vs Present wait): not run yet. It is the first Next item for the next session; this session's context is at its limit.

    • What we know already: the p2 case is not DWM composition. PresentMon on both peers shows Hardware Composed: Independent Flip for each (sync interval 1, no tearing).
    • The cause is the display rate. This box clones two HDMI targets at 60.000 and 59.940 Hz, and p2 flips on the 59.94 Hz one, which is also the limiter's rate. Details: gdxsv: rollback, Present, input and limiter timing stats in P2PMatchingReport #575 (comment).
    • Prediction for the fullscreen runs: the present mode changes, but present_wait follows the display target's rate, not the mode.

    Continues #573 (comment). Same rig and probe (s666r/ts196.exe, ts110.exe, run4t.py). New scripts are in G:/ai/reveng/s668/.

    1. The advantage spread is real peer desync, not measurement noise. adv = (last_recv − frame) + rtt·60/1000 (comp.py; sd in frames, per-pair mean removed):

    sd(adv) sd(last_recv − frame) sd(rtt term)
    1.9.6 vsync, 3 runs 0.54–0.62 0.54–0.62 0.14
    1.10 vsync, 3 runs 0.96–1.20 0.99–1.23 0.12–0.13
    • The receive side is not it (age.py): the time since the remote sent the last received input is p50 47–49 ms on both versions; sd 6 ms on 1.10, 7.5–12.5 ms on 1.9.6.
    • Frame-level desync (dsync.py: D(f) = time peer j sends frame f − time peer i sends it, per pair, mean removed; ms):
    runs timesyncs per peer sd D slow (1 s medians) fast
    1.9.6 vsync 3 0–5 6.8–10.1 3.1–6.2 6.2–9.6
    1.10 vsync 3 5–19 17.5–25.1 14.6–24.0 8.4–13.2
    1.9.6 vsync off 2 0–2 6.5–7.0 3.4–4.2 5.8
    1.10 vsync off 2 3–13 9.3–11.7 9.0–12.0 4.4–5.8
    • The vsync-off runs are new: out/n{110,196}_{1,2}, interleaved, load 1–6 %, Over slept 0–1 on p1. The vsync-off setting took effect: frame dt p50 is 9.6–16 ms, with no 16.7 ms quantization.
    • On 1.10, the slow component dominates. Peers' frame schedules drift 1–3 frames apart over seconds; this happens with vsync off too, so part of it is not vsync.

    2. Link to vsync / input order (verified mechanism, partial share).

    • 1.10 TR off order: wake → emulate → Present (blocks with vsync) → addLocalInput (SendInput, where adv is sampled) → advance/rollback. The SendInput time after the wake therefore includes the Present wait. It varies 5–16 ms per peer (send.py), and it switches with the Present state (see gdxsv: rollback, Present, input and limiter timing stats in P2PMatchingReport #575 (comment)). p2 in v110_1 drifts 16 µs per frame (locked to the 60.00 Hz display); p3 and p4 sit at fixed levels (59.94 Hz).
    • Per-second adv vs (off_i − off_j)/P, 3 runs, n = 2532: slope +1.06 (+1 predicted), r = 0.41 (reg.py).
    • Vblank-gated peers send at the same vblank, so the offsets between peers become exact multiples of a period: 0.0 / ±16.7 / +33.4 ms (dser.py out v110_2).
    • Vsync accounts for about half of the slow desync (sd 9–12 → 15–24 ms).

    3. The rest (vsync off: 1.10 slow sd 9–12 ms vs 1.9.6 3–4): hypothesis = the limiter change 743c39edf.

    • 1.9.6 sleeps period − elapsed (relative, ~59.0 fps). 1.10 keeps an absolute schedule and skips whole periods after a stall. Not tested.
    • Simultaneous skips on all 4 peers (s8–s29 in one second, late.py out v110_1) mark the 5–7 frame events.

    Fix proposal (not built):

    • A. Sample and send the local input at the top of the frame, right after the limiter wake, before emulation and Present. This removes the Present wait, and with vsync off the emulation-time jitter, from the send time. Removes the vsync part (prediction: 1.10 vsync slow sd → ≈ vsync-off level, timesyncs about halved).
    • B. If the A/B in Next confirms the limiter: on a ≥ 1 period stall, keep the absolute schedule but let GGPO's frame advantage, not a period skip, absorb it (or revert to relative for rollback battles).

    Next:

    • First: 1.10.1: reports of heavy lag; check the rollback time budget with TR off + vsync on #573 (comment). Run battle.py cell 30_170_tr0_vs1 (PR 575 debug build s667f/flyD.exe dumps frame_timing), with p1 windowed / borderless / exclusive fullscreen (check the DX11 path first), ≥ 2 runs each, alternated. Load < 5 % before each run. Capture with PresentMon unfiltered (--process_name wrote nothing; pmp.py splits by pid). Report one table: present mode, present_wait, rollback_room, over_period, and Present → display latency. Note which display target each peer locks to (phase.py with VBL_MS=16.6674 vs 16.68335).
    • Build 1.10 + probe with 743c39edf reverted (fly540 tree, incremental). Run 2× vsync off vs ts110.exe, interleaved. Prediction if the limiter is the cause: slow sd 9–12 → 3–4 ms, timesyncs 3–13 → 0–2 per peer.
    • Then a prototype of A (input at frame top, TR off) on vsync. Measure slow sd and timesyncs against v110_*.

    Status: continue

  21. inada-s commented on Oct 24, 2026

    @inada-s
    OwnerAuthor

    @inada-s-ai Instruction from @inada-s, for any fix of the Present wait (no fix yet, this is about scope):

    There are Mac users too, so a DX11-only fix is not enough.

    • Any fix proposal must cover every renderer players use:
      • DX11, OpenGL and Vulkan on Windows;
      • OpenGL and Vulkan (MoltenVK) on macOS;
      • Linux and Android if they share the code.
    • Prefer a fix at the gdxsv frame-loop level that does not depend on the graphics API. For example, keep the blocking Present off the emulation thread (a TR-on-like split, or a present thread), or pace so that Present never waits. Use per-API mechanisms only as an extra: a DXGI waitable swap chain / DO_NOT_WAIT, Vulkan MAILBOX / present wait, CAMetalLayer drawable count / displaySyncEnabled, GL swap interval.
    • For the current measurement (p2 present_wait, windowed vs fullscreen), also run the TR off + vsync case on OpenGL and Vulkan on windows-mini. Then we know whether the wait is DX11-specific.
    • macOS cannot run on windows-mini. Say what can and cannot be checked there; do not guess macOS behavior.

    Runner: windows-mini


    Generated by Claude Code

  22. inada-s commented on Oct 24, 2026

    @inada-s
    OwnerAuthor

    @inada-s-ai Instruction from @inada-s, clarifying #573 (comment):

    No Present-wait fix is requested yet. Do not prototype or open a PR for one.

    For now, only report the investigation:

    • why the p2 present_wait was long;
    • windowed vs borderless vs exclusive fullscreen;
    • DX11 vs OpenGL vs Vulkan.

    @inada-s will decide on a fix after seeing the results. The renderer and Mac scope in that comment only applies when a fix is asked for.

    Runner: windows-mini


    Generated by Claude Code

  23. inada-s-ai commented on Oct 24, 2026

    @inada-s-ai

    Results for #573 (comment), scoped by #573 (comment): investigation only, no fix built (windows-mini).

    Setup: battle.py cell 30_170_tr0_vs1 (TR off, vsync on, 2 peers), PR 575 debug build s667f/flyD.exe. Each run's NETREPORT frame_timing covers 2400 frames. PresentMon captured all processes and was split by peer pid; the first 20 % of each run is skipped. 8 runs, alternated: gl,win,bfs,vk,win,gl,vk,bfs. CPU load 1–9 % before each run, defrag task idle, Over slept 0 in every peer log. Box: Ryzen 3400GE / Radeon Vega 11 iGPU, two HDMI targets cloned at 60.000 and 59.940 Hz. The display gap mode (16.67 / 16.68 ms) shows which target a peer flips on.

    10BC8
    run peer API window present mode in Present (ms) Present→display p50 / p90 (ms) gap present_wait p50 / p99 (µs) rollback_room p5 / p50 (µs) over_period /2400
    win_1 p1 DX11 windowed HW Composed: Independent Flip 0.07 13.9 / 20.1 16.67 79 / 14464 4544 / 14464 29
    win_1 p2 DX11 windowed HW Composed: Independent Flip 14.36 30.8 / 31.3 16.68 14464 / 14976 -138 / 47 862
    win_2 p1 DX11 windowed HW Composed: Independent Flip 1.46 18.0 / 30.4 16.67 4800 / 14976 -19 / 9600 214
    win_2 p2 DX11 windowed HW Composed: Independent Flip 14.32 30.8 / 31.1 16.68 14464 / 14976 -170 / 14 1105
    bfs_1 p1 DX11 windowed (covered) Composed: Flip 0.08 32.6 / 33.2 16.68 79 / 11904 4928 / 14464 12
    bfs_1 p2 DX11 borderless FS HW Composed: Independent Flip 2.78 19.3 / 30.2 16.67 3488 / 14464 -25 / 11136 199
    bfs_2 p1 DX11 windowed (covered) Composed: Flip 0.18 33.5 / 34.1 16.68202 / 15232 -16 / 14208 172
    bfs_2 p2 DX11 borderless FS HW Composed: Independent Flip 0.12 16.7 / 26.8 16.67 1744 / 14720 75 / 12928 85
    gl_1 p1 GL windowed Composed: Copy with GPU GDI 0.00 29.1 / 29.9 16.67 12416 / 14720 -276 / 1232 653
    gl_1 p2 GL windowed Composed: Copy with GPU GDI 0.00 29.1 / 29.9 16.67 12416 / 14720 -238 / 1072 607
    gl_2 p1 GL windowed Composed: Copy with GPU GDI 0.00 29.1 / 29.9 16.68 11648 / 14720 -238 / 2208 563
    gl_2 p2 GL windowed Composed: Copy with GPU GDI 0.00 29.1 / 29.9 16.68 12672 / 14464 -254 / 776 632
    vk_1 p1 VK windowed Composed: Copy with GPU GDI 0.00 25.9 / 30.1 16.68 77 / 113 13440 / 13952 8
    vk_1 p2 VK windowed Composed: Copy with GPU GDI 0.00 26.8 / 30.2 16.68 71 / 107 13696 / 14208 2
    vk_2 p1 VK windowed Composed: Copy with GPU GDI 0.00 28.4 / 30.2 16.67 75 / 340 13440 / 13696 2
    vk_2 p2 VK windowed Composed: Copy with GPU GDI 0.00 28.4 / 30.2 16.67 73 / 105 13696 / 14208 3

    work p50 is similar everywhere: DX11 1.9–2.3 ms, VK 2.5–2.8 ms, GL 2.8–3.0 ms.

    1. Why the p2 present_wait was long (DX11). The cause was found in #575 (comment) and both runs here reproduce it.

    • p2's swap chain flips on the 59.94 Hz target (gap 16.68 ms), the same rate as the limiter.
    • With MaxFrameLatency 1, the frame queued at start-up never drains. Each Present then waits 14.4 ms: present_wait p50 14464 µs, PresentMon in-Present 14.3 ms.
    • Rollback starts after that wait, so rollback_room p50 is only 14–47 µs and 36–46 % of frames overrun.
    • p1 flips on the 60.00 Hz target. Its queue drains as the 59.94 Hz limiter falls behind, so it is mostly fine; win_2 p1 had not drained yet at p50.
    • This is not DWM composition: both peers use Independent Flip.

    2. Windowed vs borderless vs exclusive fullscreen (DX11).

    • Borderless fullscreen (window:fullscreen=yes, i.e. SDL FULLSCREEN_DESKTOP) is still Independent Flip, the same mode as windowed.
    • The wait dropped (p50 1.7–3.5 ms), but only because the fullscreen peer flipped on the 60.00 Hz target in both runs. Its queue then drains, as p1's does when windowed. over_period 85–199 is the same range as windowed p1 (29–214). So the present mode is not what changes the wait; the target's refresh rate is. My earlier prediction holds.
    • I did not separate why the fullscreen window took the 60.00 Hz target and the windowed p2 the 59.94 Hz one. Window position on a cloned source is a hypothesis, not tested. A user with a single 59.94 Hz display should be in the p2 case whatever the window mode (hypothesis; this box has no single-display setup).
    • The covered windowed peer (p1 under the fullscreen p2) drops to Composed: Flip. Its Present does not block (in-Present 0.1 ms, over_period 12–172). Display latency goes up to 33 ms, though: DWM adds about one frame.
    • Exclusive fullscreen: not supported by flycast's DX11 path. core/sdl/sdl.cpp only ever uses SDL_WINDOW_FULLSCREEN_DESKTOP (except GLES builds), and core/rend/dx11/dx11context.cpp never calls SetFullscreenState. Not run.

    3. DX11 vs OpenGL vs Vulkan (both peers on that API, windowed).

    • The wait is not DX11-specific. OpenGL blocks on both peers, on either target, in every run: present_wait p50 11.6–12.7 ms, rollback_room p50 0.8–2.2 ms, over_period 563–653 (23–27 %). PresentMon's in-Present is 0, so the block is inside the GL swap call, outside the present that PresentMon times. The cause of the GL block is not separated (driver render-ahead throttle, hypothesis).
    • Vulkan does not block on this box: present_wait p50 71–77 µs, p99 ≤ 340 µs, rollback_room p5 13.4 ms, over_period 2–8.
      • The code picks FIFO, because vulkan_context.cpp skips MAILBOX on AMD.
      • The AMD driver presents windowed through Composed: Copy with GPU GDI, so the image is released at once. The time is not hidden elsewhere either: work p50 is only about 0.4 ms above DX11.
      • Its display latency is 26–28 ms p50, about one frame more than a drained DX11 Independent Flip peer (14–18 ms).
    • GL and VK both run composed (Copy with GPU GDI) here, so neither reached Independent Flip. A discrete NVIDIA/Intel driver may present differently; not run.

    What windows-mini can and cannot check:

    • Can: DX11, GL and VK on one AMD iGPU and one cloned 60.00 / 59.94 Hz display pair; windowed and borderless; the FrameTiming fields; PresentMon.
    • Cannot: exclusive fullscreen (no code path); a single 59.94 Hz or 60 Hz display (the clone pair is fixed); NVIDIA or Intel GPUs; Linux; Android; macOS (Metal / MoltenVK). I make no claim about macOS behavior.

    Data and scripts: G:/ai/reveng/s669a/ (modes.py runs variants via battle.py, ana.py builds the table, out/<run>/p{1,2}/flycast.log, out/<run>_pm.csv, out/<run>_pids.txt).

    Next:

    Status: waiting

  24. inada-s commented on Oct 24, 2026

    @inada-s
    OwnerAuthor

    @inada-s-ai Instruction from @inada-s, add to the current investigation (the p2 present_wait, fullscreen and renderer comparison). Investigation only, no fix.

    Does the Present wait really take rollback time, or is it elastic slack?

    • With vsync and MaxFrameLatency 1, Present waits until a buffer is free. If the work before it gets longer, the wait should just get shorter, and the frame still makes its vblank. Then a long present_wait is not lost budget. Time is only lost when a vblank is missed.
    • Hypothesis for p2 (unverified): its loop locked onto vsync (60 Hz) instead of the limiter (59.94 Hz). p1 locked onto the limiter. Which state a peer ends in may depend on start-up timing.
    • Check, in a p2-like state (long present_wait) and in a p1-like state:
      • for frames with a rollback, whether present_wait shrinks by about the rollback time;
      • whether the frame still makes its vblank (PresentMon, aligned with the trace), against the same rollback depth in the p1-like state;
      • which pacing state each peer is in (frame period 16.667 vs 16.683 ms), and whether it changes during a match.
    • Also say whether PR 575's over_period / rollback_room count elastic vsync waits as lost time. If they do, note how the definition should change. Don't change it yet.
    • Conclude: in TR off + vsync, does a long Present wait cause missed vblanks (real loss), or not?

    Runner: windows-mini


    Generated by Claude Code

  25. inada-s-ai commented on Oct 24, 2026

    @inada-s-ai

    Answer to #573 (comment). This is investigation only; no code was changed. All of it ran on windows-mini.

    Data: I re-analyzed the 8 runs from #573 (comment) frame by frame. That is cell 30_170_tr0_vs1 with TR off and vsync on, PR 575 debug build. Each peer has perf.csv (QPC events wake, wb/we around Present, load_b, rerun_e, sleep_b) and PresentMon with TimeInQPC. Each trace frame is matched to the PresentMon row nearest its Present start. For DX11 the match is within 4–5 µs (p50). I skip the first 20 % of each match. A miss is a display-change gap of more than 1.5 periods, or a dropped frame. Scripts: G:/ai/reveng/s670/ela.py and drain.py.

    1. DX11 (default renderer): the wait is elastic slack. "Next pw" is the present_wait of the frame after the rollback. "Post" is the work after Present, which includes the rollback.

    run peer state rollback depth (prev frame) n rollback ms next pw p50 ms misses
    win_1 p2 long wait 0 2229 0 14.43 2
    win_1 p2 long wait 3 83 4.9 9.69 0
    win_1 p2 long wait 4 89 6.5 8.37 0
    win_2 p2 long wait 0 2228 0 14.34 1
    win_2 p2 long wait 2 137 4.1 10.28 0
    win_2 p2 long wait 3 45 5.8 8.77 0
    win_1 p1 drained 2–4 232 3.3–6.7 0.07–0.58 2
    win_2 p1 drained 2–4 236 3.4–5.9 0.10–3.3 0
    • Slope of next pw against post: −0.80 and −0.88 on p2 (−1 = fully elastic); +0.05 and −0.01 on p1. On p1 the limiter sleep absorbs the rollback instead: wake slack is about 14 ms.
    • After a depth ≥ 2 rollback, p2 missed 0 of 360 vblanks; p1 missed 2 of 468. The Present-to-Present cycle stays at 16.65–16.69 ms whatever the depth.
    • Baseline misses are 1–3 per 2400 frames on both peers, with or without a rollback. On p1 this fits a 59.94 Hz loop flipping on the 60.00 Hz target: about 2.4 repeats per 40 s are expected.
    • Limit: the deepest rollback here took 7.2 ms (7.8 ms post). Above about 14 ms the wait cannot absorb it; that range was not run.

    2. Pacing state. The frame period does not separate p1 from p2, so the hypothesis needs a correction:

    • Every DX11 peer loops at 16.683 ms (mean wake-to-wake 16683.0 µs). The loop rate is the same on both.
    • What differs is what gates the loop and which display target the peer flips on:
      • p2: vsync-gated. The wake arg is negative (the limiter never sleeps) and the display gap is 16.683 ms, so p2 flips on the 59.94 Hz target. That rate equals the limiter, so the frame queued at start-up never drains.
      • p1: limiter-gated. It sleeps about 14 ms and flips on the 60.00 Hz target (gap 16.667 ms).
    • So p2 did lock onto vsync, but onto the 59.94 Hz display. It did not lock onto 60 Hz.
    • Changes during a match: every peer starts with the queue full (pw 3–15 ms in its first 60 frames; menus run vsync-paced).
      • Peers on the 60.00 Hz target drain in 5.6–22.7 s: win_1/win_2/bfs_1/bfs_2 p1 at 10.2 / 22.7 / 10.3 / 5.6 s, and fullscreen bfs_2 p2 at 18.3 s. They stay drained.
      • Windowed p2 (59.94 Hz) stays at 13.9–14.2 ms in every 5 s window until the match ends (2/2 runs).
    • So on this box the state follows the display target. The start-up phase only sets how long draining takes. That fits 10 of 10 DX11 peers; whether start-up timing can also decide the state is not tested (hypothesis).

    3. OpenGL is different: real loss. GL blocks inside the swap call. Its wait is only partly elastic (slope −0.39 to −0.49), and deep rollbacks miss vblanks:

    run peer depth 0 depth 3 depth 4
    gl_1 p1 36/2151 (1.7 %) 9/58 57/112
    gl_1 p2 40/2215 2/35 27/38
    gl_2 p1 28/2153 10/133 40/49
    gl_2 p2 47/2221 25/110 9/19
    • Caveat: PresentMon does not see the GL swap wait, so for GL and VK the rows match only within about 5 ms (p50). The rise with depth is still clear.
    • Vulkan has no wait (pw 70 µs) and misses no more after a rollback (1/232, 2/181) than at depth 0. Its depth-0 misses (19–35) are composed-path repeats.

    4. PR 575 over_period / rollback_room count the elastic wait as lost time.

    • Both use busy = limiter wake → next limiter call, and busy includes present_wait:
      • over_period = period < busy;
      • rollback_room = period − (busy − rollbackWork).
    • DX11 p2 shows the effect: over_period counted 923 and 1044 frames per 2412 (680 of win_1's 862 in the NETREPORT were at depth 0). Of those, 0 were followed by a missed vblank. rollback_room p50 is 14–47 µs, but the real room is about 14 ms.
    • How the definition should change (not changed):
      • Count lost time on the display side: a Present-to-Present interval ≥ 1.5 periods, split by the depth of the rollback before it. The late_frames_* / dropped_frames counters already measure the interval; they would need the depth split.
      • Room: subtract the Present wait from busy only when it is a vblank wait. Taking it out everywhere would hide GL's loss (section 3), so the Present-interval miss count should be the headline number.
      • over_period stays valid for limiter-gated frames (p1, VK, vsync off).

    Conclusion (TR off + vsync):

    • DX11: a long Present wait does not cause missed vblanks. It is slack that rollback work uses up, and it is verified for rollbacks up to 7.2 ms (360 frames after a rollback on p2, 0 misses, same as the drained p1).
    • OpenGL: real loss. Depth-4 rollbacks miss vblank in 47–83 % of frames in 3 of 4 peers (9/19 in the fourth), against about 2 % at depth 0.
    • Vulkan: no wait, no added misses.
    • Not covered: other GPUs and drivers, single-display setups, macOS, rollbacks longer than 7.2 ms.

    Next:

    Status: waiting

  26. inada-s commented on Oct 24, 2026

    @inada-s
    OwnerAuthor

    @inada-s-ai Instruction from @inada-s: fix the frame-timing fields that shipped in 1.10.2. Open the PR as a draft and keep it a draft until the check below passes; @inada-s decides when it is ready.

    Background: #573 (comment).

    • over_period / rollback_room count the elastic DX11 vsync wait as lost time. On DX11 p2, about 900 frames were flagged "over", and 0 vblanks were really missed.
    • The earlier check only compared values with the trace CSV. It did not check that the numbers mean what they claim. This time the check must be against what is really displayed.

    Change

    Follow section 4 of your report:

    • Headline: real display misses. Count Present-to-Present intervals ≥ 1.5 periods (and dropped frames), split by the depth of the rollback before them. Reuse the late_frames_* / dropped_frames timing where possible.
    • Room: report the time really left for rollback. Do not count a vblank wait that later work can absorb as lost. Do not hide a real loss either: GL blocks in swap and misses vblanks after deep rollbacks. Choose a definition that gives the right answer for DX11 (elastic), GL (real loss), VK and vsync off.
    • Keep over_period only where it is valid (limiter-gated frames), or drop it. Do not reuse old field numbers with a new meaning: mark the shipped fields deprecated, add new numbers in the gdxsv proto (gdxsv PR, with the LBS log and a test), and note in the proto how to read 1.10.2 data.
    • Cost rules as before.

    Check (required before ready)

    • Compare the new fields with PresentMon display changes, frame by frame. Cases:
      • DX11 windowed on the 59.94 Hz target (p2-like);
      • DX11 on 60 Hz;
      • DX11 borderless;
      • GL;
      • VK;
      • TR on;
      • vsync off.
    • For each case, the report must agree with what was really displayed: misses, and misses by depth. Show one table: report vs PresentMon, per case.
    • State the limits (GPUs, macOS, single-display setups).

    Runner: windows-mini


    Generated by Claude Code

  27. inada-s-ai commented on Oct 24, 2026

    @inada-s-ai

    Answer to #573 (comment). Draft PRs: #577 and inada-s/gdxsv#440. The check does not pass yet, so both stay draft.

    Done

    • Proto: the 1.10.2 rollback_room / over_period / over_period_depth_hist are marked deprecated, and the proto says how to read 1.10.2 data. New fields:
      • present_depth_hist, late_present_depth_hist, dropped_depth_hist (42–44);
      • FrameTiming.present_wait_elasticity (10) and rollback_slack (11).
    • LBS logs them, with a test.
    • Client:
      • Each Present interval is split by the deepest rollback since the previous Present.
      • Slack = period − (busy − rollback work − present wait × elasticity). Elasticity = minus the session's slope of a frame's Present wait on the previous frame's rollback work.

    Check (windows-mini, Vega 11, 2 cloned displays; one run per case; cell 30/170 ms; the report is snapshotted at 3000 frames by a one-off debug print, netrep_debug.diff; PM = PresentMon displayed gap > 1.5 periods or dropped; frame level matches events within ±2 frames). Scripts: reveng s671a/ (modes.py, cmp.py, diag.py).

    case peer report misses by depth 0/1/2/3/4 PM misses by depth frame level: matched / report-only / PM-only elasticity ‰ slack p50 µs
    DX11 win, 59.94 Hz target p2 1/0/1/0/0 2/0/1/0/0 2 / 0 / 1 810 12416
    DX11 win, 60 Hz target p1 3/0/0/0/0 4/0/0/0/0 1 / 2 / 3 0 14464
    DX11 borderless p1 3/0/0/0/0 18/0/0/0/0 2 / 1 / 15 40 14464
    DX11 borderless p2 3/0/1/0/0 4/0/1/0/0 2 / 2 / 3 17 14208
    GL p1, p2 no snapshot 5/0/0/0/1, 5/0/2/1/0 — — —
    VK p1 2/0/0/0/0 4/0/1/0/0 1 / 1 / 4 0 13952
    VK p2 4/0/1/0/0 4/0/1/1/0 3 / 2 / 3 0 14208
    TR on p1 2/0/1/0/0 3/0/1/0/0 3 / 0 / 1 0 14976
    TR on p2 2/0/2/0/0 2/0/2/0/0 4 / 0 / 0 0 14720
    vsync off p1 2/0/0/0/0 15/0/0/0/1 2 / 0 / 14 0 14976
    vsync off p2 2/0/2/0/0 10/0/2/0/0 2 / 2 / 10 0 14976
    • Depth attribution is right: report Present counts per depth equal PresentMon's in every case (for example win p2: 2772/1/22/112/81/12 vs 2767/1/22/112/81/12; the 5-row difference is at the window edge).
    • Elasticity is right where measured: DX11 p2 810 ‰ (s670 slope −0.80 to −0.88). It is about 0 on drained or limiter-gated peers, VK, TR on and vsync off. Slack p50 there is 12–15 ms, against 14–47 µs in 1.10.2's rollback_room.
    • Miss counting is wrong where Present does not block (limiter-gated DX11 at 60 Hz, borderless p1, VK, vsync off). A 17–20 ms Present interval lands past a vblank and shows a 33 ms display gap that the ≥ 1.5-period test cannot see: vsync-off p1 catches 2 of 16. The 25–27 ms intervals it does count are partly absorbed by the queue (report-only).
    • PM-only events that no app-side timer can see: win_1 at 46.08 s, a 50–66 ms gap on both peers at once (display or compositor side).
    • GL: the report snapshot needs 3000 limiter frames, and the GL run did not reach that in the match (2976 Presents). It also showed far fewer depth-4 misses than s669a (1 vs 47–83 %). Not explained: different build, and the box load was 21 % at start.

    Next (next run, no decision needed unless @inada-s prefers otherwise)

    • Display-side miss source for DX11: IDXGISwapChain::GetFrameStatistics after Present (refresh count per present: exact repeats, flip model windowed and borderless). GL and VK have no portable equivalent on AMD Windows: there, keep the Present interval and state the limit, or estimate vblank phase from the display period.
    • Re-run the check with ≥ 2 runs per case, GL with a snapshot at end of match (not at 3000 frames), and a frame-by-frame table.

    Decisions taken

    • over_period dropped rather than gated.
    • Kept the ≥ 1.5-period definition of the shipped late_frames_1_5, so that sum(late_present_depth_hist) == late_frames_1_5.
    • Slack uses the running elasticity: 0 before 16 rollback frames, which is conservative.

    Status: continue

  28. inada-s-ai commented on Oct 24, 2026

    @inada-s-ai

    Display misses from DX11 frame statistics: check, round 1 (windows-mini)

    For #573 (comment). Both PRs stay draft: #577 (e3ddcaaaa), inada-s/gdxsv#440 (ee4f4c0).

    Change

    • New field display_miss_depth_hist (46). After each DX11 Present, GetLastPresentCount + GetFrameStatistics give which Present was shown at which vsync. Between two shown Presents, each vsync past one per Present repeated the image. It is counted by the depth bucket of the late Present.
    • display_stats_presents (45) = Presents with valid statistics; display_composed_presents (47) = DWM-composed Presents, left out.
    • The DXGI call is in core/gdxsv/gdxsv_net_report_dxgi_win.cpp, behind a flag-guarded hook in gdxsv_video_hooks.h. LBS logs the 3 fields, with a test.

    Check: cell 30/170, one run per case, probe build = the change + snapshot at 2700 Presents + a trace event per counted miss. PM = PresentMon, repeated vsyncs = round(displayed gap / P) − 1. Window: first input read → snapshot. Event match: report event 0–4 P after the PM miss (the statistics lag 1 Present).

    case peer PresentMode report vsyncs by depth 0/1/2/3 PM vsyncs by depth events matched / report-only / PM-only
    DX11 win p1 (60 Hz) Independent Flip 2/0/0/0 2/0/0/0 2 / 0 / 0
    DX11 win p2 (59.94 Hz) Independent Flip 0/0/2/0 0/0/2/0 1 / 0 / 0
    DX11 borderless p1 (windowed, covered) Composed: Flip 0 7/0/0/0 0 / 0 / 5
    DX11 borderless p2 Independent Flip 2/0/4/0 3/0/4/0 3 / 0 / 0
    TR on p1 Independent Flip 2/0/2/1 2/0/2/1 3 / 0 / 0
    TR on p2 Independent Flip 0 0 0 / 0 / 0
    vsync off p1 Hardware: Independent Flip 17/0/0/2 17/0/0/2 14 / 5 / 5
    vsync off p2 Hardware: Independent Flip 1/0/4/0 10/0/5/0 2 / 0 / 10
    GL p1 / p2 — no DXGI (0) 3/0/0/2/3/1, 3/0/5/2/1 —
    VK p1 / p2 — no DXGI (0) 2/0/1/0/4, 3/0/0 —
    • Verified (DX11 Independent Flip, vsync on, TR off and on): the report equals PresentMon per depth in 5 of 6 peer runs, off by 1 vsync in the 6th. Events match one to one.
    • DWM-composed windows: GetFrameStatistics returns S_OK with all counts 0 (raw probe, R/s672a/raw.py). These Presents now count as composed and are left out; that case shows in the report as display_composed_presents > 0. Not re-run since that change.
    • IDXGISwapChainMedia::GetFrameStatisticsMedia().CompositionMode reads COMPOSED for every Present, Independent Flip included (2698/2699 per peer). It describes the media overlay plane, so it can't detect DWM composition. Dropped.
    • Session start: the first two Presents were 108 vsyncs apart (before the first input). Counting now starts at the first input read. Not re-run since that change.
    • vsync off p2: 10 depth-0 misses that the statistics do not show. Not explained.
    • GL/VK: no display statistics; there the old ≥ 1.5-period late_present_depth_hist stays the only signal. On GL it matched PresentMon's events per depth (p1 3/0/0/2/3/1 = PM). On VK it missed most of them (s671a).
    • Limits: only Windows DX11 flip model (the swap chains are FLIP_SEQUENTIAL); one GPU (Vega 11); 2 cloned displays; macOS/Linux/GL/VK/composed → none. Single-display setups not tested.
    • Scratch: G:/ai/reveng/s672a (cmp2.py, raw.py, probe_build.diff = the round 1 probe).

    Handover

    • Done: above; code pushed, both PRs draft.
    • Next: re-run the check on e3ddcaaaa + a probe (snapshot at 2700 Presents with display_* fields and a dmiss trace event, as in probe_build.diff). m 84AF odes.py <exe> <out> win,bfs,gl,vk,tron,vsoff ×2 (~22 min), then cmp2.py per run. Expect bfs p1 → display_composed_presents ≈ all, misses 0.
    • Next: vsync off p2 PM-only misses (raw stats with raw.py on a vsoff run).
    • Decision: the composed case is left out (counted), not estimated.

    Status: continue

  29. inada-s-ai commented on Oct 24, 2026

    @inada-s-ai

    Check of #578 on windows-mini (not asked for; that PR says "Not run")

    Build: PR head 1a779a9d7 plus a debug print of the report at 2700 Presents and a dmiss trace event (G:/ai/reveng/s674a/snapshot_debug.diff). Run 2 adds a raw DXGI stats trace (snapshot_debug2.diff). I did not push to the PR branch.
    Rig: modes.py (battle.py cell 30_170_tr0_vs1, 2 peers; p1 is on the 60.00 Hz display, p2 on 59.94 Hz), PresentMon, and cmp2.py for display_late_depth_hist against PresentMon repeated vsyncs. Run 1: 6 modes. Run 2: bfs, win, vsoff. No crash or desync, and all battle.py checks are true in all 9.

    case peer report (repeats by depth 0/1/2/3) PresentMon display_refresh_period_ns
    win r1 p1 2 2 16666686
    win r1 p2 0 0/0/4 (at +151 ms) 16683308
    win r2 p1 / p2 1 / 1 1 / 1 (frame-matched) 16666683 / 16683314
    bfs r1 p2 1/0/0/1 1/0/2/1 (2 at +118 ms) 16666678
    bfs r2 p2 2 2/0/4 (4 at +154 ms) 16672847
    bfs r1 / r2 p1 0 5 / 3/0/0/1 0 (composed in r2: raw stats all 0)
    TR on r1 p2 1 2/0/3 (3 at +157 ms) 16683248
    vsync off r2 p1 / p2 13/0/3/1 / 1 24/0/2/1 / 34/0/5/0/2 16666678 / 16683302
    GL, VK all 0 (no stats) 1–4 0
    • Verified: display_refresh_period_ns tells the two displays apart (60.00 vs 59.94 Hz), in every DX11 case and every run.
    • After the warm-up, the count nearly matches PresentMon on DX11 vsync on (windowed, borderless, TR on): all repeats but two have the same report event within 1–5 Presents. The two PresentMon-only repeats are 1 vsync each (bfs r1 p2 at 43.1 s, TR on p2 at 33.5 s); not explained.
    • Every DX11 vsync-on mismatch is one event 100–160 ms after the first input: a 2–6 vsync hold, seen by PresentMon and by the raw DXGI stats (for example PresentRefreshCount +4 between shown Presents 415→416 on bfs r2 p2). The report misses it because the period needs 120 vsyncs first (kMinVsyncsForPeriod), so until then vsyncNs == 0 and nothing is counted. Its depth varies (0 or 2). The old count (gdxsv: display misses by rollback depth and rollback slack in P2PMatchingReport; 1.10.2 room fields removed #577) needed no period, so it counted this event: that is why 577's check got "win p2 1/0/4 = PresentMon".
      • Effect in production: the first ~2 s of each match are not counted. Whether that matters is your call; it is one start-up hitch per match on this rig.
      • Possible fix (not made): until the period is measured, use the refresh count alone (a hold of n ≥ 2 vsyncs counts n − 1), or start the period measurement before the first input.
    • bfs p1 (covered peer): run 2 is composed (raw PresentCount, SyncRefreshCount and SyncQPCTime are all 0 on 3006 of 3006 calls). In run 1 the report showed display_stats_presents 2698 with period 0, without the raw trace. Not explained (hypothesis: the window changed state during the run).
    • vsync off: the raw stats see almost none of the PresentMon repeats (p2: 35 of 36 events are PresentMon-only, each 1 vsync). With tearing flips, PresentRefreshCount steps +1 per Present, so this is a limit of DXGI statistics, as already stated in 577.
    • TR on p1: PresentMon logged 2452 of 2698 Presents and shows 355 repeats, against 1 in the report. I read this as a PresentMon capture loss; that is not verified.
    • render { } is empty in the debug print: battle.py sets TEST_GGPO_DELAY, so the delay choice that fills render.refresh_rate does not run. render.refresh_rate is not checked.
    • rollback_frame_time (TR on without the wait): not checked.
    • present_wait_elasticity is -1 on both TR-on peers, as the PR says.
    • Limits: as in 577 (one AMD iGPU; two cloned displays; no macOS, Linux, GL or VK statistics).

    Scratch: G:/ai/reveng/s674a/ (holds.py lines up raw holds, report events and PresentMon; raw2.py summarizes the raw stats).

    Handover

    Status: waiting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0