ThreadTweak — a technical mod for optimizing and tuning CPU thread priorities in Minecraft
ThreadTweak is a technical mod that allows you to manage CPU thread pools and priorities in Minecraft to optimize performance.
ThreadTweak is a technical mod that allows you to manage CPU thread pools and priorities in Minecraft to optimize performance.
ThreadTweak — a technical mod for optimizing and tuning CPU thread priorities in Minecraft
Minecraft version tested and article written on: 1.21.11
Supported version range: 1.21.3–1.21.11 1.21–1.21.1 1.20.4–1.20.6 1.20–1.20.2
Mod version: 0.1.8
ThreadTweak is a small technical mod for Minecraft that exposes the settings for how the game distributes work across CPU cores: the number of worker threads in key pools and the priority of each. In vanilla, these values are hardcoded and the same for everyone — which isn't always optimal for a specific system or alongside active background software. All parameters are saved in the threadtweak.json file and applied after restarting the game.
What exactly the mod changes
The tool acts on two levels: the size of worker pools and thread priority.
Size of worker pools — this is the number of separate threads the game divides parallel tasks into upon launch and at certain moments during the game session: texture atlas stitching, old world migration, some chunk operations. In vanilla, this size is automatically tied to the number of CPU cores with an upper limit. In practice, some tasks scale poorly — multiple threads don't work faster than one, and the overhead for coordination between them only grows.
Thread priority — a scale from 1 to 10 that Java passes to the operating system as a recommendation on who to give CPU time first. The standard priority of all Minecraft threads is 5. Lowering the priority of background pools usually doesn't noticeably slow down the game, but frees up resources for other processes: browser, voice chat, video recording software. Raising it above 5 rarely gives a boost — the OS will still divide CPU time among active applications, and synchronization between the game's own threads may become less stable.
All changes are applied only after a complete restart of the game. It is impossible to switch priorities "on the fly".
When the setting provides real benefit
There aren't many scenarios where manual control of pools and priorities noticeably changes the experience, but they are specific:
Playing alongside streaming or recording. On systems with 4–6 cores, OBS and Minecraft compete for the CPU. Lowering the priority of the main and io Worker to 2–3 reduces micro-stutters in the video without visible FPS loss in the game.
Weak or old processors. With 2–4 physical cores, vanilla scatters worker threads across all available ones, causing the main game thread to periodically lose time. Limiting threadCount.main to 1–2 removes some of this noise.
Multi-core CPUs with background load. On systems with 12+ threads, where compilation, torrents, or backups are running in parallel, lowering priorities makes Minecraft a "quiet neighbor" that doesn't eat up all the OS scheduler's performance.
Without such conditions, tweaking gives an effect within the margin of FPS measurement error.
Mod configuration
The configuration can be tweaked directly in the config/threadtweak.json file. The format is standard JSON, opens with any text editor.
If the file is missing, it is created automatically upon the first game launch after installing the mod.
Config file parameters
The config contains two groups: threadCount (pool size) and threadPriority (thread priority). All values are integers.
Parameter | Default | Range | What it does |
| 1 | ≥1 | Number of threads in Bootstrap Worker — performs DataFixer tasks upon the first game load. Increasing it usually doesn't speed up launch: the tasks themselves parallelize poorly. |
| half of CPU threads | ≥1 | Number of threads in Main Worker — the primary pool for parallel operations (atlas stitching, some chunk tasks, world migration). Affects resource loading time and partially game performance. |
| 5 | 1–10 | Priority of the main client or server thread — the one that renders frames and runs the game loop. |
| 3 | 1–10 | Priority of Bootstrap Worker threads. Active only during game loading. |
| 3 | 1–10 | Priority of Main Worker threads. Run throughout the entire session. |
| 3 | 1–10 | Priority of IO Worker threads. Responsible for reading and writing chunks, as well as saving screenshots. |
| 5 | 1–10 | Priority of the integrated server thread — runs world logic in single-player. Doesn't affect anything on dedicated servers. |
Conclusion
ThreadTweak fills a narrow niche — manual control over pools and thread priorities for cases when the standard Java scheduler gets in the way. In a simple single-player game without background applications, the FPS gain will be within the margin of error. The mod makes real sense on weak processors, during parallel streaming or recording, or when the system is constantly busy with other resource-intensive processes. By itself, it doesn't speed up the game — it only redistributes resources among threads, so there's no reason to expect a magical boost effect from it.
Installation
A typical installation takes about 5 minutes. The flow is the same; only the loader and the matching build differ.
Installing Mods in Minecraft: A Guide for Forge, FabricLearn how to install mods in Minecraft with this step-by-step guide for Forge and Fabric. Improve your game with new features, tools, and mechanics!Open the install guide










