TheGuywithTheHat / terrain

:earth_americas: A 3D terrain simulator with heavy dependency on shaders
3 stars 1 forks source link

Make LOD change more efficient #1

Open TheGuywithTheHat opened 9 years ago

TheGuywithTheHat commented 9 years ago

When the camera moves over a chunk boundary, the LOD for many chunks is recalculated. Currently, the code regenerates all related chunks from scratch, taking about 5 times as long as necessary.

TheGuywithTheHat commented 9 years ago

With 818b5a7, it is now 3 times as efficient, but could still be even more efficient.