mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 21:43:03 +02:00
brain freeze
This commit is contained in:
parent
349f782697
commit
4844f06e5e
2 changed files with 3 additions and 5 deletions
|
@ -105,9 +105,7 @@ void LODManager::autoAdjustLOD(float realTimeDelta) {
|
||||||
|
|
||||||
auto error = (targetFPS - currentFPS) / targetFPS;
|
auto error = (targetFPS - currentFPS) / targetFPS;
|
||||||
error = glm::clamp(error, -1.0f, 1.0f);
|
error = glm::clamp(error, -1.0f, 1.0f);
|
||||||
if (error <= 0.0f) {
|
|
||||||
// error = error * 2.0f;
|
|
||||||
}
|
|
||||||
auto integral = previous_integral + error * dt;
|
auto integral = previous_integral + error * dt;
|
||||||
glm::clamp(integral, -1.0f, 1.0f);
|
glm::clamp(integral, -1.0f, 1.0f);
|
||||||
|
|
||||||
|
|
|
@ -186,10 +186,10 @@ Item {
|
||||||
}
|
}
|
||||||
|
|
||||||
function pixelFromVal(val, valScale) {
|
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) {
|
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) {
|
function plotValueHistory(ctx, valHistory, color) {
|
||||||
var widthStep= width / (valHistory.length - 1);
|
var widthStep= width / (valHistory.length - 1);
|
||||||
|
|
Loading…
Reference in a new issue