工作原理
降低垃圾回收压力。Minecraft 每秒都会创建并丢弃数千个临时对象——数组、列表、字符串构建器等。每个被丢弃的对象都会增加 Java 垃圾回收器的工作负担,从而在其触发时导致微卡顿。Thulium 预分配可复用的对象池,并从池中借用对象而非创建新对象。它还监控内存使用情况,防止原版过于频繁触发的不必要的 GC 周期。
声音引擎优化。声音系统出乎意料地消耗性能。在声源密集的区域,OpenAL 处理会成为显著的 CPU 瓶颈。Thulium 限制每类同时播放的声音数量,移除在同一位置于 50 毫秒内重复播放的声音,并根据音量剔除超出有效听觉范围的声音。全局同时播放上限设为 80 个,可在避免过载的同时优先保证音乐和语音等重要音频的播放。
Forge 事件总线优化。事件总线每刻都会触发数百个事件。其中许多事件没有任何监听器——即没有模组实际等待这些事件,但总线仍会处理它们。Thulium 定期扫描事件总线,识别出无人监听的事件,并将其标记为可跳过。
移除分析器开销。Minecraft 始终运行其内置的性能分析器(Profiler),即使 F3 调试屏幕已关闭。每一帧都会执行数千次 push/pop/swap 调用,仅用于追踪根本无人关注的性能段。当 F3 关闭时,Thulium 会将活跃的分析器替换为空操作版本,从而消除所有此类开销。当你重新打开 F3 时,它会自动恢复。
渲染循环优化。Minecraft 保留了若干不必要的 OpenGL 功能——抖动、线条平滑、点平滑。Thulium 禁用这些功能,并设置 GPU 驱动提示以在内部计算中优先追求速度而非质量。它还实时监控你的 FPS,并动态调整优化激进程度——当性能下降时切换到更激进的模式。
预期效果
整体 FPS 提升约为 15-25%,具体取决于你的硬件配置。在 CPU 受限的配置下,差异更为明显。该模组还能显著减少由垃圾回收引起的微卡顿。
不修改实体、方块、区块、光照或世界生成。
How it works
Garbage Collector pressure reduction. Minecraft creates and discards thousands of temporary objects every second — arrays, lists, string builders. Every discarded object adds work for Java's Garbage Collector, which causes micro-stutters when it kicks in. Thulium pre-allocates reusable object pools and borrows from them instead of creating new objects. It also monitors memory usage and prevents unnecessary GC cycles that vanilla triggers too often.
Sound engine optimization. The sound system is surprisingly expensive. In areas with many sound sources, OpenAL processing becomes a real CPU bottleneck. Thulium caps simultaneous sounds per category, removes duplicate sounds playing at the same location within 50ms, and culls sounds beyond effective hearing range based on their volume. A global limit of 80 simultaneous sounds prevents overload while prioritizing important audio like music and voice.
Forge Event Bus optimization. The event bus fires hundreds of events every tick. Many of them have zero listeners — no mod is actually waiting for them, but the bus still processes them anyway. Thulium periodically scans the bus, identifies events nobody is listening to, and marks them as skippable.
Profiler overhead removal. Minecraft runs its built-in profiler at all times, even when the F3 debug screen is closed. Every frame, thousands of push/pop/swap calls execute just to track performance sections that nobody is looking at. Thulium replaces the active profiler with a no-op version when F3 is closed, removing all that overhead. When you open F3, it restores automatically.
Render loop optimization. Minecraft leaves several unnecessary OpenGL features enabled — dithering, line smoothing, point smoothing. Thulium disables them and sets GPU driver hints to prefer speed over quality for internal calculations. It also monitors your FPS in real-time and adapts its aggressiveness — switching to a more aggressive mode when performance drops.
Expected results
Overall FPS improvement is roughly 15-25% depending on your system. On CPU-bound setups the difference is more noticeable. The mod also significantly reduces micro-stutters caused by garbage collection.
Does not modify entities, blocks, chunks, lighting or world generation.
下载 Thulium
下载 Thulium
下载 Thulium
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Thulium
下载 Thulium
下载 Thulium
bug 修复 + 配置
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
缓冲的原始输入和线程化的事件轮询
模组
原版世界生成优化模组
模组
一堆修复
模组
专为独立/集成服务器设计的优化模组。
模组
使用异步路径追踪来隐藏不可见的方块/实体
模组
一款旨在提升 Minecraft 区块性能的 Fabric 模组。
评论 0
登录后参与评分
还没有评论,来抢沙发吧