Commit 6ff6557e authored by Tranter Madi's avatar Tranter Madi 🌧
Browse files

Port GaussianBlur to FastBlur for better performance

- GaussianBlur is slow so we should only use FastBlur.
Otherwise it's laggy when toggling on/off this mode.
parent af9157ad
Pipeline #63307 passed with stage
in 8 minutes and 25 seconds
......@@ -63,8 +63,8 @@ FocusScope {
anchors.fill: parent
fillMode: Image.PreserveAspectCrop
sourceSize.width: imageSourceSize
sourceSize.height: imageSourceSize
// make the FastBlur effect more strong
sourceSize.height: 10
opacity: 1
......@@ -76,13 +76,9 @@ FocusScope {
saturation: 0.9
layer.enabled: true
layer.effect: GaussianBlur {
layer.effect: FastBlur {
cached: true
radius: 256
deviation: 12
samples: 129
radius: 64
transparentBorder: false
}
}
......@@ -99,8 +95,7 @@ FocusScope {
anchors.fill: parent
fillMode: Image.PreserveAspectCrop
sourceSize.width: imageSourceSize
sourceSize.height: imageSourceSize
sourceSize.height: oldBackground.sourceSize.height
visible: false
opacity: 0
......@@ -113,13 +108,9 @@ FocusScope {
saturation: 0.9
layer.enabled: true
layer.effect: GaussianBlur {
layer.effect: FastBlur {
cached: true
radius: 256
deviation: 12
samples: 129
radius: 64
transparentBorder: false
}
}
......
......@@ -414,8 +414,8 @@ Item {
fillMode: Image.PreserveAspectCrop
sourceSize.width: 512
sourceSize.height: 512
// make the FastBlur effect more strong
sourceSize.height: 10
layer.enabled: true
layer.effect: HueSaturation {
......@@ -425,13 +425,9 @@ Item {
saturation: 0.9
layer.enabled: true
layer.effect: GaussianBlur {
layer.effect: FastBlur {
cached: true
radius: 256
deviation: 12
samples: 129
radius: 64
transparentBorder: false
}
}
......
......@@ -50,8 +50,8 @@ BasePlayerControl {
anchors.fill: parent
fillMode: Image.PreserveAspectCrop
sourceSize.width: imageSourceSize
sourceSize.height: imageSourceSize
// make the FastBlur effect more strong
sourceSize.height: 10
opacity: 1
......@@ -63,13 +63,9 @@ BasePlayerControl {
saturation: 0.9
layer.enabled: true
layer.effect: GaussianBlur {
layer.effect: FastBlur {
cached: true
radius: 256
deviation: 12
samples: 129
radius: 64
transparentBorder: false
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment