DMZCA Perf Fix

Performance companion for DMZCA (0.5.x) + DragonMineZ & DMZ Ultra on Forge 1.20.1 — eliminates village TPS/FPS lag via reflection caching, lazy StatsData lookup, villager hair LOD & FormParts caching (23 FPS -> 80–110 FPS).
Back to Files

dmzca_perf_fix-1.0.0.jar

File namedmzca_perf_fix-1.0.0.jar
Uploader
FPGAMESBRFPGAMESBR
Uploaded
Nov 23, 2026
Downloads
15
Size
23.7 KB
Mod Loaders
Forge
File ID
9765957
Type
R
Release
Supported game versions
  • 1.20.1

Curse Maven Snippet

Forge

implementation fg.deobf("curse.maven:dmzca-perf-fix-1825390:9765957")

Learn more about Curse Maven

What's new

v1.0.0 — Initial Release (Temporary Patch for DMZCA 0.5.2)

  • Lock-free Reflection Cache (ClassValue + ConcurrentHashMap): Added zero-allocation hot paths for 0-arg, 1-arg, pipe-delimited, and field reflection lookups with cached stackless negative results.
  • Full Common & Client Coverage: Automatically transforms 142 DMZCA classes (92 common + 50 client), rewriting 1,194 uncached Class.getMethod* / getField* / forName / CachedReflection.* call sites.
  • Hot Helper Replacements (34 methods): Replaced CachedReflection.getMethods/getDeclaredMethods (removes .clone() GC churn), McaGeneticsRuntime.invoke (removes Mojmap-first NoSuchMethodException spam), all 23 pipe-split call/invoke helpers, and 8 getField/field/findField helpers.
  • Zero Gameplay Changes: Verified via Spark profiling (-72% to -85% DMZCA server tick time near villages, ~23 FPS -> 50+ FPS) with full feature parity.
  • Pack Metadata: Includes valid Forge 1.20.1 pack.mcmeta (pack_format: 15) for clean loading with zero warnings.