⚠️ 注意:本模组已停止维护。
它仍然可以在 Minecraft 1.21.11 中完美运行,但不会再获得未来的更新。一个更好且积极维护的、包含额外修复的版本可在以下链接获取:
这是一个用于 Fabric Minecraft 1.21.11 的小型客户端模组。它可以防止在服务器上接收或发送聊天消息时游戏出现卡顿或停顿。
在原版 Minecraft 中,游戏在主渲染线程上处理聊天消息。这是将游戏画面绘制到屏幕上的同一个线程。当消息到达时,游戏会暂停所有操作以执行几项繁重任务:
如果其中任何任务即使只花费几毫秒,你的游戏就会卡顿。如果它们花费的时间更长,游戏就会一直冻结直到任务完成。
该模组会在聊天消息到达的瞬间拦截它们,并将繁重的处理工作移至专用的后台线程。这允许主游戏线程继续无中断地渲染帧。
由于处理是在后台进行的,你可能会注意到聊天框中的消息出现前有非常轻微的延迟,但你的帧率将保持流畅和稳定。
此模组仅在离线模式下经过测试,我甚至不确定在线模式下这是否是一个真正的问题。但由于处理过程在所有情况下都相同,因此应该对任何人都有效。
⚠️ Notice: This mod is unmaintained.
It still works perfectly fine for Minecraft 1.21.11, but will not receive future updates. A better, actively maintained version with additional fixes is available here:
This is a small client-side mod for Fabric Minecraft 1.21.11. It prevents the game from freezing or stuttering when chat messages are received or sent on servers.
In vanilla Minecraft, the game processes chat messages on the main render thread. This is the same thread that draws the game to your screen. When a message arrives, the game stops everything to do several heavy tasks:
If any of these tasks take even a few milliseconds, your game will stutter. If they take longer, your game will freeze until the task finishes.
This mod intercepts chat messages the moment they arrive and moves the heavy processing to a dedicated background thread. This allows the main game thread to continue rendering frames without interruption.
Because the processing happens in the background, you might notice a very slight delay before a message appears in your chat box, but your framerate will remain smooth and consistent.
This was only tested on offline mode I am not even sure if it's a real problem in online mode. But the processing is done same everywhere so it should work for anyone
评论 0
登录后参与评分
还没有评论,来抢沙发吧