Skip to content
BonsUnleashed edited this page Oct 10, 2026 · 2 revisions

Rats

Minecraft 1.20.1 / Forge: this page documents that build and its measurements. For the separate 205-control Minecraft 1.21.1 port, see Minecraft 1.21.1 NeoForge.

One control for Rats 1.20.1-8.1.3 (mod id rats), client-side: its block items with a 3D model reuse one item renderer each instead of building a new one on every draw. The switch checks the code it would change against the tested build; another build is left untouched with one WARN line (see How the patches are applied).

Key Target Side Since Kind
rats_item_renderer_reuse Rats 1.20.1-8.1.3 CLIENT 1.0.36 opt

rats_item_renderer_reuse

Since: 1.0.36 · Target: Rats 1.20.1-8.1.3 · Side: CLIENT · Kind: opt

Mixin: RatsRendererMixin

Rats item renderer reuse. Rats' block items with a 3D model built a new item renderer (with seven dummy block entities) on every draw. The renderer keeps nothing between draws, so one per item is now kept and reused on the render thread and dropped at every resource reload. Same draw calls and pixels.

Idea: Collections Of Optimizations (cataclysm.shareItemRenderer), idea text only, widened to other mods

Measured: per draw 239 ns and 1,400 B -> 38 ns and 16 B before capability listeners; 0 state differences (Core Ultra 9 285K).

Bons and Furious

Minecraft 1.20.1 / Forge 1.0.41

Compatibility

Controls by mod

Links

Clone this wiki locally