Chunk Worker Thread Priority & Pacer

Balances background chunk-builder thread priorities so integrated server and render threads never starve.
gallery_1.png

gallery_1.png

Description

Fixing CPU Thread Starvation During Terrain Generation

By default, Minecraft spawns `Main` and `Render` threads at the exact same OS scheduler priority as background `Worker-Main` chunk compilation threads. On 6-core and 8-core CPUs, loading new chunks saturates all logical cores and causes severe mouse input jitter.

This utility assigns explicit JVM thread priorities (`Thread.NORM_PRIORITY - 2` for background workers, `NORM_PRIORITY + 1` for the render loop) and caps concurrent mesh rebuild bursts. Settings are stored in `config/worker_thread_scheduler.properties`.

Chunk Worker Thread Priority & Pacer Team

profile avatar
  • 1
    Projects
  • 29
    Downloads