Sodium Reloaded (Unofficial)

Sodium Reloaded (Unofficial)

0 Downloads

Fix vanilla fast leaves improper culling

Jetsparrow opened this issue ยท 3 comments

commented

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.
2020-08-24_17 12 43

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.
2020-08-24_16 24 14
2020-08-24_16 24 41

Same map, but with leaves replaced by stone, which provably culls properly.
2020-08-24_16 42 18
2020-08-24_16 42 41

commented

Transparency is probably not an issue: #233 (comment)
However, cutting the amount of vectors would help

commented

issue is resolved (as of 0.4.10 and probably earlier)

commented

Confirmed to be fixed since Sodium 0.3.3.