System · 4
Optimized texture sampling in the terrain shader to only sample a single texture when the blend value is 1 or 0, reducing texture fetches from 22 to 14.
texture samplingMeasured threaded performance improvements where the per-thread average for generating terrain mesh vertex data dropped to 15ms from 55ms.
threaded performanceChanged how data is gathered for the terrain meshing function by parsing a single prefilled 11x11x11 brick into the marching cubes function, resulting in a 2x faster preparation step and 3x faster marching cubes execution.
data gatheringOptimized the main thread portion of terrain meshing to reduce mesh pop-in time by completing the work in approximately 4ms mostly within a single frame.
main thread processing
Fix · 1
Fixed terrain meshing for mesh workers thrashing the garbage collector by using one block of native memory, reducing garbage generation from 2MB to 10KB.
garbage collection


