Showing the changes to interface/src/LODManager.cpp (1 of 1 file). Show all
Unified · Split
| @@ -70,7 +70,7 @@ void LODManager::autoAdjustLOD(float realTimeDelta) { · 69 unmodified lines | ||
| 70 | 70 | // Note: we MUST clamp the blend to 1.0 for stability |
| 71 | 71 | float blend = (realTimeDelta < LOD_ADJUST_RUNNING_AVG_TIMESCALE) ? realTimeDelta / LOD_ADJUST_RUNNING_AVG_TIMESCALE : 1.0f; |
| 72 | 72 | _avgRenderTime = (1.0f - blend) * _avgRenderTime + blend * maxRenderTime; // msec |
| 73 | − if (!_automaticLODAdjust) { | |
| 73 | + if (!_automaticLODAdjust || _avgRenderTime == 0.0f) { | |
| 74 | 74 | // early exit |
| 75 | 75 | return; |
| 76 | 76 | } |