isXander / isXander/YetAnotherConfigLib

Make webp/gif preload happen during the reload progress

Open
#164 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
155
Forks
68
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the existing webp/gif preload path and the resource reload flow, since the issue names no files or tests. Confirm that preloading runs during the reload progress rather than before the reload screen appears, and verify that F3+T no longer causes the reported lag spike.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
game-dev, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.