From 536a05e06c673d912b122760856a0530faea4e09 Mon Sep 17 00:00:00 2001 From: The412Banner <205237651+The412Banner@users.noreply.github.com> Date: Tue, 17 Nov 2026 06:30:40 -0500 Subject: [PATCH] perf(bionic): four swapchain images through gamescope's WSI layer A profile of AIO's Vulkan run showed the game thread waiting about 20 % of the time in the adapter's Wayland acquire (wl_display dispatch for a wl_buffer.release from gamescope); DroidDeck-Proton's Turnip waits there under 1 % with the same three images. GAMESCOPE_WSI_MIN_IMAGE_COUNT=4 with GAMESCOPE_WSI_ENSURE_MIN_IMAGE_COUNT=1 (gamescope layer settings, default 3 / off) gives the swapchain one more image; a game's own value in DroidDeck's game environment still wins. AIO Vulkan on the Pocket FIT: about 1440 -> 1824 fps (5 images: 1841). --- tools/bionic-runtime/tool/launch.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/bionic-runtime/tool/launch.sh b/tools/bionic-runtime/tool/launch.sh index c303be3b34..dba3e30625 100644 --- a/tools/bionic-runtime/tool/launch.sh +++ b/tools/bionic-runtime/tool/launch.sh @@ -77,6 +77,9 @@ export NTSYNC_SHM=$COMPAT/ntsync-shm on "${DROIDDECK_FORCE_SSBS:-}" && export WINE_FORCE_SSBS=1 export HODLL=libwow64fex.dll WINEDEBUG=err+all,fixme-all export XENVIRONMENT=$TOOL/bionic/Xdefaults +# The adapter's Wayland swapchain gets its buffers back from gamescope later than DroidDeck-Proton's Turnip does; +# with gamescope's default three images the game waits for one about a fifth of the time at high frame rates. +export GAMESCOPE_WSI_MIN_IMAGE_COUNT=${GAMESCOPE_WSI_MIN_IMAGE_COUNT:-4} GAMESCOPE_WSI_ENSURE_MIN_IMAGE_COUNT=${GAMESCOPE_WSI_ENSURE_MIN_IMAGE_COUNT:-1} # FEX: DroidDeck-Proton's defaults (its share/fex-emu/Config.json: x87 in 64-bit precision, TSO without the vector # and memcpy parts); droiddeck-game-env's per-game choices (FEX_* in the environment, e.g. .NET, Unity) win. export FEX_TSOENABLED=${FEX_TSOENABLED:-1} FEX_VECTORTSOENABLED=${FEX_VECTORTSOENABLED:-0} \