Add Quest pro display resolution

This commit is contained in:
Patrick Nicolas
2023-11-20 21:14:32 +01:00
parent 347052109d
commit 96ce39898d
3 changed files with 9 additions and 0 deletions
+7
View File
@@ -50,6 +50,8 @@ model guess_model()
return model::oculus_quest;
if (device == "hollywood")
return model::oculus_quest_2;
if (device == "seacliff")
return model::meta_quest_pro;
const auto manufacturer = get_property("ro.product.manufacturer");
const auto model = get_property("ro.product.model");
@@ -84,6 +86,11 @@ XrViewConfigurationView override_view(XrViewConfigurationView view, model m)
view.recommendedImageRectWidth = 1832;
view.recommendedImageRectHeight = 1920;
return view;
case model::meta_quest_pro:
spdlog::info("Using panel resolution 1800x1920 for Quest pro");
view.recommendedImageRectWidth = 1800;
view.recommendedImageRectHeight = 1920;
return view;
case model::meta_quest_3:
spdlog::info("Using panel resolution 2064x2208 for Quest 3");
view.recommendedImageRectWidth = 2064;