Skip to content

XercaPaint

BonsUnleashed edited this page Oct 10, 2026 · 2 revisions

XercaPaint

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 XercaPaint 1.20.1-1.0.1 (mod id xercapaint), client-side: painted canvases reuse one item renderer 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
xercapaint_item_renderer_reuse XercaPaint 1.20.1-1.0.1 CLIENT 1.0.36 opt

xercapaint_item_renderer_reuse

Since: 1.0.36 · Target: XercaPaint 1.20.1-1.0.1 · Side: CLIENT · Kind: opt

Mixin: XercaPaintRendererMixin

XercaPaint canvas renderer reuse. Every draw of a painted canvas built a new item renderer with seven dummy block entities. The renderer keeps nothing between draws, so one 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 276 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.38

Compatibility

Controls by mod

Links

Clone this wiki locally