History

Remove notifications and print outs for LOD changes because it was too much noise

samcake committed 8 years ago

Commit d4bc61f1 parent 7ba05e32 files · +13 −35Browse files

Showing the changes to interface/src/LODManager.cpp (1 of 2 files). Show all

Unified · Split

interface/src/LODManager.cpp+6−4
@@ -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 =" << currentFPS91 << "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 _avgRenderTime95 // 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 its96 // 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 =" << currentFPS117 << "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 _avgRenderTime121 // 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 its122 // to provide an FPS just below the increase threshold. It will drift close to its

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t