What are you searching for?

Async Pack Scan

Async Pack Scan

Speeds up the resource pack organizer screen

download 354.9K Downloads · favorite 114 Followers · Updated 1 month ago
Cursed Fabric Optimization 1.20 1.20.2 1.20.4 1.20.5 1.21 +10 more

Versions

inventory_2
[1.21.11] 0.2.14

0.2.14 · 1 month ago · 146.71 KB

Fabric 1.21.11
inventory_2
[1.21.10] 0.2.13

0.2.13 · 3 months ago · 120.33 KB

Fabric 1.21.10
inventory_2
[1.21.9] 0.2.12

0.2.12 · 4 months ago · 120.33 KB

Fabric 1.21.9
inventory_2
[1.21.8] 0.2.11

0.2.11 · 6 months ago · 130.18 KB

Fabric 1.21.8
inventory_2
[1.21.7] 0.2.10

0.2.10 · 7 months ago · 130.18 KB

Fabric 1.21.7

About

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
open_in_new View on Modrinth
Compatibility
Client: Required Server: Unsupported
gavel MIT

Conversation

What are your thoughts?

Related projects

Optimization
Sodium
Sodium

by jellysquid3

The fastest and most compatible rendering optimization mod for Minecraft. Now available for both NeoForge and Fabric!

download 118.2M
favorite 32,788
Decoration Optimization
Iris Shaders
Iris Shaders

by coderbot

A modern shader pack loader for Minecraft intended to be compatible with existing OptiFine shader packs

download 90.5M
favorite 23,773
Optimization Utility
FerriteCore
FerriteCore

by malte0811

Memory usage optimizations

download 84.3M
favorite 12,712
Optimization
Entity Culling
Entity Culling

by tr7zw

Using async path-tracing to hide Block-/Entities that are not visible

download 84.0M
favorite 13,759
lock Cookie consent

SkinMC uses cookies to provide functionality and features.