History

Make sure we reset our LOD adjustments before we switch back from throttling the renderer.

Andrzej Kapolka committed 12 years ago

Commit 077df391 parent eab4b4b4 files · +11 −2Browse files

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

Unified · Split

interface/src/Menu.cpp+6−0
@@ -1249,6 +1249,12 @@ void Menu::autoAdjustLOD(float currentFPS) { · 1248 unmodified lines
12491249 }
12501250 }
12511251
1252+void Menu::resetLODAdjust() {
1253+ _fpsAverage.reset();
1254+ _fastFPSAverage.reset();
1255+ _lastAvatarDetailDrop = _lastAdjust = usecTimestampNow();
1256+}
1257+
12521258 void Menu::setVoxelSizeScale(float sizeScale) {
12531259 _voxelSizeScale = sizeScale;
12541260 }