mojira.dev
MC-7895

Large amount of fences impact performance

Looking at a large amount of fences will cause your FPS to drop and GPU usage to stay high.

Steps to Reproduce:

  1. Open the provided world

[media]
  1. Look in a direction where the fences are not in view

  2. Look at the fences are in view

Observed Behavior:
When you looking into the direction of the fences, your FPS will be lowered and your GPU usage will rise.

[media]

Expected Behavior:
Your FPS does not drop and GPU usage stays low.

[media]

Linked issues

Attachments

Comments 22

Solution: get a more powerful computer! This isn't a bug with Minecraft, rather a technical limitation, so please resolve as invalid.

Cannot reproduce. Spawned a structure made of 15000 fences, run on my PC and laptop without problem. Do you use any mods (looks like you use something for realistic shadows)? If so, problem is in mod, not in vanilla Minecraft.

I can assure you that my computer is powerful enough. Both YouTubers Vechs and GenerikB have done videos in the past of how fences cause lag. The images attached were rendered out of the game using chunky, they were just used as example structures.

Duplicate of MC-5169.

@[Mod] Tails: You sure? That issue is related to signs and the text on them, this issue is related to fences.

12 more comments

Besides causing absurd client-side lag, the memory itself is unaffected. So, I cannot reproduce in 1.17.1.

Still cannot reproduce in 21w40a.

can only consistently cause the GPU increase.  Am I missing something?

@unknown How are you trying to reproduce this? Did you open MC-26765's world? Can you try the new provided world?

I appreciate you giving a better test environment. Note I am using java 22.0.1 instead of 21.0.3: 

  1. in plain minecraft I get slightly less fps drop(40 to 60 which is around a 50% and in yours you shared around 85%)

  2. with a datapack adding custom noise function without all my customizations I get ~25(20 to 30) fps drop

  3. with a datapack adding custom noise function and with all my customizations I get ~0(0 to 5) fps drop

 

Let me know if any more info would be helpful.

Aaron Walwyn

Asteraoth

(Unassigned)

Confirmed

Platform

Normal

Performance

Minecraft 1.4.7, Snapshot 13w03a, Minecraft 1.6.2, Minecraft 14w02c, Minecraft 1.9.2, ..., 1.17, 1.18, 1.19, 1.20.6, 1.21.3

Retrieved