Repository navigation
P2PMatchingReport: per-frame rollback time and p50 - #439
Merged
Merged
Conversation
… by LBS Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… waits) replaces rollback_budget Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 messageFrameTiming, 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.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 arereserved.TimingStats.p50_us = 9. Percentiles may be estimated from histogram buckets.frame_timingobject with nestedTimingStats; a wait the client did not send is left out).Test_p2pMatchingReportFieldschecks them through the wire format.gdxsv.pb.goregenerated 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