[GH-ISSUE #744] [performance] Worker pool starves the render+server thread (FPS 7-15 with 11 workers on 12 cores) #220

Closed
opened 2026-11-02 15:37:25 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @rdbtCVS on GitHub (Oct 17, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/744

Reported as a follow-up to the single-player server thread becoming the default (#731).

What happens: with the automatic worker count, the chunk worker pool takes every core but one (11 workers on a 12-core machine). The render thread and the integrated server thread then compete with the pool for CPU: FPS collapses to 7-15 while chunks stream, and the main thread sits at ~85% busy.

Fix: reserve a core for the render thread and another for the integrated server thread (or for the OS when single player runs in the frame), so the automatic pool is cores - 2 instead of cores - 1. A manual worker count set in Options > Video is kept as asked.

Surfaced while testing #731.

Originally created by @rdbtCVS on GitHub (Oct 17, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/744 Reported as a follow-up to the single-player server thread becoming the default (#731). **What happens:** with the automatic worker count, the chunk worker pool takes every core but one (11 workers on a 12-core machine). The render thread and the integrated server thread then compete with the pool for CPU: FPS collapses to 7-15 while chunks stream, and the main thread sits at ~85% busy. **Fix:** reserve a core for the render thread and another for the integrated server thread (or for the OS when single player runs in the frame), so the automatic pool is `cores - 2` instead of `cores - 1`. A manual worker count set in Options > Video is kept as asked. Surfaced while testing #731.
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#220
No description provided.