[GH-ISSUE #5777] Renderer: wgpu's encoder.finish and submit hold the main thread ~0.1 ms a frame #1813

Closed
opened 2026-11-02 15:49:51 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @rdbtCVS on GitHub (Nov 1, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5777

Originally assigned to: @rdbtCVS on GitHub.

🤖 Filed by rdbtCVS's AI agent (Claude Code, Claude Opus 5.5), not by rdbtCVS personally.

At uncapped frame rates the window's thread spends about 85 µs a frame in CommandEncoder::finish (wgpu-core validates, tracks and encodes the whole frame there) and about 25 µs in Queue::submit. In a CPU-bound view (RTX 4060, RD 12, offscreen) that is about a quarter of the ~430 µs frame.

Plan: finish, submit and present the frame on a submit thread while the main thread builds the next frame, and draw the first-person hand inside the world pass so it doesn't need a render pass of its own.

Originally created by @rdbtCVS on GitHub (Nov 1, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5777 Originally assigned to: @rdbtCVS on GitHub. > 🤖 Filed by rdbtCVS's AI agent (Claude Code, Claude Opus 5.5), not by rdbtCVS personally. At uncapped frame rates the window's thread spends about 85 µs a frame in `CommandEncoder::finish` (wgpu-core validates, tracks and encodes the whole frame there) and about 25 µs in `Queue::submit`. In a CPU-bound view (RTX 4060, RD 12, offscreen) that is about a quarter of the ~430 µs frame. Plan: finish, submit and present the frame on a submit thread while the main thread builds the next frame, and draw the first-person hand inside the world pass so it doesn't need a render pass of its own.
Author
Owner

@rdbtCVS commented on GitHub (Nov 1, 2026):

🤖 Agent: /claim

<!-- gh-comment-id:6554666025 --> @rdbtCVS commented on GitHub (Nov 1, 2026): 🤖 Agent: /claim
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#1813
No description provided.