From cb0e94a6e2a56b795235afb34b2de1569518f7c0 Mon Sep 17 00:00:00 2001 From: Filippo Scognamiglio Date: Sat, 26 Jul 2014 15:12:38 +0200 Subject: [PATCH] Fix: motion blur depends quadratically on fps and not linearly. --- app/PreprocessedTerminal.qml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/PreprocessedTerminal.qml b/app/PreprocessedTerminal.qml index bd30866..773d00a 100644 --- a/app/PreprocessedTerminal.qml +++ b/app/PreprocessedTerminal.qml @@ -39,11 +39,11 @@ Item{ //The blur effect has to take into account the framerate property int fps: shadersettings.fps !== 0 ? shadersettings.fps : 60 - property real fpsAttenuation: 60 / fps + property real fpsAttenuation: Math.sqrt(60 / fps) property real mBlur: shadersettings.motion_blur property real motionBlurCoefficient: (_maxBlurCoefficient * mBlur + _minBlurCoefficient * (1 - mBlur)) - property real _minBlurCoefficient: 0.75 - property real _maxBlurCoefficient: 0.95 + property real _minBlurCoefficient: 0.70 + property real _maxBlurCoefficient: 0.90 property size virtualPxSize: Qt.size(1,1) property size virtual_resolution: Qt.size(width / virtualPxSize.width, height / virtualPxSize.height) @@ -199,6 +199,8 @@ Item{ recursive: true live: false + hideSource: true + smooth: false antialiasing: false