作者:rebot | 分类:模组
Minecraft 版本: 1.21.1
平台: neoforge
标签: optimization utility
Caches the EMI item stack list to disk and defers search index building to a background thread, drastically reducing EMI reload time.
Every time you join a world or reload resources, EMI rebuilds the entire item stack list and search index. For modpacks with a large number of mods, this process can take tens of seconds, and the game UI freezes completely while the search index is being built.
EMI Accelerator solves this problem with the following optimizations:
EmiStackList.stacks to JSON and caches it to disk on the first load. Subsequent game launches skip the full reload (around 130ms compared to ~40 seconds).EmiSearch.bake() to a background thread, eliminating roughly 10 seconds of UI blocking.| Command | Description |
|---|---|
/emiacc status |
View cache status, file size, and hit count |
/emiacc clear |
Delete the cache (rebuilds on next launch) |
/emiacc reload |
Trigger an EMI reload manually |
/emiacc reload --force |
Clear cache and force a full EMI reload |
Config file path: config/emi-accelerator/emi-accelerator.properties
| Option | Type | Default | Description |
|---|---|---|---|
cacheEnabled |
boolean | true |
Enable item stack caching |
autoClearOnModChange |
boolean | true |
Automatically clear cache when mod list changes |
maxFileSizeMb |
int | 100 |
Maximum cache file size (MB) |
diagnosticsEnabled |
boolean | false |
Write stage timings to reload-timings.json |
deferredSearchEnabled |
boolean | true |
Enable background deferred search indexing |
EmiReloadManager.reload() → ReloadWorker.run() starts[EMI Accelerator] Search Ready| Mod | Version | Required |
|---|---|---|
| EMI | 1.1.22+ | Yes |
./gradlew build
请登录后举报
暂无评论,抢个沙发吧~