Описание
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](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