Default to power saving on Quests only

This commit is contained in:
Patrick Nicolas
2025-12-17 22:58:27 +01:00
parent 366792cf46
commit fc6fcda0cd
2 changed files with 24 additions and 1 deletions
+23
View File
@@ -99,6 +99,29 @@ configuration::configuration(xr::system & system)
{
passthrough_enabled = system.passthrough_supported() == xr::passthrough_type::color;
features[feature::hand_tracking] = system.hand_tracking_supported();
switch (guess_model())
{
case model::oculus_quest:
case model::oculus_quest_2:
case model::meta_quest_pro:
case model::meta_quest_3:
case model::meta_quest_3s:
high_power_mode = false;
break;
case model::pico_neo_3:
case model::pico_4:
case model::pico_4s:
case model::pico_4_pro:
case model::pico_4_enterprise:
case model::htc_vive_focus_3:
case model::htc_vive_xr_elite:
case model::htc_vive_focus_vision:
case model::lynx_r1:
case model::samsung_galaxy_xr:
case model::unknown:
high_power_mode = true;
break;
}
try
{
simdjson::dom::parser parser;
+1 -1
View File
@@ -79,7 +79,7 @@ public:
float override_foveation_pitch = 10 * M_PI / 180;
float override_foveation_distance = 3;
bool high_power_mode = false;
bool high_power_mode;
bool first_run = true;