StutterFix
StutterFix 是一个模组,允许你配置游戏的主线程,从而控制卡顿现象。默认情况下,该模组已附带一个用于减少卡顿的近似配置。
新版本 0.1.8 允许你配置线程,我在菜单中添加了一个新选项。
选项菜单
共有五个可配置的选项,其中 N 代表你的处理器支持的线程数:
工作线程数量
原版默认值为 N - 1,StutterFix 默认值为 N - 5,这是执行生成区块等任务所运行的线程数量。数值越小,CPU 开销越低,卡顿减少,但区块生成速度会变慢。优先级截止点
指示工作线程优先级的截止点。数值越高,前一部分线程将具有普通优先级,后一部分线程将具有最低优先级。该值必须小于工作线程的数量才能生效,否则所有线程都将具有普通优先级。具有最低优先级的线程有助于减少卡顿。渲染线程优先级
渲染线程是客户端运行的地方,包括玩家、声音、输入和渲染。服务器线程优先级
在单人模式中,游戏会启动集成服务器来运行整个世界,例如刻、实体以及初始化区块生成(将在工作线程中执行)。此选项仅在单人模式的世界中游玩时出现。移除 Yield()
渲染线程在每个循环中都会调用 yield(),其功能是通知“调度器”当前线程愿意放弃处理器的使用以让给其他线程。移除 yield() 可以使帧率更稳定。
工作线程数量和优先级截止点设置在多人游戏中效果甚微,因为世界由服务器生成,因此客户端不会因世界生成而产生卡顿问题。
禁用 GUI - 版本 >= 0.2.3
在 .minecraft 目录下的 config 文件夹中,有一个 stutterfix-config.json 配置文件,其中包含 "hide_gui" 选项,将其设置为 true 即可禁用游戏界面;如果希望重新启用界面,请将其设置为 false。需要注意的是,至少需要以更新后的模组启动一次游戏,才能使配置文件生效。
我推荐的其他模组
我建议将此模组与 Sodium 模组和 Concurrent Chunk Management Engine (C2ME) 配合使用。
更新日志
在 0.1.5 及更早版本中,所有这些工作线程都具有最低优先级,由于区块生成的响应能力较低,我决定发布 0.1.6 版本,使工作线程具有普通优先级。
在 0.1.7 版本中,我想到将前半部分的工作线程设为普通优先级,后半部分设为最低优先级,以更好地减少卡顿并提高区块生成时的响应能力。
在 0.1.8 版本中,我在菜单中创建了配置线程的选项,并移除了 Thread.yield() 的移除操作,因为它会与 VulkanMod 等其他模组发生冲突。
在 0.1.9 版本中,添加了移除 yield() 选项,如果你使用 VulkanMod,此选项将不会出现在菜单中。工具提示已得到改进。
在 0.2.0 版本中,对 GUI 进行了更改,以解决与某些模组(如 bedrockify)的兼容性问题。
警告
该模组不会影响由垃圾回收器引起的卡顿问题。通过使用 -XX:+UseShenandoahGC 并在 JVM 参数中分配更多内存,我减轻了这一问题。请搜索 Minecraft 的 JVM 参数以获取更多信息。
如果遇到任何问题,请在 Github 上报告问题。
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).
Changelog
In versions 0.1.5 and earlier, all these worker threads have minimum priority, due to the low responsiveness in chunk generation I decided to release 0.1.6 with the worker threads in normal priority.
In version 0.1.7 I had the idea of leaving the first half of the worker threads with normal priority and the last half with minimum priority to better reduce stuttering and better responsiveness when generating chunks.
In version 0.1.8, I created the option in the menu to configure threads and also removed the removal of Thread.yield() as it was conflicting with other mods like VulkanMod.
In version 0.1.9, the remove yield() option was added, if you use VulkanMod, this option will not appear in the menu. The tooltip has been improved.
In version 0.2.0, changes were made to the gui, to resolve compatibility issues with some mods, such as bedrockify.
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.
If you encounter any issues, please report the issue on Github.
下载 StutterFix
下载 StutterFix
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 StutterFix
下载 StutterFix
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 StutterFix
下载 StutterFix
下载 StutterFix
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 StutterFix
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 StutterFix
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 StutterFix
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
- 添加了禁用 GUI 的选项
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
评论 0
登录后参与评分
还没有评论,来抢沙发吧