MALAHIT Performance Fixes
Performance fixes for the mods of the MALAHIT pack, for NeoForge 1.21.1.
The fixes are applied with Mixin. Each one is applied only when the mod it patches is installed, and it does not change how that mod behaves: the fixes affect how the game draws and processes the objects, not what they do. If a fix no longer matches a newer version of the patched mod, that fix is skipped alone and a warning is written to the log. The game does not crash.
Fixes
Warium CE
- Energy node lines. The link lines between energy nodes are drawn from a registry of the loaded nodes. Before, the renderer scanned every block entity in the render distance on every frame. Projectile tracers reuse their tag keys.
- Hit effects. Bullet and fragment hits play a limited number of block break effects per tick
(
warium_hit_effects_per_tick, default 4). Blocks, damage and sounds of the hit are unchanged. - Fragment view. The client keeps and draws a limited number of new fragments per tick
(
warium_fragments_shown_per_tick, default 24). The server still simulates every fragment, so hits and damage are unchanged.
Sable and Sodium
- Single-block cache. A sub-level made of one block replays the vertices recorded for it through its current pose and does not build a mesh again.
- Chunked pass (off by default). The chunked pass skips sub-levels that have no geometry in a render layer and section draws outside the view frustum.
- Occlusion culling (off by default). Sub-levels that are hidden in Sodium's section graph for the current view are not drawn.
Separate Sable Render Distance
- Depth match. Sub-levels are drawn with the depth of the player's view. Parts, entities and Flywheel visuals on distant vehicles no longer sink behind their hulls.
Synaxis
- Constraint batch. A change to one constraint no longer costs as much as processing every constraint of the dimension.
qModeling
- Render cache. The Workspace renderer reuses its part list between frames and prepares the world text and image overlay only for the parts that can show one. Compatibility only: no qModeling code is included.
Configuration
Every fix except the Warium CE energy node lines has a switch in config/malahit_perf.properties. The file is created on the first start.
warium_hit_effects=true
warium_hit_effects_per_tick=4
sable_occlusion_culling=false
At startup the log reports the result for each fix:
[malahit_perf] <fix>: applied
[malahit_perf] <fix>: NOT applied (<reason>)
Compatibility
- NeoForge 1.21.1, Java 21.
- Warium CE 1.0.3, qModeling 2.0 RP 2.0.4rp. Other mods: Sable, Sodium, Separate Sable Render Distance, Synaxis.
- None of the mods above is required. Install the fixes together with the mods you use.
Credits and license
A MALAHIT mod by Graide. Copyright (c) 2026 Graide (MALAHIT). All Rights Reserved. No code or assets of the patched mods are included.