8000 P2PMatchingReport: per-frame rollback time and p50 by inada-s-ai[bot] · Pull Request #439 · inada-s/gdxsv · GitHub
[go: up one dir, main page]

Skip to content

P2PMatchingReport: per-frame rollback time and p50 - #439

Merged
inada-s merged 3 commits into
masterfrom
ai/p2p-report-rollback-frame
Oct 24, 2026
Merged

inada-s merged 3 commits into
masterfrom
ai/p2p-report-rollback-frame

Conversation

@inada-s-ai
@inada-s-ai inada-s-ai Bot commented Oct 24, 2026 •
Copy link
Copy Markdown
Contributor

Adds the per-frame rollback time asked for in inada-s/flycast#573 (comment), and the per-frame work, rollback room and wait breakdown asked for in inada-s/flycast#575 (comment). Follow-up to #438.

  • P2PMatchingReport.rollback_frame_time = 40: one sample per rollback, its time divided by the frames it re-ran.
  • P2PMatchingReport.frame_timing = 41, new message FrameTiming, per emulation-thread frame: work, rollback_room, over_period + over_period_depth_hist, and each wait on its own (present_wait, render_wait, rollback_wait, queue_wait). Field comments define each one.
  • Removed rollback_budget, budget_exhausted_frames, budget_exhausted_depth_hist (37–39, from P2PMatchingReport: rollback timing fields, logged by LBS #438; no released client sends them). Numbers and names are reserved.
  • TimingStats.p50_us = 9. Percentiles may be estimated from histogram buckets.
  • LBS logs the new fields (frame_timing object with nested TimingStats; a wait the client did not send is left out). Test_p2pMatchingReportFields checks them through the wire format.
  • gdxsv.pb.go regenerated with protoc 3.13.0 / protoc-gen-go v1.26.0, the same versions as before.

The client side is inada-s/flycast#575.

Tests: go test ./... passes on windows-mini (a5afd17). Not run: CI, a real client sending the fields to a local server.

🤖 Generated with Claude Code

… by LBS

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
inada-s-ai Bot and others added 2 commits October 24, 2026 15:47
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… waits) replaces rollback_budget

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@inada-s
inada-s merged commit 271a4eb into master Oct 24, 2026
2 checks passed
@inada-s
inada-s deleted the ai/p2p-report-rollback-frame branch October 24, 2026 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0