sf-ui 0.1.2: fix the video flicker
All checks were successful
ci / test (push) Successful in 20m59s

Glass's video fade stepped down whenever it was already at its target, so
a fully shown video dipped every other frame. At 60 fps that was a 5 %
dip; on a slow GPU (Raspberry Pi 4, ~10 fps during playback) the video
went down to ~60 % every other frame and the backdrop flickered through.
The fade now clamps to its target, like the picture fades do.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Tamas Csikel
2026-11-01 20:04:40 +01:00
parent 25fecb8dae
commit cb37d872ed
3 changed files with 10 additions and 7 deletions

8
Cargo.lock generated
View File

@@ -4810,7 +4810,7 @@ dependencies = [
[[package]]
name = "sf-app"
version = "0.1.1"
version = "0.1.2"
dependencies = [
"anyhow",
"log",
@@ -4820,7 +4820,7 @@ dependencies = [
[[package]]
name = "sf-pack"
version = "0.1.1"
version = "0.1.2"
dependencies = [
"anyhow",
"ruzstd",
@@ -4832,7 +4832,7 @@ dependencies = [
[[package]]
name = "sf-ui"
version = "0.1.1"
version = "0.1.2"
dependencies = [
"anyhow",
"glow 0.16.0",
@@ -4848,7 +4848,7 @@ dependencies = [
[[package]]
name = "sf-ui-gallery"
version = "0.1.1"
version = "0.1.2"
dependencies = [
"anyhow",
"env_logger",