Painting Culling - FxMorin/MoreCulling GitHub Wiki
On this page, we will compare vanilla, sodium, and MoreCulling.
This optimization is not very large, however it can help when a lot of paintings are being used.
We cull the back, and the inner walls of paintings.
Comparing Performance
These test comparisons are using 330 paintings of various sizes.
Vanilla: ~390 fps
Sodium: ~405 fps
MoreCulling: ~460 fps
Sodium + MoreCulling: ~490 fps
As you can see, MoreCulling has a large improvement when rendering paintings. With both Vanilla and Sodium.
How it works
For some reason, mojang renders every single painting as if each block was its own painting. So between every block, the painting renders its border within itself. You can't see it, but its affecting your performance. We simply stop rendering these if its not the outside of the frame. We also do some culling checks and remove the back of the painting if you can't see it.