Repository navigation
id(world_session): coalesce view redraws in a 5ms window (#561) - #3905
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 4 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
…-redraw-batching # Conflicts: # pkgs/id/Cargo.toml
|
Codex Review: Didn't find any major issues. Delightful! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Implements #561 (queue task 4832): server-side redraw batching in the world session driver.
What changed
pkgs/id/src/world_session/mod.rs: thejoined()session driver no longer sends a full view per projected event / perviews.changed(). The first pending redraw arms a fixed deadline ofVIEW_COALESCE_WINDOW = 5ms; later redraws inside the window only update the pending sequence (deadline is not extended). When the deadline fires, exactly one view is sent with the latest sequence.pkgs/id/Cargo.toml: dev-onlytokiotest-utilfeature for paused-time tests.Tests / baseline comparison
pkgs/id/src/world_session/tests.rs: a burst of 3 committed chat events yields 3 immediate event frames and exactly ONE view at the deadline carrying the latest sequence; an event after the window yields a further view. The test uses the 383-byte roc-grid 80x24 frame size from the F11.9 baseline (doc/2026-10-27T00-00-00Z_baseline_bytes_per_frame.md, id(world): F11.9 bytes-per-frame baseline table #542) and asserts the batched wire bytes save exactly 2 full view frames versus the unbatched behavior for the burst.Verification: targeted regression passed after merging current main (1 passed, 0 failed); rustfmt and git diff --check pass. No required CI checks are configured; CodeRabbit skipped. Task 4832 tracks the test outcome.
Closes #561
Need help on this PR? Tag
@codesmith-botwith what you need.