dmzca_perf_fix-1.1.0.jar
Curse Maven Snippet
What's new
DMZCA Perf Fix v1.1.0 — Client Render & Village FPS Breakthrough
Major Performance Improvements
- Eliminated all 13 eager
.orElse(new StatsData(player))allocations across DragonMineZ2.xclient renderers (DMZRacePartsLayer×6,DMZRenderHand×3,DMZPlayerRenderer,DMZSkinLayer,DMZThirdPartyLayerForwarder,DMZCustomArmorLayer):- Cut
StatsData.<init>()on the ClientRender threadfrom20.53%→0.00%(0 ms). - Cut
CustomHair.<init>()from20.00%→0.00%(4 ms). - Cut
DMZRacePartsLayertotal render cost from17.93%→1.08%(16.6× faster).
- Cut
- Smart Distance LOD for DMZCA Villager 3D Voxel Hair (
DMZHairLayer):- Applies exclusively to
NativeMcaPuppetvillagers (real players and UI portraits remain 100% unchanged): sub-pixel detail up to8blocks, solid 3D hair blocks from8–28blocks, culled beyond28blocks, and1physics substep up to12blocks. - Cut
DMZHairLayerfrom5.34%→2.82%(2.2%after warmup). - Optional JVM overrides:
-Ddmzca.hairLodDistanceBlocks=28,-Ddmzca.hairPixelDetailBlocks=8,-Ddmzca.hairPhysicsBlocks=12.
- Applies exclusively to
- Per-Entity Lock-Free Cache for DMZ Ultra
FormPartsLayer.planFor:- Eliminates 1-slot static
lookOfcache thrashing when multiple villagers are visible using an immutableAtomicReferenceArraycache. - Cut
FormPartsLayerfrom3.18%→1.29%(0.9%after warmup).
- Eliminates 1-slot static
- Expanded DMZCA Reflection Helper Caching (+23 helpers, 57 total replaced):
- Added client render reflection helpers including
NativeHybridTailRig.call(2.42%→0.68%),NativeBioTailAnimator.method,NativeTailMotion059.invoke,NpcFusionFaceBlend059.get,PlayerPotaraLeftEarring.call, plusKiControlBridgeand additional field helpers.
- Added client render reflection helpers including
- Automatic Mojmap → Forge 1.20.1 SRG Fallback:
- Automatically resolves Mojang reflection names (
getCompound→m_128469_,putInt→m_128405_,put→m_128365_,width/height→f_96543_/f_96544_), completely eliminatingKiControlBridgeNoSuchMethodExceptionlog spam on Forge 1.20.1.
- Automatically resolves Mojang reflection names (
- Server-Side
GenomeBridge.onTickThrottle:- Redirects per-tick
GeneticLineageArchive.captureNow(entity)insideGenomeBridge.onTickto DMZCA's 128-tick staggeredGeneticLineageArchive.capture(entity).
- Redirects per-tick
Verified Benchmark Impact (Populated MCA + DMZCA Village)
- No Fix:
~23 FPS(44.06% DMZCA server tick + severe reflection & GC stutter) v1.0.0:~50 FPSvolatile (server fixed, but client Render thread 100% CPU-choked with178.87 msframe spikes)v1.1.0:80–110 FPSstable (NativeMcaRenderEventscut from37.70%→15.84%, entity rendering nearly halved,16.04%OpenGL/SwapBuffers CPU headroom restored,0errors inlatest.log)
All Relations
- All Relations
- Embedded Library
- Optional Dependency
- Required Dependency
- Tool
- Incompatible
- Include