跳到正文

Async Pack Scan

作者:JFronny

Fixes lag while changing resource packs

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

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 支持哪些 Minecraft 版本?

Async Pack Scan 支持 Minecraft Java 版 1.20–26.3,共 20 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

Async Pack Scan 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

JFronny 的其他作品

查看全部 →