fix(renderer): treat wgpu surface-acquire timeout as a skipped frame

Issue #540: under Hyprland VFR a static screen or hidden workspace
stops compositor frame callbacks, wgpu's get_current_texture() times
out, and the vendored femtovg-wgpu backend retried once then
propagated the error — killing the event loop and the app mid-
playback.

A surface-acquire timeout is transient by definition: return a
FrameSkipped sentinel instead, which the renderer treats as nothing-
to-render, and back off exponentially (250 ms to 2 s) so repeated
redraw requests do not keep blocking the UI thread on a parked
compositor. The first successful acquire resets the cooldown. A
one-time stderr notice aids field diagnosis. Also give the vendored
crate an empty [workspace] table so it can be cargo-checked
standalone.

cc
This commit is contained in:
vicrodh committed 2026-07-04 17:26:04 -06:00
1 parent 1e521a182f
commit 6bf4bb2414
4 files changed
+70 -2672

No files matched your search

@@ -140,3 +140,6 @@ default-features = false
level = "warn"
priority = 0
check-cfg = ["cfg(slint_nightly_test)"]
# Standalone when checked directly; the app consumes it via [patch.crates-io].
[workspace]