Excessive memory allocations during chunk meshing
jellysquid3 opened this issue ยท 2 comments
Something regressed in Sodium 0.4.x and it's been causing significantly elevated memory allocation rates when chunk meshing occurs. Given these code paths should have already pre-allocated their per-thread resources, we shouldn't really expect to see allocations.
We need to investigate & fix the underlying issue since these memory allocations create significant garbage collector pressure.
A lot of improvements were made to the cloned chunk section cache to avoid the heaviest allocations. But we still seem to create an absurd number of allocations in DefaultMaterials.forBlockState
because of the redirectLeavesGraphics
injection we make.
Fixed with e95cc76.