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]

Related issues

Attachments

Comments

migrated
[media][media][media][media][media][media]
Anon Ymus

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

MiiNiPaa

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.

Aaron Walwyn

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.

Tails

Duplicate of MC-5169.

Tenebrae

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

Tails

You're right, issues like MC-5169 and MC-5417 are most likely with tile entities, while fences don't have those, reopened.

Moff Kalast

As far as i'm concerned fences worked fine in 1.5.2., but in 1.6.2. they make lag spikes again with a greater magnitude .

kumasasa

Confirmed with 1.6.2 and the test world of MC-26765

Jeuv

Conformed in 14w02c. A chunck filled with Fences quarteres my fps.

galaxy_2alex

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.

user-f2760

No response for over a year.

Asteraoth

Confirm for 1.9.3 pre-2

user-f2760

Reopened and gave report to @unknown.

[Bot] Arisa

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

CDES5

Likely affects version 1.11.2 as MC-1138

Misode

I cannot reproduce this in 20w07a. I had over 20K fences, but memory was still below 1 GB, which is not significantly higher than any normal gameplay these days.

Iosiv Visokogorskiy

this still happens in 20w27a?

ampolive

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

ampolive

Still cannot reproduce in 21w40a.

Fireswamped

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

Asteraoth

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

Fireswamped

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