Opaque leaf blocks are not culled, dropping FPS in forest areas.
This is a regression from 1.12.
Linked issues
is duplicated by 1
Attachments
Comments 19
Affects 1.21.1 and 24w39a.
I did some testing, and I can conclude at this point that the speed gain of turning off transparency for leaves by setting graphics option to "fast" is practically 0 in the current version of 1.21.1.
Here are two different perspectives of the same scene with the only difference being either using fast or fancy graphics. The world is a superflat world with all annoying gamerules (like firetick, weather, randomtickrate) turned off. The terrain is 1 layer of bedrock and 200 layers of oak leves. I have uploaded the world as a 7z file attached to this comment.
[media]
Here are some comparison images I took with the debug screen. I used pretty default game settings, only unlocking the framerate and otherwise only changing specified values. The options file used can be downloaded here:
[media]The following content of this comment is a long list of large debug screenshots showcasing different levels performance dictated by different specified setups.
First off, vanilla, fancy graphics, looking off into the horizon:
[media]Second, setting the graphics option to "fast". The framerate seems to be identical for the most part, even though you would think the more simplified "opaque" scene would be orders of magnitude faster to render:
[media]For comparison, here is the same exact scene with the mods "moreculling 1.0.0 beta 1" and "sodium 0.6.0 beta 2" both mods using defualt settings, first fancy graphics, then fast.
[media][media]
Here is another angle, looking down and showing a lot more vertical depth and overlapping of leaves. First: vanilla fancy, Second: vanilla fast, Third: modded fancy with default settings, Fourth: modded fancy with moreculling's leaf culling mode set to "depth", and lastly, Fifth: modded fast with default settings:
[media][media][media][media][media]can confirm in 1.21.4 and 25w03a.
This bug causes a disappointing side effect with a resource pack I'm creating: I wanted to use custom models with planes that cull away to mimic the appearance of connected textures in vanilla , but since leaves wont cull with fast graphics, it doesn't work.
[media]The left tree is a normal oak tree grown from a sapling, with a custom block model on the leaves to create the ctm effect. the right tree is a replica of the left, with lime wool instead of leaves, using the exact same block model json file as the oak leaves. the wool culls properly, while the leaves do not.
Can confirm in 20w51a.