注意事项
自 MC 1.20.5 起,似乎不再需要此模组。 尽管如此,模组间的交互仍可能引发问题,因此我目前将继续为其更新。 如果你没有遇到卡顿现象,可以安全地移除该模组。
原始描述
在原版 Minecraft 中,资源包列表通过同步扫描所有可能的来源进行刷新。
通常这不是问题,但在资源包整理器界面中,每次调整窗口大小以及每二十个游戏刻(ticks)都会执行一次扫描。
如果其他模组(例如 Respackopts)挂钩到包扫描过程并略微增加其耗时,这将导致严重的卡顿,使得在使用多个资源包时该界面几乎无法使用。
此模组通过将计算移至另一个线程,并在这些事件上调度扫描任务来修复该问题,从而显著提升感知性能。
由于原版代码是为同步执行设计的,这可能会在极端情况下引发崩溃等问题,但在我测试中表现良好。
Note
This mod no longer seems to be required as of MC 1.20.5. Nonetheless, interactions between mods might still cause an issue, so I will keep updating it for the time being. If you experience no lag spikes, you can safely remove this mod.
Original Description
In vanilla minecraft, the list of resource packs is refreshed by scanning all possible sources synchronously.
Generally, this is not a problem, but in the resource pack organizer screen, this scan is performed whenever it is resized and every twenty ticks.
If another mod (such as Respackopts) hooks into the pack scan and increases its duration even slightly, this leads to major lag spikes and makes the screen near-unusable when using more than a few packs.
This mod fixes that issue by moving this computation to another thread and scheduling a scan task on those events instead, drastically improving perceived performance.
Since the vanilla code is designed for synchronous execution, this can cause issues like crashes in edge cases, but worked well enough in my testing.
下载 Async Pack Scan
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Async Pack Scan
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Async Pack Scan
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Async Pack Scan
下载 Async Pack Scan
下载 Async Pack Scan
下载 Async Pack Scan
下载 Async Pack Scan
下载 Async Pack Scan
下载 Async Pack Scan
Beta 26.3.0 的提交内容:
- chore: 更新至 26.3
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
缓冲的原始输入和线程化的事件轮询
模组
原版世界生成优化模组
模组
一堆修复
模组
专为独立/集成服务器设计的优化模组。
模组
使用异步路径追踪来隐藏不可见的方块/实体
模组
一款旨在提升 Minecraft 区块性能的 Fabric 模组。
评论 0
登录后参与评分
还没有评论,来抢沙发吧