Give the Steam Frame build its own passthrough default

SteamVR has no XR_FB_passthrough, so the Steam Frame build neither asks
for it nor offers the setting: [vr] passthrough defaults to false there,
and the F10/headset panel and the launcher hide the switch. The Frame
keeps the Android defaults that suit it (render scale 0.8, foveation
medium, the GX thread, object culling, performance level boost) and
starts at 120 Hz (previous commit).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019HBRGKTE1GnN2ah8gcZKr3
This commit is contained in:
Claude committed 2026-10-04 08:34:04 +00:00
1 parent 8b98330485
commit e626e0eceb
5 files changed
+41 -12

No files matched your search

+4
View File
@@ -147,7 +147,9 @@ int g_vrRaceView = static_cast<int>(RuntimeConfigFile::GetVrRaceView());
bool g_vrFlatScreen = g_vrRaceView == static_cast<int>(RuntimeConfigFile::VrRaceView::FlatScreen);
constexpr std::array<const char*, 3> kVrRaceViewLabels{"Immersive", "Immersive window", "Flat screen"};
#if defined(__ANDROID__)
#if !defined(MKW_HEADSET_STEAM_FRAME)
bool g_vrPassthrough = RuntimeConfigFile::VrPassthrough();
#endif
bool g_vrHandTracking = RuntimeConfigFile::VrHandTracking();
// Menu labels for the foveation levels, index-matched to RuntimeConfigFile::kVrFoveationLevels and to
// aurora_set_stereo_foveation.
@@ -1489,6 +1491,7 @@ void DrawVrSettings() {
}
}
#if defined(__ANDROID__)
#if !defined(MKW_HEADSET_STEAM_FRAME)
if (ImGui::Checkbox("Passthrough around the menu screen", &g_vrPassthrough)) {
mkw::vr::OpenXRSetPassthrough(g_vrPassthrough);
RuntimeConfigFile::SetVrPassthrough(g_vrPassthrough);
@@ -1500,6 +1503,7 @@ void DrawVrSettings() {
"fully virtual; the immersive window and the Flat Screen race have the room "
"around them too. Applies immediately.");
}
#endif
// Shows the live level Aurora holds.
g_vrFoveation = static_cast<int>(aurora_get_stereo_foveation());
if (ImGui::Combo("Foveated rendering", &g_vrFoveation, kVrFoveationLabels.data(),
+5 -1
View File
@@ -423,7 +423,11 @@ public:
"XR_KHR_convert_timespec_time",
"XR_KHR_android_thread_settings",
"XR_FB_display_refresh_rate", "XR_EXT_performance_settings",
"XR_FB_passthrough", "XR_VALVE_frame_controller_interaction"};
"XR_VALVE_frame_controller_interaction"};
#if !defined(MKW_HEADSET_STEAM_FRAME)
// Horizon OS's room view; the Steam Frame build neither asks for it nor offers the setting.
config.optional_extensions.push_back("XR_FB_passthrough");
#endif
AddHandMeshExtensions(config);
config.instance_create_next = OpenXRAndroidInstanceCreateNext();
#endif