isXander / YetAnotherConfigLib

YetAnotherConfigLib (yacl) is just that. A builder-based configuration library for Minecraft.
GNU Lesser General Public License v3.0
97 stars 37 forks source link

Make webp/gif preload happen during the reload progress #164

Open MATRIX-feather opened 5 months ago

MATRIX-feather commented 5 months ago

Since 3.3.2 we have a feature that preloads all webp and gif files used by mods, and all these processes are done at the beginning of the reload.

The problem is that if a mod has lots of these files, this could lead to a big lag spike when the user presses F3+T before the reload screen appears.

It's not a big deal, but still pretty annoying. So my thought is to make the preload happen during the reload progress (and it would be better if we could reduce the lag) so that it doesn't block when someone decides to reload resources in the game.

isXander commented 5 months ago

It shouldn't be blocking. It's a problem if it's blocking!