(Glide64) Refactor CalculateLOD