From 74cb3426f8099834e577988e27c04e95f29f859a Mon Sep 17 00:00:00 2001 From: Vixea Date: Sun, 3 Sep 2023 14:15:21 -0500 Subject: [PATCH] fix delay the name isn't actually descriptive on what it actually does, it actually means how many surfaces to encode at a time --- alvr/server/cpp/platform/linux/EncodePipelineNvEnc.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/alvr/server/cpp/platform/linux/EncodePipelineNvEnc.cpp b/alvr/server/cpp/platform/linux/EncodePipelineNvEnc.cpp index f9bca1bc06..01cb2a7acd 100644 --- a/alvr/server/cpp/platform/linux/EncodePipelineNvEnc.cpp +++ b/alvr/server/cpp/platform/linux/EncodePipelineNvEnc.cpp @@ -89,7 +89,8 @@ alvr::EncodePipelineNvEnc::EncodePipelineNvEnc(Renderer *render, av_opt_set_int(encoder_ctx->priv_data, "tune", settings.m_nvencTuningPreset, 0); av_opt_set_int(encoder_ctx->priv_data, "zerolatency", 1, 0); - av_opt_set_int(encoder_ctx->priv_data, "delay", 0, 0); + // Delay isn't actually a delay instead its how many surfaces to encode at a time + av_opt_set_int(encoder_ctx->priv_data, "delay", 1, 0); av_opt_set_int(encoder_ctx->priv_data, "forced-idr", 1, 0); /**