brain freeze

This commit is contained in:
Sam Gateau 2018-08-29 17:33:39 -07:00
parent 349f782697
commit 4844f06e5e
2 changed files with 3 additions and 5 deletions
interface/src
scripts/developer/utilities/lib/plotperf

View file

@ -105,9 +105,7 @@ void LODManager::autoAdjustLOD(float realTimeDelta) {
auto error = (targetFPS - currentFPS) / targetFPS;
error = glm::clamp(error, -1.0f, 1.0f);
if (error <= 0.0f) {
// error = error * 2.0f;
}
auto integral = previous_integral + error * dt;
glm::clamp(integral, -1.0f, 1.0f);

View file

@ -186,10 +186,10 @@ Item {
}
function pixelFromVal(val, valScale) {
return lineHeight + (height - lineHeight) * (1 - (0.9) * (val - _displayMinValue) / (_displayMaxValue - _displayMinValue));
return lineHeight + (height - lineHeight) * (1 - (0.99) * (val - _displayMinValue) / (_displayMaxValue - _displayMinValue));
}
function valueFromPixel(pixY) {
return _displayMinValue + (((pixY - lineHeight) / (height - lineHeight) - 1) * (_displayMaxValue - _displayMinValue) / (-0.9));
return _displayMinValue + (((pixY - lineHeight) / (height - lineHeight) - 1) * (_displayMaxValue - _displayMinValue) / (-0.99));
}
function plotValueHistory(ctx, valHistory, color) {
var widthStep= width / (valHistory.length - 1);