What is Flywheel ?
Flywheel is a mod that offers tools for mod developers to enhance performance and address limitations of Minecraft’s rendering engine.
Instancing
Section titled “Instancing”The current Minecraft rendering engine draws each entity individually, which doesn’t fully utilize the GPU’s capabilities. Instanced rendering is a technique that involves rendering the same model multiple times within a single draw call. This allows the GPU to fully parallelize the rendering process, maximizing the utilization of its capabilities.
Essentially, instead of making 1,000 separate draw calls for each individual entity, Flywheel makes a single draw call to render 1,000 entities at once.
Materials
Section titled “Materials”Flywheel provides a material system to mod developers, allowing them to fully customize how an instance in rendered. Mod developers may configure for example:
- A vertex shader
- A fragment shader
- A light shader
- A cutout shader
- A custom texture
- The transparency mode (opaque, additive, lightning, glint and translucent)
- The depth test
- Color buffer and depth buffer writes
Mods developers may also create instance types with custom data layout. This allows them to send any data they want to be processed by a custom instance shader on the vertex stage.
Existing mods
Section titled “Existing mods”By itself, Flywheel does nothing as it’s just a library. Here’s a list of mods using Flywheel:
- Vanillin
- Create (and associated addons)
- Valkyrien Skies 2
- Effortless Building