
Moonlit Performance Enhancement Module
ArchivedMinecraft Optimization Specialist! Greatness needs no words!
120.7k
19
Moonlit Performance Enhancement Module has been archived. Moonlit Performance Enhancement Module will not receive any further updates unless the author decides to unarchive the project.
Compatibility
Minecraft: Java Edition
1.21–1.21.1
1.20.x
1.19.4
Platforms
Supported environments
Links
Details
Licensed MIT
Published 6 months ago
Updated 4 months ago
Changelog
Moonlit Performance Enhancement Module Changelog📝
- 修复剔除功能失效问题
- 细节(可能存在的不准确请忽略,非专业报告)
- 异步路径追踪算法 (Async Path-Tracing)
- Spatial Hashing
- 用途:快速定位相邻方块
- 公式:hash = (x * 0x2B9F9F9FL) ^ (z * 0x7FB5D5L) ^ y
- 3.多级回退策略 (Multi-Level Fallback)
- 三级判定架构:
- 4. 概率预筛选算法 (Probabilistic Pre-Check)
- 用途:减少深度计算
- 公式:
- if (spatialHash % 100 < rejectionRate * 100) → 直接剔除
- 参数:rejectionRate:配置控制(默认0.15)
- 5. 连接性分析算法 (Connectivity Analysis)
- 树叶剔除规则: for (方向 in 非对向4方向) { if (相邻方块是树叶) { if (++连接数 ≥ minConnections) return true; } }
- 预计算优化:使用EnumMap缓存方向关系
- 排除对向方向减少计算量
- Fix Cull
- Use Async Path-Tracing,Spatial Hashing,Multi-Level Fallback,Probabilistic Pre-Check,Connectivity Analysis,Cache Management,Dynamic Threading to cull





