From b1676d670712bb32fe580e0cd2c9e23acc93bfdc Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Sat, 2 Nov 2024 22:59:10 +0100 Subject: [PATCH] Enable 3 encoders by default --- docs/configuration.md | 2 +- server/encoder/encoder_settings.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/configuration.md b/docs/configuration.md index a64a2cd4..4fa72f65 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -33,7 +33,7 @@ Bitrate of the video, in bit/s. Split among decoders based on size and codecs. ## `encoders` A list of encoders to use. -Default value: single encoder. +Default value: 3 encoders in order 1/8th, 3/8th and 4/8th of the image. WiVRn has the ability to split the video in blocks that are processed independently, this may use resources more effectively and reduce latency. All the provided encoders are put into groups, groups are executed concurrently and items within a group are processed sequentially. diff --git a/server/encoder/encoder_settings.cpp b/server/encoder/encoder_settings.cpp index 1e46cb2d..94601571 100644 --- a/server/encoder/encoder_settings.cpp +++ b/server/encoder/encoder_settings.cpp @@ -42,7 +42,7 @@ namespace wivrn // TODO: size independent bitrate static const uint64_t default_bitrate = 50'000'000; -// #define WIVRN_SPLIT_ENCODERS 1 +#define WIVRN_SPLIT_ENCODERS 1 static bool is_nvidia(vk::PhysicalDevice physical_device) { @@ -240,7 +240,7 @@ static std::vector get_encoder_default_settings(wivrn_vk .codec = base.codec, }, { - .name = encoder_vaapi, + .name = base.name, .width = 0.5, .offset_x = 0.5, .group = 0,