From 0f08981dd89e0c81c1a46b4d5b514dd1769ee8fd Mon Sep 17 00:00:00 2001 From: The412Banner <205237651+The412Banner@users.noreply.github.com> Date: Tue, 17 Nov 2026 11:21:27 -0500 Subject: [PATCH] perf(bionic): FEX's disk cache on, as DroidDeck-Proton's launcher sets it DroidDeck-Proton's proton script sets FEX_DISKCACHE=1 by default; the bionic launcher did not, so FEX translated code paths again on every run and DiRT Showdown's worst frame was ~21 ms (min fps 46.7) where DroidDeck-Proton's was ~14 ms. FEX keeps the cache in the prefix (AppData/Local/fex-emu/DiskCache), keyed by its build and settings, so a game switched between DroidDeck-Proton and DroidDeck-Bionic rebuilds it once after each switch (bionic's FEX replaced DroidDeck-Proton's cache folder in the test). A game's own FEX_DISKCACHE in DroidDeck's game environment still wins. DiRT Showdown on the Pocket FIT (r17 + this setting): first run 90.2 avg / 50.2 min, then 97.2 / 68.2 and 96.4 / 70.9 (r17 without it 92.9 / 46.7; DroidDeck-Proton 90.9 / 69.9). --- tools/bionic-runtime/tool/launch.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/bionic-runtime/tool/launch.sh b/tools/bionic-runtime/tool/launch.sh index 018a3e26db..19044d50a3 100644 --- a/tools/bionic-runtime/tool/launch.sh +++ b/tools/bionic-runtime/tool/launch.sh @@ -87,7 +87,7 @@ export GAMESCOPE_WSI_MIN_IMAGE_COUNT=${GAMESCOPE_WSI_MIN_IMAGE_COUNT:-4} GAMESCO # 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} \ FEX_MEMCPYSETTSOENABLED=${FEX_MEMCPYSETTSOENABLED:-0} FEX_HALFBARRIERTSOENABLED=${FEX_HALFBARRIERTSOENABLED:-1} \ - FEX_X87REDUCEDPRECISION=${FEX_X87REDUCEDPRECISION:-1} FEX_MULTIBLOCK=${FEX_MULTIBLOCK:-1} FEX_MAXINST=${FEX_MAXINST:-500} + FEX_X87REDUCEDPRECISION=${FEX_X87REDUCEDPRECISION:-1} FEX_MULTIBLOCK=${FEX_MULTIBLOCK:-1} FEX_MAXINST=${FEX_MAXINST:-500} FEX_DISKCACHE=${FEX_DISKCACHE:-1} echo "fex $(env | grep '^FEX_' | sort | tr '\n' ' ')" echo "sync ntsync=$WINENTSYNC esync=$WINEESYNC ssbs=${WINE_FORCE_SSBS:-0} tu_debug=${TU_DEBUG:-} kept=$(echo $KEEP)" export WINESTEAMCLIENTPATH64=$ROOTFS/root/.local/share/Steam/androidarm64/libsteamclient.so