promotional bannermobile promotional banner

Material Rule Compiler

An experimental worldgen optimization mod that compiles material rules into static functions.
Example code generated by the mod

Example code generated by the mod

Description

Material Rule Compiler is an experimental worldgen optimization mod, that works to improve surface builder times by compiling material rules into static functions.

Does the mod change world generation? The mod maintains vanilla parity, including with any datapacks. Do keep in mind, Vanilla non-determinism.

Can I use custom worldgen mods with this? Yes, the mod will fallback to normal execution where it encounters modded content. Though, it is possible to have mod incompatibilites. I do test against major worldgen mods like terratonic etc.

Material Rule Compiler is part of Reverie Projects, check out our other mods as well.

How does this mod work?

Material rule compiler compiles material rules into a simple bytecode and then into method handles, which the jvm automatically compiles into jvm bytecode on continued execution.

How fast is it?

About 30-40% decrease in surface builder execution times.

Socials

Chat with us on discord Chat with me on mastodon Chat with us on Gitter

Credits

  • Ishland for suggesting method handle api
  • Taumc members for discussing compat and surface rules
  • DJ for testing and benchmarking

Reverie Projects

Consider joining the Reverie Projects for sneak peeks and updates on development! By joining, you can:

  • Get installation help and technical support for alot of awesome projects
  • Get the latest updates about development
  • Talk with and collaborate with our team
  • And just hang out with the rest of our community!

The Material Rule Compiler Team

High Crafter tier frameprofile avatar
  • 3
    Followers
  • 4
    Projects
  • 3.7M
    Downloads
Donate

More from zenxarch