shedaniel / RoughlyEnoughItems

Clean and Configurable. Your recipe viewer mod for 1.13+.
Other
326 stars 65 forks source link

[Bug] Game freezes for several seconds when opening inventory for the first time #1683

Open szernex opened 1 month ago

szernex commented 1 month ago

What happened?

The game freezes for several seconds when you open the inventory for the first time per session with a bunch of mods installed. Subsequent opening of the inventory is fine, but the first time always takes up to 10 seconds on my machine where the game appears frozen which makes for an unpleasant experience.

What mod loaders are you seeing the problem on?

Fabric

What do you think this bug is of?

Relevant log output

Relevant logs are attached.

Anything else?

I am aware that I'm using a lot of mods which add a lot of items, but I remember REI not completely freezing the game when opening the inventory in the past, it would just run in the background until all items are loaded. This issue happens regardless of which Thread setting is being used (REI thread or main thread).

latest.log rei.log

By submitting this issue, I have included the necessary logs by pasting the contents into the correct location or attaching the file as an upload.

By submitting this issue, I have confirmed my REI and REI's dependencies are up to date.

shedaniel commented 1 month ago

This is caused by the caching entry rendering, it takes time to prerender every item in the game. Turn it off if unwanted.

szernex commented 1 month ago

I already tried turning it off and it makes no difference. With my current configuration of mods on my machine it takes over 8 seconds to first open my inventory, regardless of having Cached Rendering enabled or not.

latest.log rei.log