/hmc-optimizations

Version specific optimizations for HeadlessMc

Primary LanguageJavaMIT LicenseMIT

HMC-Optimizations

Version specific optimizations for the HeadlessMc runtime.

Mc-Runtime-Test | HMC | HMC-Specifics | HMC-Optimizations

CodeFactor GitHub All Releases GitHub Github last-commit

Version specific optimizations for HeadlessMC. The goal of HeadlessMC is to make the Minecraft client run on the command line. It does so by hooking into the LWJGL library skipping all the code. This also makes it largely Minecraft version independent, as I only have to target the LWJGL library.

However, all the Minecraft code for rendering will still run; it is just the calls to LWJGL that do not do anything. Also, due to the inextensible nature of Javas Buffers, the LWJGL library patched by us still needs to allocate buffers when Minecrafts code tells it to, currently on the heap instead of off.

The goal of this project is to write mods that target Minecraft code specifically, patching out anything rendering related with Mixin.

Console output from a fresh, headless SinglePlayer world, without and with HMC-Optimizations:

> fps
1356 fps T: inffast fancy-clouds B: 2
> optimize
HMC-Optimizations enabled.
> fps
1826208 fps T: inffast fancy-clouds B: 2

⚠️ This is work in progress.