Skip to content

Window: one frame queued and no pipelined rendering, for less mouse latency - #134

Merged
larelgit merged 1 commit into
mainfrom
claude/low-latency-window
Nov 25, 2026
Merged

larelgit merged 1 commit into
mainfrom
claude/low-latency-window

Conversation

@larelgit

Copy link
Copy Markdown
Owner

A windowed game now asks the GPU for one queued frame (desired_maximum_frame_latency: 1, Bevy defaults to 2) and leaves out PipelinedRenderingPlugin.

With vsync, the two queued frames plus pipelined rendering put the picture 3 to 4 frames behind the mouse, and a Cranium player felt that as smoothing on the first-person look. The look code smooths nothing (raw mouse, look and camera turned in the same frame), so the latency was the whole cause. Headless and offscreen runs are unchanged.

Cost: the main world and the render no longer overlap, so a frame takes as long as both together.

Checked: Cranium built against this branch (no warnings), its settings-screen tests pass.

🤖 Generated with Claude Code

…atency

With vsync, Bevy's two queued frames and pipelined rendering put the picture
three to four frames behind the mouse, which a player felt as smoothing on
the first-person look.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 25, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@larelgit
larelgit merged commit 58fa053 into main Nov 25, 2026
10 checks passed
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.

2 participants