branchrust_reboot/main/optimize_generate_textures_alloccancel
5 Commits over 0 Days - Infinitycph!
Revert back to TerrainMeta.GetHeights() that returns a 64MB managed array
- keep the NativeArray for the textures themselves
- fixes mismatch from GetHeight01() not returning the same value as the terrain's heightmap
- tried calling GetHeight() on each pixel instead but is off by 1 step for certain heights so playing it safe
merge from main -> optimize_generate_textures_alloc
Fix VS putting the wrong class name
Fix heap watermark allocation of 280MB when generating textures on startup
- switch from using managed array buffers in GenerateTextures() to NativeArray + Get/SetPixelData()