Fix vanilla fast leaves improper culling
Jetsparrow opened this issue ยท 3 comments
There is a long-standing performance regression in vanilla, from 1.12:
Leaves are not culled when set to fast
Specifically, even completely concealed leaves with opaque textures are not culled.
This means that fast leaves don't offer the performance benefit they should.
This can be verified by building leaves adjacent to a wall, and then going inside in spectator mode.
Mojang seem unwilling to fix it. The same issue was reported back in 2015 and resolved without a fix.
A fix would greatly improve performance on lower-end devices in forested areas.
OpenJDK; Lithium 0.5.1; Phosphor 0.6.0+build.7; Sodium 0.1.0;
These screenshots demonstrate the slowdown. All screenshots taken right after reloading graphics (f3+t)
Single biome taiga map, 24 chunks view distance, no random ticks or mob spawns.
Same map, but with leaves replaced by stone, which provably culls properly.
Transparency is probably not an issue: #233 (comment)
However, cutting the amount of vectors would help