CIT Resewn has two issues in large modpacks. First, it re-evaluates custom item textures every frame even when nothing has changed — this causes unnecessary CPU usage when browsing large inventories or EMI item grids. Second, it leaks over 1 GB of RAM per session by allocating objects into every ItemStack that are never freed.
This is a patch for https://modrinth.com/mod/cit-resewn
What does HTP CITOptimizer do?
Caches CIT evaluation results so repeat lookups are skipped, and fixes a massive memory leak. Significantly reduced GC pressure from eliminated per-frame allocations. Lower CPU usage when browsing large inventories or EMI item grids.
Your client will no longer freeze, crash, or lag after hours of gameplay requiring a restart due to CITResewn.
We were experiencing memory climbing steadily until it hits the heap limit causing stutters multiple times per day most noticable when relogging on servers.
Before HTP CITOptimizer:

After HTP CITOptimizer:

Created by the team at https://www.hacktheplanet.now
How to Install HTP CIT Resewn Optimizer (Mod)
HTP CIT Resewn Optimizer by HTP is verified for Fabric across Minecraft versions 1.20.1 (latest release: 1.0.0, file size: 32 KB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (1.20.1) and platform (Fabric).
- Make sure you have the compatible loader or environment installed for Fabric.
- Move the downloaded HTP CIT Resewn Optimizer file into your Minecraft
.minecraft/modsfolder and launch the game.