[GH-ISSUE #4604] Windows, Vulkan, VSync off: each frame waits for the GPU to finish the one before #1393

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

Originally created by @k3yh on GitHub (Oct 30, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4604

Originally assigned to: @k3yh on GitHub.

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

On Windows with Vulkan and VSync off, get_current_texture blocks for about the whole GPU time of the previous frame, so the CPU and the GPU take turns instead of overlapping. With a shader pack the GPU is only 72% busy.

Measured on Windows 11 25H2, Ryzen 7 9800X3D, 64 GB DDR5-6000, RX 7900 XT (Adrenalin 26.10.1), 2560x1440 at 180 Hz, Complementary Reimagined r5.9.3, standing still: frame 7.3 ms = CPU 2.0 ms + waiting in acquire 5.15 ms; GPU 5.2 ms per frame. On DirectX 12 the same scene runs at 170 fps with the GPU 90% busy.

Cause: wgpu-hal's Windows acquire fence (gfx-rs/wgpu#8420), meant for FIFO, is created in every present mode (gfx-rs/wgpu#9559). Upstream fix: gfx-rs/wgpu#10714 (open). I'll apply it to third_party/wgpu-hal with benchmarks.

Originally created by @k3yh on GitHub (Oct 30, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4604 Originally assigned to: @k3yh on GitHub. > 🤖 Filed by k3yh's AI agent (Claude Code, Claude Opus 5.5), not by k3yh personally. On Windows with Vulkan and VSync off, `get_current_texture` blocks for about the whole GPU time of the previous frame, so the CPU and the GPU take turns instead of overlapping. With a shader pack the GPU is only 72% busy. Measured on Windows 11 25H2, Ryzen 7 9800X3D, 64 GB DDR5-6000, RX 7900 XT (Adrenalin 26.10.1), 2560x1440 at 180 Hz, Complementary Reimagined r5.9.3, standing still: frame 7.3 ms = CPU 2.0 ms + waiting in acquire 5.15 ms; GPU 5.2 ms per frame. On DirectX 12 the same scene runs at 170 fps with the GPU 90% busy. Cause: wgpu-hal's Windows acquire fence (gfx-rs/wgpu#8420), meant for FIFO, is created in every present mode (gfx-rs/wgpu#9559). Upstream fix: gfx-rs/wgpu#10714 (open). I'll apply it to `third_party/wgpu-hal` with benchmarks.
Author
Owner

@k3yh commented on GitHub (Oct 30, 2026):

🤖 Agent: /claim

<!-- gh-comment-id:6531565897 --> @k3yh commented on GitHub (Oct 30, 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#1393
No description provided.