Many many fixes and optimizations. Texture scaling now dramatically improve performances, various shader optimizations, improved static noise and horizontal distortion and more... #184

Merged
Swordfish90 merged 25 commits from refactoring into master 2014-12-14 21:27:41 +01:00
Showing only changes of commit 30cc2a5e9c - Show all commits

View File

@ -30,6 +30,7 @@ Item{
property alias mainTerminal: kterminal property alias mainTerminal: kterminal
property ShaderEffectSource mainSource: mBlur !== 0 ? blurredSourceLoader.item : kterminalSource property ShaderEffectSource mainSource: mBlur !== 0 ? blurredSourceLoader.item : kterminalSource
property real scaleTexture: 1.0
property alias title: ksession.title property alias title: ksession.title
property alias kterminal: kterminal property alias kterminal: kterminal
@ -114,14 +115,9 @@ Item{
width = Qt.binding(function() {return Math.floor(fontWidth * terminalContainer.width / screenScaling);}); width = Qt.binding(function() {return Math.floor(fontWidth * terminalContainer.width / screenScaling);});
height = Qt.binding(function() {return Math.floor(terminalContainer.height / screenScaling);}); height = Qt.binding(function() {return Math.floor(terminalContainer.height / screenScaling);});
var scaleTexture = Math.max(Math.round(screenScaling / appSettings.scanline_quality), 1.0); scaleTexture = Math.max(Math.round(screenScaling / appSettings.scanline_quality), 1.0);
kterminalSource.textureSize = Qt.binding(function () {
return Qt.size(kterminal.width * scaleTexture, kterminal.height * scaleTexture);
});
kterminal.lineSpacing = lineSpacing; kterminal.lineSpacing = lineSpacing;
//update();
} }
Component.onCompleted: { Component.onCompleted: {
appSettings.terminalFontChanged.connect(handleFontChange); appSettings.terminalFontChanged.connect(handleFontChange);
@ -195,6 +191,7 @@ Item{
hideSource: true hideSource: true
wrapMode: ShaderEffectSource.ClampToEdge wrapMode: ShaderEffectSource.ClampToEdge
visible: false visible: false
textureSize: Qt.size(kterminal.width * scaleTexture, kterminal.height * scaleTexture);
} }
Loader{ Loader{
id: blurredSourceLoader id: blurredSourceLoader