From e29a08ea2e480924a557faec9ed1e60f6fe02f2f Mon Sep 17 00:00:00 2001 From: galister <22305755+galister@users.noreply.github.com> Date: Sat, 7 Jun 2025 23:58:28 +0900 Subject: [PATCH] Revert "bump default eye-tracked scale to 0.4" This reverts commit f5b6faf32731fb9c7258a86c47b7ad15529c8f6e. --- docs/configuration.md | 2 +- server/encoder/encoder_settings.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/configuration.md b/docs/configuration.md index ddd10b26..5e52937f 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -5,7 +5,7 @@ Configuration is done on server side, in `$XDG_CONFIG_HOME/wivrn/config.json` or All elements are optional and have default values. ## `scale` -Default value: `0.5`, `0.4` if headset supports eye tracking +Default value: `0.5`, `0.35` if headset supports eye tracking 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/encoder/encoder_settings.cpp b/server/encoder/encoder_settings.cpp index 35f36a07..1b44539e 100644 --- a/server/encoder/encoder_settings.cpp +++ b/server/encoder/encoder_settings.cpp @@ -351,7 +351,7 @@ std::vector get_encoder_settings(wivrn_vk_bundle & bundle, uin uint64_t bitrate = config.bitrate.value_or(default_bitrate); std::array default_scale; - default_scale.fill(info.eye_gaze ? 0.4 : 0.5); + default_scale.fill(info.eye_gaze ? 0.35 : 0.5); auto scale = config.scale.value_or(default_scale); check_scale(config.encoder_passthrough->name,