Sodium Reloaded (Unofficial)

Sodium Reloaded (Unofficial)

0 Downloads

Excessive memory allocations during chunk meshing

jellysquid3 opened this issue ยท 2 comments

commented

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.

commented

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.

commented

Fixed with e95cc76.