Skip to content

Measure and share connection lag using Core.Ping - #175

Merged
ctoth merged 1 commit into
masterfrom
feat/connection-lag
Oct 12, 2026
Merged

ctoth merged 1 commit into
masterfrom
feat/connection-lag

Conversation

@ctoth

@ctoth ctoth commented Oct 12, 2026

Copy link
Copy Markdown
Contributor

Measure connection round-trip time every five seconds using the existing IRE GMCP Core.Ping contract. Show the latest RTT in the status bar and report the average of the last five samples to the game on subsequent pings. Start after network GMCP negotiation, including before login, and clear samples/timers on disconnect or GMCP disable.

Keep one untagged request outstanding so resume probes and late replies cannot corrupt measurements. Expire unanswered requests after 15 seconds and encode initial pings without a body. Local WASM sessions remain unsampled. Document the game-side session telemetry API and its 30-second freshness limit.

Validation: 149 Vitest files / 2170 tests passed; npm run typecheck; npm run test:audio-cache, including real Monaco/browser journeys and lazy audio cache checks.

@ctoth
ctoth merged commit bb672e4 into master Oct 12, 2026
2 checks passed
@ctoth
ctoth deleted the feat/connection-lag branch October 12, 2026 02:31
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