mirror of
https://github.com/WiVRn/WiVRn.git
synced 2026-11-26 03:46:49 -08:00
Revert "bump default eye-tracked scale to 0.4"
This reverts commit f5b6faf327.
This commit is contained in:
1 parent
0a53801f70
commit
e29a08ea2e
2 files changed
+2
-2
No files matched your search
@@ -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.
|
||||
|
||||
@@ -351,7 +351,7 @@ std::vector<encoder_settings> get_encoder_settings(wivrn_vk_bundle & bundle, uin
|
||||
|
||||
uint64_t bitrate = config.bitrate.value_or(default_bitrate);
|
||||
std::array<double, 2> 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,
|
||||
|
||||
Reference in new issue
Block a user