Async Pack Scan 图标

Async Pack Scan

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 26.1.0
本资源为搬运资源,原资源地址: https://modrinth.com/mod/async-pack-scan
资源信息

Minecraft 版本: 26.1 26.1.1 26.1.2

平台: fabric

标签: cursed optimization

资源介绍

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.

Suggestions and Support
📥 下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
LieOnLion's Enderite

价格:0 墨喵币
下载量:0

查看详情
Ender Tendril

价格:0 墨喵币
下载量:0

查看详情
Unusual Prehistory 2

价格:0 墨喵币
下载量:0

查看详情
Fzzy Config

价格:0 墨喵币
下载量:0

查看详情