From 1cf485d149c32127a5c85f94ac7e40fbbeb8d4f1 Mon Sep 17 00:00:00 2001 From: Kelsi Date: Thu, 26 Feb 2026 03:06:17 -0800 Subject: [PATCH] Increase terrain load radius during taxi flights to fix missing tiles Load radius was reduced to 3 during taxi (from 4 normal), causing tiles to not load fast enough at 32 u/s flight speed. Increased to 6 and restored update interval to 0.033s for responsive tile detection. --- src/core/application.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/core/application.cpp b/src/core/application.cpp index 994813c6..6ecaaf03 100644 --- a/src/core/application.cpp +++ b/src/core/application.cpp @@ -935,10 +935,11 @@ void Application::update(float deltaTime) { } if (renderer && renderer->getTerrainManager()) { renderer->getTerrainManager()->setStreamingEnabled(true); - // Keep taxi streaming responsive so flight paths don't outrun terrain/model uploads. - renderer->getTerrainManager()->setUpdateInterval(onTaxi ? 0.1f : 0.1f); - renderer->getTerrainManager()->setLoadRadius(onTaxi ? 3 : 4); - renderer->getTerrainManager()->setUnloadRadius(onTaxi ? 6 : 7); + // Taxi flights move fast (32 u/s) — load further ahead so terrain is ready + // before the camera arrives. Keep updates frequent to spot new tiles early. + renderer->getTerrainManager()->setUpdateInterval(onTaxi ? 0.033f : 0.033f); + renderer->getTerrainManager()->setLoadRadius(onTaxi ? 6 : 4); + renderer->getTerrainManager()->setUnloadRadius(onTaxi ? 9 : 7); renderer->getTerrainManager()->setTaxiStreamingMode(onTaxi); } lastTaxiFlight_ = onTaxi;