[MC-5417] Large amount of chests and shulker boxes creates FPS drop Created: 27/Dec/12  Updated: 24/Dec/24

Status: Reopened
Project: Minecraft: Java Edition
Component/s: None
Affects Version/s: 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, Minecraft 1.9.3 Pre-Release 3, Minecraft 1.9.3, Minecraft 16w20a, Minecraft 16w21a, Minecraft 16w21b, Minecraft 1.10 Pre-Release 1, Minecraft 1.10 Pre-Release 2, Minecraft 1.10, Minecraft 1.10.2, Minecraft 16w32b, Minecraft 16w40a, Minecraft 1.11, Minecraft 17w13b, Minecraft 17w15a, Minecraft 1.12.2, Minecraft 17w45b, Minecraft 18w07a, Minecraft 18w07c, Minecraft 18w11a, Minecraft 18w20c, Minecraft 18w22c, Minecraft 1.13-pre2, Minecraft 1.13-pre5, Minecraft 1.13-pre7, Minecraft 1.13-pre8, Minecraft 1.13, Minecraft 18w30a, Minecraft 18w30b, Minecraft 18w31a, Minecraft 18w32a, Minecraft 18w33a, Minecraft 1.13.1-pre1, Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 18w43a, Minecraft 18w45a, Minecraft 18w46a, Minecraft 18w48a, Minecraft 18w48b, Minecraft 18w49a, Minecraft 19w04b, Minecraft 19w07a, Minecraft 19w12b, Minecraft 19w13b, Minecraft 19w14a, Minecraft 19w14b, Minecraft 1.14.3, 1.14.4, 19w45b, 1.15.2, 20w12a, 1.16 Pre-release 2, 1.16, 1.16.1, 20w30a, 1.16.2 Pre-release 1, 1.16.2 Release Candidate 1, 1.16.2 Release Candidate 2, 1.16.2, 1.16.3 Release Candidate 1, 1.16.3, 1.16.4 Pre-release 2, 1.16.4, 20w48a, 20w51a, 21w03a, 1.16.5, 21w05a, 21w05b, 21w06a, 21w07a, 21w11a, 21w14a, 21w17a, 1.17 Pre-release 2, 1.17 Release Candidate 2, 1.17, 1.17.1, 21w44a, 1.18, 1.18.1, 1.18.2, 22w11a, 1.19, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 23w14a, 1.20 Release Candidate 1, 1.20, 1.20.1, 1.20.2, 1.20.4, 1.20.6, 24w18a, 24w19b, 1.21, 1.21.1, 24w38a, 1.21.3, 1.21.4
Fix Version/s: None

Type: Bug
Reporter: [Mod] Asteraoth Assignee: Unassigned
Resolution: Unresolved Votes: 91
Labels: chest, fps, fps-drop, performance

Attachments: PNG File 2022-12-08_22.57.15.png     Zip Archive Chest Test.zip     File MC-5417.mp4     PNG File MC-5417.png     PNG File far-from-chests.png     PNG File near-to-chests-early.png     PNG File near-to-chests-late.png    
Issue Links:
Duplicate
is duplicated by MC-15047 massive chest lag Resolved
is duplicated by MC-127273 Many chest's makes *BIG* lag spike! Resolved
is duplicated by MC-164208 Chests create huge FPS lag Resolved
is duplicated by MC-187804 too many chest is laggier Resolved
is duplicated by MC-207559 Chests causing insane FPS drops Resolved
is duplicated by MC-230613 FPS drop when looking at chests / tra... Resolved
is duplicated by MC-244997 FPS drop in area with lot of chests Resolved
is duplicated by MC-271606 Large numbers of tile entities holdin... Resolved
Relates
relates to MCPE-137537 Chests cause huge frame drops! While ... Open
relates to MC-5169 Huge FPS drop in areas with a lot of ... Reopened
relates to MC-14983 Massive Lag when looking into directi... Resolved
relates to MC-252693 Huge FPS drop in areas with a lot of ... Resolved
relates to MC-258382 Huge FPS drop in areas with a lot of ... Resolved
relates to MC-260823 Banners with multiple pattern layers ... Resolved
relates to MC-276877 Chests are far more expensive to rend... Resolved
relates to MC-276881 Shulker boxes are far more expensive ... Resolved
relates to MC-1138 Item frames cause lag / huge FPS drop... Resolved
CHK:
Confirmation Status: Confirmed
Category:
Performance
Mojang Priority: Normal
Area: Platform

 Description   

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 Chest Test.zip 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: MC-5417.mp4



 Comments   
Comment by David J. Romrell [ 02/Sep/24 ]

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

Comment by J4PC [ 14/Aug/24 ]

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

Comment by David J. Romrell [ 24/Jun/24 ]

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.

Comment by [Mod] Avoma [ 14/Sep/22 ]

Can confirm in 1.19.2.

Comment by [Mod] Avoma [ 29/Jul/22 ]

Can confirm in 1.19.1.

Comment by [Mod] Avoma [ 08/Jun/22 ]

Can confirm in 1.19.

Comment by El [ 20/Mar/22 ]

Having these issues as well. Removing chests and signs greatly improved FPS. I am playing version 1.18.1

Comment by Bloodlex [ 03/Mar/22 ]

Will it ever be fixed?

Comment by [Mod] Avoma [ 02/Mar/22 ]

Can confirm in 1.18.2.

Comment by [Mod] Avoma [ 14/Dec/21 ]

Can confirm in 1.18.1.

Comment by Bloodlex [ 08/Dec/21 ]

Could you please fix this? It's really important for my server, because we must have a lot of chests in one place and our players can't play. Their FPS drop to extreme low values

Comment by Iosiv Visokogorskiy [ 10/Nov/21 ]

21w44a

Comment by [Mod] Avoma [ 11/Aug/21 ]

Can confirm in 1.17.1.

Comment by [Mod] ampolive [ 08/Jun/21 ]

Can confirm in 1.17 Release Candidate 2. Drops from 50-60 to 12-15 fps.

Comment by [Mod] Avoma [ 30/Apr/21 ]

Can confirm in 21w17a.

Comment by [Mod] Avoma [ 13/Apr/21 ]

Can confirm in 21w14a.

Comment by [Mod] Avoma [ 18/Feb/21 ]

Can confirm in 21w07a. Video attached.

Comment by [Mod] Avoma [ 12/Feb/21 ]

Can confirm in 21w06a.

Comment by [Mod] Avoma [ 04/Feb/21 ]

Can confirm in 21w05b.

Comment by [Mod] Avoma [ 21/Jan/21 ]

Can confirm in 21w03a.

Comment by [Mod] Avoma [ 24/Dec/20 ]

Can confirm in 20w51a.

Comment by [Mod] Avoma [ 25/Nov/20 ]

Can confirm in 20w48a.

Comment by Iosiv Visokogorskiy [ 02/Jul/20 ]

still happens in 20w27a

Comment by Iosiv Visokogorskiy [ 25/Jun/20 ]

Still present in 1.16.1

Comment by BritishDerp [ 05/Apr/20 ]

I hope to get this 'bug' some more attention by adding my observations.

Chests require a bit of optimising. They have become heavier and heavier on client FPS as new updates come out. 1.15.2 is terrible with large amounts of chests, getting closer and closer to unplayable now compared to 1.14.4 and previous versions.

In my SMP server (just for me and one other) my storage room/s contain about 2000 chests only (1000 double chests) and seeing as they are all in the same area, they are all rendered at the same time.
Obviously it was important to take the world into single player for testing to remove any effects from running it on a server - there was no difference between them, however.
My testing conditions included a 6 chunk render distance that allowed all the chests to be loaded, and nothing much else.

Test 1: I began by recording my FPS with everything normal (all 2000 chests) from a single point with all chests in my rendered FOV.
This granted only 35FPS.

Test 2: I replaced every single chest with air.
This granted 52FPS.

Test 3: I replaced every chest with hoppers.
This granted 48FPS.

Test 4: I replaced every chest with barrels.
This granted 49FPS.

Test 5: I replaced every chest with single chests (as they are normally all double chests).
This granted 36FPS.

 

Now this is all good proof of the effects chests cause in a real world situation. Here are the same tests in a brand new superflat world, also in 1.15.2.
My testing conditions included, again, a 6 chunk render distance, and a 20x20x20 cube of 8000 blocks.

Test 1: All air blocks.
This granted 142FPS

Test 2: All single chest blocks.
This granted 20FPS

Test 3: 50% (4000) single chest blocks.
This granted 37FPS

Test 4: All double chest blocks (4000 double chests).
This granted 18FPS

Test 5: All hoppers.
This granted 125FPS

Test 6: All barrels.
This granted 142FPS

From what I have learnt, chests are alike hoppers and barrels in that they are block entities, however, they have some differences. Barrels are full blocks, hoppers are non-full blocks, and chests are animated non-full blocks. I'd assume that it is a lot more demanding for the game to render an animated, non-full block, than other block entities.

Comment by bdm68 [ 12/Feb/19 ]

This is very easy to replicate.

1. Create superflat void world. Set world to Peaceful. Unlimited frame rate, turn off Vsync.
2. Press F3 to get FPS settings without chests.
3. Use the fill command to insert 8000 chests in the world in a 20×20×20 cube.
4. Check FPS. -> It will be much lower
5. Pause game.
6. Check FPS -> Low FPS persists even when paused (it can be shown using Shift-F3 that chest rendering is the cause of the issue)

With my testing on a potato computer, I was getting about 150 FPS without chests, about 4 fps with 8000 chests.

Comment by Anonymous [ 16/Jun/18 ]

I am quite sure it is due to the fact that chests are more advanced than your average block, and having lots of them rendered at a time drops FPS.

Comment by [Bot] Arisa [ 24/Jun/16 ]

Please do not mark unreleased versions as affected.
You don't have access to them yet.

Comment by [Mod] Asteraoth [ 03/May/16 ]

@FVbico Thanks and you forgot to reopen.

Comment by user-f2760 (Inactive) [ 02/May/16 ]

Reopened and gave report to Asteraoth.

Comment by [Mod] Asteraoth [ 02/May/16 ]

Confirm for 1.9.3 pre-2

Comment by user-f2760 (Inactive) [ 17/Mar/16 ]

No response for over a year.

Comment by Galaxy_2Alex [ 30/Oct/14 ]

Is this still a concern in the current Minecraft version? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases. If this has been done, we can reopen the issue.

Keep in mind that the "Resolved"-Status on this ticket just means "Answered", and that we are waiting for further information on whether this issue still exists or not. We will reopen it as soon as the requested information has been deliviered.

Comment by Galaxy_2Alex [ 24/Mar/14 ]

A chest is made out of at least 3 polygons, probably even more. Just 3 already need 3 times the resources to render. At some point, even a very good computer can't handle it. If you create a flat world full of chests, it probably would even lag the best computer.Java has limits. Mojang can't, as far as I can tell, do anything about it.

Comment by Anon Ym [ 22/Jan/14 ]

I made an interesting observation today: After installing Optifine, the FPS-Drop only happened while looking into the direction of the chests, similar to MC-14983. So at least it should be possible to reduce the problem into something like that. Also: Why is this bug still marked as unconfirmed?

Comment by Anon Ym [ 15/Jan/14 ]

This world has 7296 chests and as many trapped chests. FPS drop from 60 (at a distance from which the chests are not visible) to 8 (at a distance from which all chests are visible). Also, while staying close to the chests, the time spent in root.gameRenderer.level.entities keeps increasing for some time. I tested all this in 1.7.4.

Comment by Talven81 [ 26/Nov/13 ]

Is this still a concern in the current Minecraft version 1.7.2 / Launcher version 1.3.4 ? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.

Comment by Marios [ 25/Mar/13 ]

If you travel away from that place so that it unloads and look straight (not up, not down) and wait for chunk updates to drop to 0, how many fps do you get? What's the java's cpu usage at that point?
Also how many fps do you get in that warehouse with 0 chunk updates and what's the cpu usage?

Comment by Pixelgraph [ 04/Jan/13 ]

I only noticed this in the player market in Lavacraft.

Comment by Dean Baset [ 28/Dec/12 ]

This does make sense. Chests are tile entities, and this relates with signs, which are also tile entities...

Comment by Patrick Grønhøj [ 27/Dec/12 ]

ah alright, that does explain some, thank you, i'm danish so it's not always easy.

Comment by Kumasasa [ 27/Dec/12 ]

Removed decimal separator from 10 mil in the description (in english speaking countries the comma is the thousands separator and dot the decimal separator)

Comment by Anon Ymus [ 27/Dec/12 ]

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

Comment by Patrick Grønhøj [ 27/Dec/12 ]

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

Comment by Anon Ymus [ 27/Dec/12 ]

Oh, ten thousand?

Comment by Patrick Grønhøj [ 27/Dec/12 ]

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.

Comment by Anon Ymus [ 27/Dec/12 ]

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.

Generated at Sun Jan 12 12:07:50 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.