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.
How to Install Async Pack Scan (Mod)
Async Pack Scan by JFronny is verified for Fabric across Minecraft versions 1.20, 1.20.2, 1.20.4, 1.20.5, 1.21, 1.21.1, 1.21.10, 1.21.11 (latest release: 26.3.0, file size: 134 KB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (1.20, 1.20.2, 1.20.4, 1.20.5, 1.21, 1.21.1, 1.21.10, 1.21.11) and platform (Fabric).
- Make sure you have the compatible loader or environment installed for Fabric.
- Move the downloaded Async Pack Scan file into your Minecraft
.minecraft/modsfolder and launch the game.
All Versions
+ Add Version- chore: update to 26.3
- fix: use WrapOperation
- build: bump scripts
- chore: update package
- chore: update to 26.2
- chore: update to 26.1
- chore: update to 1.21.11
- chore: update to 1.21.10
- chore: update to 1.21.9
- chore: update to 1.21.8
- chore: update to 1.21.7
- chore: update to 1.21.6
- chore: update to 1.21.5
- chore: update to 1.21.4
- chore: update to 1.21.3
- chore: update to 1.21
- chore: update to 1.20.5