Showing the changes to interface/src/LODManager.cpp (1 of 2 files). Show all
Unified · Split
| @@ -86,10 +86,11 @@ void LODManager::autoAdjustLOD(float realTimeDelta) { · 85 unmodified lines | |||
| 86 | if (_octreeSizeScale < ADJUST_LOD_MIN_SIZE_SCALE) { | 86 | if (_octreeSizeScale < ADJUST_LOD_MIN_SIZE_SCALE) { |
| 87 | _octreeSizeScale = ADJUST_LOD_MIN_SIZE_SCALE; | 87 | _octreeSizeScale = ADJUST_LOD_MIN_SIZE_SCALE; |
| 88 | } | 88 | } |
| 89 | qCDebug(interfaceapp) << "adjusting LOD DOWN" | 89 | // DEBUG: Less is more, avoid logging all the time |
| 90 | /* qCDebug(interfaceapp) << "adjusting LOD DOWN" | ||
| 90 | << "fps =" << currentFPS | 91 | << "fps =" << currentFPS |
| 91 | << "targetFPS =" << getLODDecreaseFPS() | 92 | << "targetFPS =" << getLODDecreaseFPS() |
| 92 | << "octreeSizeScale =" << _octreeSizeScale; | 93 | << "octreeSizeScale =" << _octreeSizeScale; */ |
| 93 | emit LODDecreased(); | 94 | emit LODDecreased(); |
| 94 | // Assuming the LOD adjustment will work: we optimistically reset _avgRenderTime | 95 | // Assuming the LOD adjustment will work: we optimistically reset _avgRenderTime |
| 95 | // to provide an FPS just above the decrease threshold. It will drift close to its | 96 | // to provide an FPS just above the decrease threshold. It will drift close to its |
| @@ -111,10 +112,11 @@ void LODManager::autoAdjustLOD(float realTimeDelta) { · 15 unmodified lines | |||
| 111 | if (_octreeSizeScale > ADJUST_LOD_MAX_SIZE_SCALE) { | 112 | if (_octreeSizeScale > ADJUST_LOD_MAX_SIZE_SCALE) { |
| 112 | _octreeSizeScale = ADJUST_LOD_MAX_SIZE_SCALE; | 113 | _octreeSizeScale = ADJUST_LOD_MAX_SIZE_SCALE; |
| 113 | } | 114 | } |
| 114 | qCDebug(interfaceapp) << "adjusting LOD UP" | 115 | // DEBUG: Less is more, avoid logging all the time |
| 116 | /* qCDebug(interfaceapp) << "adjusting LOD UP" | ||
| 115 | << "fps =" << currentFPS | 117 | << "fps =" << currentFPS |
| 116 | << "targetFPS =" << getLODDecreaseFPS() | 118 | << "targetFPS =" << getLODDecreaseFPS() |
| 117 | << "octreeSizeScale =" << _octreeSizeScale; | 119 | << "octreeSizeScale =" << _octreeSizeScale; */ |
| 118 | emit LODIncreased(); | 120 | emit LODIncreased(); |
| 119 | // Assuming the LOD adjustment will work: we optimistically reset _avgRenderTime | 121 | // Assuming the LOD adjustment will work: we optimistically reset _avgRenderTime |
| 120 | // to provide an FPS just below the increase threshold. It will drift close to its | 122 | // to provide an FPS just below the increase threshold. It will drift close to its |