Skip to content
This repository has been archived by the owner on Dec 18, 2023. It is now read-only.
/ cadmium-fabric Public archive

An optimization mod for DataFixerUpper with the goal to make game startup take less time.

License

Notifications You must be signed in to change notification settings

jellysquid3/cadmium-fabric

Repository files navigation

Cadmium

⚠️ Here be dragons. This mod can only be used in a developer workspace, at least until a library replacement mechanism is developed for production environments. You also shouldn't trust it with any worlds you particularly care about until more extensive testing is done.

No guarantee is made that this project will receive any further development or that it will even be maintained.

Preface

The release of Minecraft 1.13 brought the concept of "data fixers" to the game, enabling seamless and incremental upgrades for old world data. The theory behind the implementation is cutting edge stuff, but in the real world, things are less than ideal.

During start-up, the game will build (and optimize) data fixers for every supported version schema the game can upgrade from. This process accounts for a huge portion (>85%) of the time the game spends sitting at the loading screen, and will often bring most systems to their knees while it does so due to how it maximizes for parallelization.

Unfortunately, this problem has only continued to escalate with recent releases of the game. Minecraft 1.16 introduces many new data fixers, and as if insult to injury, seemingly no longer waits for them to be finished loading before the loading screen vanishes, leading to excessive lag on the main menu while they continue to build.

This mod attempts to solve, or at least greatly improve, the problem of data fixers being very CPU intensive to compute. Ultimately the best solution would be to pre-compile the optimized data fixers, so that the client doesn't need to spend its time constantly re-building them... but alas that is left to Mojang.

For developers

This repository is just the loader shim to bring the optimized fork of DataFixerUpper into the game client. As such, none of the actual optimizations are implemented here. If you'd like to start hacking, checkout the modules/DataFixerUpper library and make a new branch there.

Cloning the repository

This project makes use of Git submodules. When cloning the repository, you must be sure to clone the submodules.

If you're cloning the repository for the first time, use the following:

git clone --recurse-submodules https://github.com/jellysquid3/cadmium-fabric.git

Otherwise, to clone the submodules in an already cloned repository:

git submodule update --init --recursive

License

Cadmium is made available under the MIT license, a free and open-source license. For more information, please see the license file.

About

An optimization mod for DataFixerUpper with the goal to make game startup take less time.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages