Description
Cached Shadows
A performance patch for shader packs. They draw the whole terrain again from the sun every frame to make its shadows, although those only change when you move a good way, the sun turns or a block changes. Cached Shadows keeps the terrain's shadow map between frames instead. Entities, block entities and water still cast fresh shadows every frame.

How often
- A fresh map every 2nd, 4th (default) or 8th frame, or only when something changed.
- Always a fresh map when you moved more than two blocks, the sun turned, or a chunk near you changed.
- The kept map is lined up exactly with where you stand, so shadows don't slide.
- Works with any Iris shader pack that draws terrain in its shadow pass, and with Distant Horizons' LOD shadows.
Speed
Measured in a Wisp and Distant Horizons pack on an RTX 5060 while walking: 101 fps without, 136 fps with the default setting, 156 fps when only redrawn when needed. F3 shows what the shadow pass costs and how many passes were skipped.
Settings
Mods > Cached Shadows > Config, and on Sodium's video settings screen.
Requirements
Minecraft 1.21.1, Java 21, NeoForge 21.1. Client only. Needs Iris 1.8 and Sodium; without them it does nothing. Distant Horizons is optional.
Support me and get early access on my Patreon.
Related mods
NeoForge 1.21.1. Free to use in modpacks.








