
注意:这不是我的模组,它是从 StutterFix 移植过来的。
所有功劳归于 wisecase2
StutterFix
StutterFix 是一个允许你配置游戏主线程的模组,从而让你能够控制卡顿现象。默认情况下,该模组已附带一个近似配置以减少卡顿。
新版本 0.1.8 允许你配置线程,我在菜单中添加了一个新选项。
选项菜单
有五个可供配置的选项,其中 N 代表你的处理器支持的线程数量:
工作线程数 (Worker threads count)
原版默认值为 N - 1,StutterFix 默认值为 N - 5,这是执行生成区块等任务所运行的线程数量。数值越小,CPU 开销越低,减少卡顿,但区块生成速度会变慢。
优先级截止点 (Priority cutoff point)
指示工作线程优先级的截止点。数值越高,前一部分线程将具有正常优先级,而后一部分线程将具有最低优先级。该值必须小于工作线程数才能生效,否则所有线程都将具有正常优先级。具有最低优先级的线程有助于减少卡顿。
渲染线程优先级 (Render thread priority)
渲染线程是客户端运行的地方,例如玩家、声音、输入和渲染。
服务器线程优先级 (Server thread priority)
在单人模式中,游戏会启动集成服务器来运行整个世界,例如刻(ticks)、实体以及初始化区块生成(将在工作线程中执行)。此选项仅在单人模式的世界中游玩时出现。
移除 Yield() (Remove Yield())
渲染线程在每个循环中都会调用 yield(),其功能是告知“调度器”当前线程愿意放弃对处理器的当前使用以分配给其他线程。移除 yield() 可以使帧率更稳定。
工作线程数 (Worker Threads Count) 和 优先级截止点 (Priority cutoff point) 的设置在对战多人游戏中效果甚微,因为世界由服务器生成,因此客户端不会因世界生成而产生卡顿问题。
禁用 GUI - 版本 >= 0.2.3
在 .minecraft 目录中的 config 文件夹里有一个 stutterfix-config.json 配置文件,其中包含 "hide_gui" 选项,将其设置为 true 以禁用游戏界面;如果你希望再次显示界面,请将其设置为 false。请注意,需要至少使用更新后的模组启动一次游戏,才能在文件中保留配置。
我推荐的其他模组
我建议将此模组与 Sodium 模组和 Concurrent Chunk Management Engine (C2ME) 一起使用。
警告
该模组不影响由于垃圾回收器引起的卡顿问题。我通过使用 -XX:+UseShenandoahGC 并在 JVM 参数中分配更多内存来减轻该问题,请搜索 Minecraft 的 JVM 参数以获取更多信息。

NOTE: THIS IS NOT MY MOD, IT'S A PORT FROM STUTTERFIX
All credits to wisecase2
StutterFix
StutterFix is a mod that allows you to configure the main threads of the game, allowing you to control stuttering. By default, the mod already comes with an approximate configuration to reduce stuttering.
The new version 0.1.8 allows you to configure threads, I added a new option in the menu.
Option Menu
There are five options available for configuration, with N being the number of threads your processor supports:
Worker threads count
Vanilla default N - 1, StutterFix default N - 5, is the number of threads running to perform tasks like generating chunks. The smaller the value, the less CPU overhead, reducing stuttering, and the slower the chunk generation speed.
Priority cutoff point
Indicates the cutoff point for the priority of worker threads. The higher the value, the higher the first part of the threads will be with normal priority and the lower the last part will be with minimum priority. The value must be less than the number of worker threads to have the cutoff point, otherwise all threads will have normal priority. Threads with minimum priority help reduce stuttering.
Render thread priority
The rendering thread is where the client runs, such as the player, sound, inputs, and rendering.
Server thread priority
In singleplayer mode, the game starts the integrated server that runs the entire world, such as ticks, entities and initializing the generation of chunks (which will be executed in the worker threads). This option only appears when playing in a world in singleplayer mode.
Remove Yield()
The rendering thread has a call made in each loop, called yield(), with the function of informing the “scheduler” that the current thread is willing to abandon the current use of the processor to other threads. Removing yield() can make fps more stable.
The Worker Threads Count, Priority cutoff point setting has little effect in multiplayer because the world is generated by the server and therefore there are no stuttering issues for the client caused by the generation in the world.
Disabling GUI - Version >= -0.2.3
In the config folder in the .minecraft directory there is the stutterfix-config.json configuration file, where there is the "hide_gui" option, set it to true to disable the game interface, if you want the interface again, set it to false. It is worth remembering that it is necessary to start the game with the updated mod at least once to have the configuration in the file.
Other mods I recommend
I recommend using this mod with the Sodium mod and Concurrent Chunk Management Engine (C2ME).
Warnings
The mod does not affect the stuttering problem that occurs due to the garbage collector, I reduced the problem by using -XX:+UseShenandoahGC and allocating more memory in jvm arguments, do a search for jvm arguments for minecraft to get more information.
评论 0
登录后参与评分
还没有评论,来抢沙发吧