mojira.dev
MC-5417

Large amount of chests and shulker boxes creates FPS drop

The bug

When a large amount of chests are in a nearby area, the FPS drops very low.

Additional note

Performance has deteriorated significantly since version 1.13.

How to reproduce

Use the provided

[media]

world to test or use this command when you are in an open area:

/fill ~ ~ ~ ~20 ~20 ~20 minecraft:chest

Screenshots/Videos

Here is an example in video:

[media]

Linked issues

Attachments

Comments 47

Chests are tile entities which also suck a lot of resources. Lag is not a bug. Also, 10 chests trigger that much lag? I have 14 in my singleplayer world with absolutely no lag.

Patrick Grønhøj

That is true they are, in a way i wish they could be optimized in a way, and only way for that to happen to notify a bit about it.

also 10 chests is no problem, 100 isn't, but 10.000+ chests and it does lag, trust me.

Oh, ten thousand?

Patrick Grønhøj

Yes Ten thousand+. I like having a large storage place for my items 😉

Sorry, the U.S. has . and , switched.

37 more comments

Can confirm in 1.19.1.

Can confirm in 1.19.2.

Found a partial fix, (-DspriteAtlasTextures:false) will cause fps to range from 40 to 60 instead of 10 to 20 using same Chest Test.zip , note that in a lot of cases this problem is due to low memory amount.

 There is a mod that addresses this issue: https://modrinth.com/mod/ebe

J4PC the mod patches alike to my fix, does not completely remove.

Patrick Grønhøj

Asteraoth

(Unassigned)

Confirmed

Platform

Normal

Performance

chest, fps, fps-drop, performance

Minecraft 1.4.6, Minecraft 1.7.4, Minecraft 1.9.2, Minecraft 1.9.3 Pre-Release 1, Minecraft 1.9.3 Pre-Release 2, ..., 1.21, 1.21.1, 24w38a, 1.21.3, 1.21.4

Retrieved