Enable terrain streaming during taxi flights with RAM cache

Changed taxi terrain streaming from frozen (9999s) to active (0.3s
interval). The 2GB tile cache now serves tiles from RAM without
blocking, making terrain rendering safe and smooth during flight paths.
This commit is contained in:
Kelsi 2026-02-08 20:05:04 -08:00
parent 4e0e54a0f0
commit 36834332eb

View file

@ -420,10 +420,9 @@ void Application::update(float deltaTime) {
}
if (renderer && renderer->getTerrainManager()) {
renderer->getTerrainManager()->setStreamingEnabled(true);
// Freeze new tile streaming during taxi to avoid hangs; still process ready tiles.
// With 2GB tile cache, keep streaming active during taxi at moderate rate.
if (onTaxi) {
renderer->getTerrainManager()->setUpdateInterval(9999.0f);
taxiStreamCooldown_ = 2.5f;
renderer->getTerrainManager()->setUpdateInterval(0.3f);
} else {
// Ramp streaming back in after taxi to avoid end-of-flight hitches.
if (lastTaxiFlight_) {