mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 07:40:14 +00:00
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:
parent
4e0e54a0f0
commit
36834332eb
1 changed files with 2 additions and 3 deletions
|
|
@ -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_) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue