Use scale transformation instead of shadereffectsource. Faster when reducing quality.

This commit is contained in:
Filippo Scognamiglio
2014-12-11 01:20:51 +01:00
parent b9f2cc4300
commit dcb332b06f
2 changed files with 9 additions and 22 deletions

View File

@@ -24,23 +24,10 @@ Item{
opacity: shadersettings.windowOpacity * 0.3 + 0.7
z: 1.9
}
}
// This is used to render the texture to a lower resolution then scale it up.
Loader{
id: scalableContentSource
active: shadersettings.window_scaling < 1
sourceComponent: ShaderEffectSource{
sourceItem: scalableContent
hideSource: true
smooth: true
}
}
Loader{
active: shadersettings.window_scaling < 1
anchors.fill: parent
sourceComponent: ShaderEffect{
property var source: scalableContentSource.item
transform: Scale {
xScale: 1 / shadersettings.window_scaling
yScale: 1 / shadersettings.window_scaling
}
}