mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-20 05:16:01 +00:00
fix: use SteamVR compositor on Quest
This commit is contained in:
1 parent
59f752c70d
commit
92f2696a0c
16 files changed
+793
-26
No files matched your search
@@ -78,7 +78,33 @@ JSON
|
||||
export VK_INSTANCE_LAYERS="VK_LAYER_DROIDDECK_vr${VK_INSTANCE_LAYERS:+:$VK_INSTANCE_LAYERS}"
|
||||
export VK_LOADER_LAYERS_DISABLE="${VK_LOADER_LAYERS_DISABLE:-~implicit~}"
|
||||
if [ -S "${XDG_RUNTIME_DIR:-/run/droiddeck}/droiddeck-xr-frames" ] && [ -z "${DROIDDECK_VR_PRESENT:-}" ]; then
|
||||
export DROIDDECK_VR_PRESENT=questframes
|
||||
export DROIDDECK_VR_PRESENT=questwsi
|
||||
fi
|
||||
if [ "${DROIDDECK_VR_PRESENT:-}" = questwsi ]; then
|
||||
python3 - "$HOME/.local/share/Steam/config/steamvr.vrsettings" <<'PY' || exit 1
|
||||
import json, os, sys
|
||||
path = sys.argv[1]
|
||||
try:
|
||||
with open(path) as source:
|
||||
settings = json.load(source)
|
||||
except FileNotFoundError:
|
||||
settings = {}
|
||||
steamvr = settings.setdefault('steamvr', {})
|
||||
steamvr['enableLinuxVulkanAsync'] = True
|
||||
steamvr['motionSmoothing'] = False
|
||||
temporary = path + '.droiddeck.tmp'
|
||||
with open(temporary, 'w') as destination:
|
||||
json.dump(settings, destination, indent=3)
|
||||
destination.write('\n')
|
||||
os.replace(temporary, path)
|
||||
PY
|
||||
# The pinned Frame package's CVP constructor exits on Quest's unsupported SoC.
|
||||
cvp=$steamvr/drivers/cv/bin/linuxarm64/libArcturusPerception.so
|
||||
if [ -f "$cvp" ]; then
|
||||
[ ! -e "$cvp.droiddeck-disabled" ] || { echo "CVP backup already exists: $cvp" >&2; exit 1; }
|
||||
mv "$cvp" "$cvp.droiddeck-disabled" || exit 1
|
||||
echo "Disabled Frame-only CVP backend for Quest; SteamVR uses its normal compositor"
|
||||
fi
|
||||
fi
|
||||
if [ "${DROIDDECK_VR_PRESENT:-}" = questframes ]; then
|
||||
export DROIDDECK_VR_PRODUCER_LEASE=${DROIDDECK_VR_PRODUCER_LEASE:-1}
|
||||
|
||||
Reference in new issue
Block a user