CoreSched

Right-size Minecraft's background threads without starving the render thread.

150-Mod Stack: Chunk-Gen Saturation vs Settled World (n=5 Solo)

CoreSched trims vanilla's Worker-Main pool so it stops oversubscribing your CPU, and lowers the priority of pure background work. Render, server, audio and chunk-meshing threads are left alone.

It is an independent mod and is not affiliated with any other optimization mod; it only coexists with them.

Why CoreSched?

  • Modpack-safe by design. It steps aside when C2ME is installed or -Dmax.bg.threads is set, so it never fights another scheduler.
  • Gentle, not aggressive. Render thread, Server thread, Sound engine, Netty and Sodium's Chunk Render Task Executor stay at normal priority.
  • Honest numbers. On a 150-mod stack (MC 26.3, 12 threads), average FPS during active chunk generation rose from 35.0 to 39.1 (+11.6%, n=5 vs n=5). Settled-world gains were not detectable.

Quick Start

  1. Install Fabric Loader and Fabric API.
  2. Download CoreSched from Modrinth.
  3. Drop the JAR into your mods folder and launch. There is nothing to set up.

CoreSched has no keybinds, commands or config file. It is tuned with JVM arguments:

ArgumentEffect
-Dcoresched.disabled=trueTurns CoreSched off completely
-Dcoresched.capSmallCpus=trueAlso caps workers on CPUs with 8 or fewer threads
-Dmax.bg.threads=NYour own value wins; CoreSched skips its cap

Features

FeatureBehavior
Worker capLowers Util.getMaxThreads() only if the result is below vanilla's value
Worker priorityWorker-Main-* runs at Java priority 4
Background I/O priorityIO-Worker-*, Download-*, Datafixer*, Telemetry*, Server Pinger*, Realms*, Narrator* run at priority 2
UntouchedRender, server, sound, Netty, chunk meshing, C2ME workers

Worker cap is threads - max(3, threads / 3), limited to 16:

Logical threadsVanillaCoreSchedStatus
4 / 6 / 83 / 5 / 7UncappedOpt-in cap (2 / 3 / 5)
12118On; benchmarked
16 / 24 / 3215 / 23 / 2511 / 16 / 16On; not yet tested on hardware

Performance

Measured on MC 26.3, Ryzen 5 4500 (12 threads), RTX 3050, alternating runs.

ScenarioResult
150 mods, active chunk generationAvg FPS +11.6% (p_holm = 0.008, 5/5 wins)
150 mods, settled worldNo difference detected (-0.4%, p = 0.95)
Standalone, no other modsWithin noise (p > 0.13)
115 mods with C2ME (priorities only)Cap deferred; FPS change not significant, small overhead not ruled out

Singleplayer MSPT was too noisy to conclude anything. Only MC 26.3 on one CPU has been benchmarked, so treat results as indicative.

Configuration

There is no config file. Use the JVM arguments listed in Quick Start.

Showcase

Standalone MC 26.3 & C2ME Priority-Only Arm (n=5 Solo)

Standalone MC 26.3 & C2ME Priority-Only Arm (n=5 Solo)

Standalone metrics within noise (<=8T uncapped by default; 12T->8 benchmarked); 115-mod C2ME arm defers worker cap while tuning 12 background priorities.

Compatibility

MinecraftLoaderJavaSide
1.20.1Fabric (>=0.15.11)17+Client
1.21.1Fabric (>=0.15.11)21+Client
1.21.11Fabric (>=0.18.0)21+Client
26.3 to 26.4Fabric (>=0.20.0)25+Client
  • Fabric API is required. Forge and NeoForge are not supported.
  • C2ME: CoreSched defers its thread cap and still tunes background priorities.
  • Sodium and other chunk-meshing pools are never demoted.

Building from Source

Requires JDK 25.

git clone https://gitlab.com/AltRossell/coresched.git
cd coresched
./gradlew build --no-daemon

FAQ

Will it help on a small CPU? The cap is off by default on 8 threads or fewer because it is unverified there.

Does it change server behavior? No. It is client-side only.

License

MIT. See LICENSE.

CoreSched Team

profile avatar
  • 1
    Followers
  • 8
    Projects
  • 444
    Downloads

More from AltRossellView all