From 75c68a177cf3457e1022b3c8ec4f7f27ebde5e05 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Mon, 19 Feb 2024 10:49:07 +0100 Subject: [PATCH] Change default scale to 0.8 --- docs/configuration.md | 2 +- server/driver/wivrn_hmd.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/configuration.md b/docs/configuration.md index ef5ef5ee..cf59f1b2 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -1,6 +1,6 @@ # Configurable items: ## `scale` -Default value: `1` +Default value: `0.8` Controls the size of the video stream, either a number between 0 and 1 or a pair of numbers between 0 and 1. If two numbers are provided the first one is horizontal scale and the second vertical. Scaling is applied in a foveated fashion: the center has a 1:1 ratio and the rest is scaled so that the total number of pixels matches the desired scale. diff --git a/server/driver/wivrn_hmd.cpp b/server/driver/wivrn_hmd.cpp index d02bc80f..d3a5324a 100644 --- a/server/driver/wivrn_hmd.cpp +++ b/server/driver/wivrn_hmd.cpp @@ -214,7 +214,7 @@ wivrn_hmd::wivrn_hmd(std::shared_ptr cnx, auto eye_width = info.recommended_eye_width; // * config.scale.value_or(1); auto eye_height = info.recommended_eye_height; // * config.scale.value_or(1); - auto scale = config.scale.value_or(std::array{1., 1.}); + auto scale = config.scale.value_or(std::array{0.8, 0.8}); int foveated_eye_width = info.recommended_eye_width * scale[0]; int foveated_eye_height = info.recommended_eye_height * scale[1]; foveated_eye_height += foveated_eye_height % 2;