
Rust Engine
Accelerates selected CPU-heavy Minecraft workloads with optional native Rust implementations.
Minecraft handles a lot of work behind the scenes. From processing entities and resolving collisions to running AI calculations, many of these operations can put a considerable amount of pressure on the CPU, especially in worlds with lots of activity.
Rust Engine aims to make some of that work less expensive.
Instead of replacing Minecraft's Java code entirely, Rust Engine focuses on selected operations that can benefit from native execution. It provides optimized implementations of these workloads in Rust, allowing them to run outside the usual Java execution path while keeping the rest of the game intact.
The goal is to reduce unnecessary CPU overhead without changing how Minecraft behaves.
How it works
Java and Rust handle different parts of the process.
Minecraft first collects the information needed for an operation and creates an isolated snapshot containing primitive data. That data is then passed to the native Rust library through reusable direct memory buffers.
Rust processes the data and returns the results to Java, where they are checked and applied on the appropriate Minecraft thread.
This approach keeps native processing separated from Minecraft's internal objects. Rust never directly accesses game objects such as entities, levels, block entities or item stacks.
Some operations can also use parallel processing through Rayon, allowing suitable workloads to be distributed across multiple worker threads.
Designed to work alongside Minecraft
Rust Engine is designed for both the client and dedicated servers running Minecraft 1.21.1 with NeoForge 21.1.x.
The native library is optional. When it is unavailable, unsupported or cannot be loaded, the mod can use its Java implementations instead. You can still launch and play the game without the Rust library.
By default, Rust Engine does not intentionally change vanilla gameplay behavior. Its purpose is to improve how selected operations are processed, not to change their results.
Configuration and diagnostics
Rust Engine includes a configuration screen accessible through the NeoForge Mods menu, with controls for adjusting the available optimization engines.
For additional information, server administrators can use the following commands:
/rustengine status— Shows the native library state, runtime information and fallback counters./rustengine engines— Displays the state and execution timings of individual engines./rustengine profile— Shows the active optimization profile and renderer./rustengine benchmark— Measures performance on the current hardware and JVM./rustengine reload— Applies runtime configuration changes./rustengine report— Generates a local diagnostic report containing version, mod and native runtime information.
Performance
Actual improvements depend on the workload being processed, the available hardware and which native optimizations are supported.
Rust Engine does not rely on predefined performance claims. Its benchmark and diagnostic tools are intended to help measure what is actually happening on your system.