promotional bannermobile promotional banner

RenderTypeCache

Cache the chunk buffer layers to avoid unnecessary memory leak.

Embeddium / Rubidium includes this patch now. Unless you are not using them, there is no need to download this mod!

This mod may not be compatible with OptiFine!

This is a very simple client-side only mod, with only one mixin class.

It caches the immutable list returned by the chunkBufferLayers method in the RenderType class.

This should also fix a memory leak caused by Rubidium (Not Sodium, this problem only occurs on Rubidium), see Rubidium#178

In version 1.16.5, an investigation revealed that many well-known mods like Create, Cracker's Wither Storm Mod, AE2, and many others also have similar calls in their rendering code. Initially, this mod was created to address the memory leak issue with Rubidium, but now it seems its potential has expanded.

This mod is unnecessary in Minecraft versions 1.19.2 or above because Mojang has already implemented the same caching there.

Join Our discord: https://discord.gg/g8q3UHTpCP!

image

The RenderTypeCache Team

profile avatar
  • 69
    Followers
  • 130
    Projects
  • 158.9M
    Downloads

唯假期与 Naruto 不可辜负。

Donate

More from _nArUTo_View all

  • Enchanted Potato project image

    Enchanted Potato

    • 60.5K
    • Mods

    Innovative combat enchantments, with more coming soon!

    • 60.5K
    • June 8, 2026
    • Mods
    • +1
  • DoesPotatoTick? project image

    DoesPotatoTick?

    • 13.0M
    • Mods

    performance mod that don‘t allow entities to tick when they are far from players.

    • 13.0M
    • June 7, 2026
    • Mods
    • +3
  • It Is Me project image

    It Is Me

    • 136
    • Mods

    Enhance entity visibility with clean outlines and improved shadow rendering.

    • 136
    • May 30, 2026
    • Mods
    • +2
  • Duplicationless project image

    Duplicationless

    • 1.7M
    • Mods

    A lightweight Minecraft library that simplifies JSON configs, block data storage, and entity tracking across chunks and dimensions.

    • 1.7M
    • May 21, 2026
    • Mods
  • Enchanted Potato project image

    Enchanted Potato

    • 60.5K
    • Mods

    Innovative combat enchantments, with more coming soon!

    • 60.5K
    • June 8, 2026
    • Mods
    • +1
  • DoesPotatoTick? project image

    DoesPotatoTick?

    • 13.0M
    • Mods

    performance mod that don‘t allow entities to tick when they are far from players.

    • 13.0M
    • June 7, 2026
    • Mods
    • +3
  • It Is Me project image

    It Is Me

    • 136
    • Mods

    Enhance entity visibility with clean outlines and improved shadow rendering.

    • 136
    • May 30, 2026
    • Mods
    • +2
  • Duplicationless project image

    Duplicationless

    • 1.7M
    • Mods

    A lightweight Minecraft library that simplifies JSON configs, block data storage, and entity tracking across chunks and dimensions.

    • 1.7M
    • May 21, 2026
    • Mods