Skip to content

What is Flywheel ?

Flywheel is a mod that offers tools for mod developers to enhance performance and address limitations of Minecraft’s rendering engine.

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.

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.

By itself, Flywheel does nothing as it’s just a library. Here’s a list of mods using Flywheel: