Added semaphores to prevent lag in LOD generation threads