mirror of
https://github.com/overte-org/overte.git
synced 2025-04-23 01:33:35 +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;
|
||||
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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue