From 018d0e1db933af4757a85a836a79c9b171f1da45 Mon Sep 17 00:00:00 2001 From: K11MCH1 <81425424+K11MCH1@users.noreply.github.com> Date: Tue, 27 Oct 2026 11:20:06 +0900 Subject: [PATCH] Steam UI on the Mali bridge: gamescope composites every frame Through the Mali bridge the Steam UI flickered: frames alternated with and without its footer while gamescope handed its layers to the phone's compositor as separate planes. Turning gamescope's overlay planes off nearly stopped it (2 flips), and a composited image has none (Mali-G76 MC4 r26p0 at rest: 145 footer flips in 6 s, 0 composited). Where in the plane path it goes wrong is not known. Steam sessions on the bridge set gamescope_composite_force=1 unless it is already set. --- tools/linuxfs/overlay/usr/local/bin/droiddeck-session | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/linuxfs/overlay/usr/local/bin/droiddeck-session b/tools/linuxfs/overlay/usr/local/bin/droiddeck-session index b91057000..0038778d4 100755 --- a/tools/linuxfs/overlay/usr/local/bin/droiddeck-session +++ b/tools/linuxfs/overlay/usr/local/bin/droiddeck-session @@ -307,6 +307,13 @@ if [ -z "${BL_INSIDE:-}" ]; then if [ "$mode" = steam ] && [ "${BL_CURSOR_COMPOSITE:-0}" = 1 ]; then export gamescope_cursor_composite=2 fi + # Through the Mali bridge, Steam's UI flickered while gamescope handed its layers to the phone's + # compositor as separate planes, for a reason not yet found; one composited image does not + # (Mali-G76 MC4: 145 footer flips in 6 s at rest, 0 composited). + if [ "$mode" = steam ] && [ "${BL_VKBRIDGE:-0}" = 1 ] && [ -z "${gamescope_composite_force:-}" ]; then + export gamescope_composite_force=1 + echo "== gamescope: composites every frame (Mali bridge: the Steam UI flickers on separate planes)" + fi args=(--backend wayland --expose-wayland -f -W "$width" -H "$height" -w "$nested" -h "$nested_h") if [ "$nested" != "$width" ] || [ "$nested_h" != "$height" ]; then args+=(-S stretch)