From e450765eb6419a7dc2efbe3c619d6ab2de218d0d 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] Mali bridge with under 4 GB of RAM: Steam's browser UI in software On a 2.9 GB Mali-G76 MC4 phone the GPU-drawn Steam UI took about 400 MB, and Android's low-memory killer ended DroidDeck itself while The Binding of Isaac loaded; with the UI in software Isaac reached its title screen. Below 4 GB of RAM, bridge sessions now default BL_VKBRIDGE_CEF_GPU to 0; a value already set is kept. The software UI takes about a core while it animates and idles while a game has focus. --- tools/linuxfs/overlay/usr/local/bin/droiddeck-session | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tools/linuxfs/overlay/usr/local/bin/droiddeck-session b/tools/linuxfs/overlay/usr/local/bin/droiddeck-session index 0038778d4d..1e67b14d6d 100755 --- a/tools/linuxfs/overlay/usr/local/bin/droiddeck-session +++ b/tools/linuxfs/overlay/usr/local/bin/droiddeck-session @@ -1039,6 +1039,15 @@ BUSCONF _bl_ui=(-nobigpicture) fi if [ "${BL_VKBRIDGE:-0}" = 1 ]; then + # On the GPU the Steam UI held about 400 MB through the bridge (Mali-G76 MC4, 3 GB of RAM); with + # a game loading beside it, Android's low-memory killer took the whole session down. + if [ -z "${BL_VKBRIDGE_CEF_GPU:-}" ]; then + _bl_mem_kb=$(awk '/^MemTotal:/ {print $2}' /proc/meminfo 2>/dev/null) + if [ "${_bl_mem_kb:-0}" -gt 0 ] && [ "$_bl_mem_kb" -lt 4194304 ]; then + BL_VKBRIDGE_CEF_GPU=0 + echo "== steam: $((_bl_mem_kb / 1024)) MB of RAM: the browser UI draws in software to leave games the memory" + fi + fi if [ "${BL_VKBRIDGE_CEF_GPU:-1}" = 0 ]; then _bl_cef=(-cef-disable-gpu -cef-disable-gpu-compositing) echo "== steam: browser UI in software (Mali bridge)"