Skip to content

QuickLAW/voxy-1.20.1-fix

 
 

Repository files navigation

Copyright 2025 MCRcortex

All rights reserved.

Do not redistribute.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

这只是为1.20.1编译的Voxy版本,包含了一些对整合包中各种模组的兼容性修复、性能优化以及稳定性改进。

主要变更

  • 兼容性与稳定性修复
    • 修复了在 Redis、LMDB 及内存存储后端读取数据时的缓冲区溢出风险,增加了容量检查并能正确抛出异常。
    • 修复了 RocksDB 迭代器未正确关闭的问题(使用 try-with-resources)。
    • 修复了区块数据摄取时的线程安全问题。
    • 修复了映射器中的状态处理和错误处理逻辑。
    • 修复了获取方块颜色时可能出现的空世界参数异常。(针对部分mod方块的修复)。
  • 性能优化
    • 优化渲染系统:将 glFinish 替换为 glFlush 并引入 GPU 围栏(Fence)同步,大幅减少 CPU 渲染等待时间,优化内存释放流程。
    • 优化体素化(Voxelization)过程:引入对象池复用,重构光照数据获取方式,减少内存分配开销。
  • ⚠️ 重大修复:LOD 生成缺失问题
    • 彻底修复了 VoxelIngestService 的任务积压 Bug:修正了信号量(Semaphore)释放逻辑,解决了之前每 16 个区块任务仅处理 1 个的严重缺陷。
    • 优化 LOD 触发时机:确保区块首次渲染时即刻触发 LOD 摄取,大幅提升了新区块的 LOD 生成可靠性。
    • 性能权重平衡:调整了摄取服务的 CPU 优先级,防止其过度占用资源导致渲染生成服务“饿死”。
    • 高速移动支持:放宽了区块摄取的状态门槛,显著提升了高速移动时的 LOD 同步响应速度。
  • 构建与环境
    • 稳定了 Fabric Loom 版本,移除特定的 CI 条件逻辑,确保构建的一致性。
    • Fabric 平台兼容性修复:修复了在 Fabric 原生环境下由于 Mixin 方法签名不匹配导致的启动崩溃问题(针对 Sodium 0.5.13)。
    • 更新模组版本至 0.2.6-alpha-polished.4

测试

经测试,使用信雅联接后在1.20.1版本的forge端目前较为正常,Fabric 原生端也已修复崩溃问题。之前严重影响lod的bug也已修复,目前还在继续测试


This is a Voxy version compiled specifically for 1.20.1, featuring compatibility fixes for various mods, performance optimizations, and stability improvements.

Key Changes

  • Compatibility & Stability
    • Fixed buffer overflow risks in Redis, LMDB, and Memory storage backends by adding capacity checks.
    • Fixed RocksDB iterator leaks using try-with-resources.
    • Resolved thread-safety issues during chunk data ingestion.
    • Improved state and error handling logic in the mapper.
    • Fixed null world parameter exceptions during block color retrieval.
  • Performance Optimizations
    • Rendering: Replaced glFinish with glFlush and implemented GPU Fence synchronization to reduce CPU wait time and optimize memory release.
    • Voxelization: Optimized lighting data management with object pooling and refactored data access for better performance.
  • ⚠️ CRITICAL FIX: LOD Generation Issues
    • Resolved VoxelIngestService Task Backlog: Fixed a critical semaphore release bug that caused only 1/16 of tasks to be processed per section.
    • Optimized LOD Triggering: Ensured LOD ingestion is triggered immediately upon initial render, significantly improving generation reliability.
    • Balanced Performance Weights: Adjusted service priorities to prevent the ingest service from starving the render generation service.
    • High-Speed Movement Support: Relaxed chunk status requirements for ingestion, greatly enhancing LOD synchronization speed during fast movement.
  • Build & Environment
    • Stabilized Fabric Loom version and cleaned up build scripts for better reproducibility.
    • Fabric Compatibility Fix: Resolved startup crashes in native Fabric environments caused by Mixin method signature mismatches with Sodium 0.5.13.
    • Updated mod version to 0.2.6-alpha-polished.4.

About

An LoD rendering mod for minecraft

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

No contributors

Languages

  • Java 95.7%
  • GLSL 4.3%