Skip to content

Commit

Permalink
[Immersive mode] add a min resolution factor
Browse files Browse the repository at this point in the history
  • Loading branch information
amwatson committed Jan 27, 2024
1 parent ceacf7b commit 6da5e59
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/android/app/src/main/jni/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,10 @@ void Config::ReadValues() {

if (Settings::values.vr_use_immersive_mode) {
LOG_INFO(Config, "VR immersive mode enabled");

// Use a min setting of 3x to avoid extremely low resolutions
VRSettings::values.resolution_factor = std::max(3, static_cast<int>(VRSettings::values.resolution_factor));

// no point rendering passthrough in immersive mode
VRSettings::values.vr_environment =
static_cast<uint32_t>(VRSettings::VREnvironmentType::VOID);
Expand Down

0 comments on commit 6da5e59

Please sign in to comment.