Skip to content

Commit

Permalink
fix delay
Browse files Browse the repository at this point in the history
the name isn't actually descriptive on what it actually does, it actually means how many surfaces to encode at a time
  • Loading branch information
Vixea committed Sep 4, 2023
1 parent 4e3aa3b commit 74cb342
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion alvr/server/cpp/platform/linux/EncodePipelineNvEnc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

/**
Expand Down

0 comments on commit 74cb342

Please sign in to comment.