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
1249 }1249 }
1250}1250}
1251 1251
1252void Menu::resetLODAdjust() {
1253 _fpsAverage.reset();
1254 _fastFPSAverage.reset();
1255 _lastAvatarDetailDrop = _lastAdjust = usecTimestampNow();
1256}
1257
1252void Menu::setVoxelSizeScale(float sizeScale) {1258void Menu::setVoxelSizeScale(float sizeScale) {
1253 _voxelSizeScale = sizeScale;1259 _voxelSizeScale = sizeScale;
1254}1260}