Commit c0b6e4cb authored by Philip Langdale's avatar Philip Langdale

avfilter/vf_yadif_cuda: Remove unnecessary stream synchronisation

I put this call in by habit, rather than because there was any
actual need. The filter is simply processing frames one after
the other and has no need to synchronise.

malakudi on the devtalk forums noticed a slowdown when using nvenc
with temporal/spatial aq and that the slowdown went away if the
sync call was removed. I also verified that in the basic encoding
case there's an observable speedup.

I also verified that we aren't doing unnecessary sync calls in any
other filter.
parent 5282cbae
......@@ -180,8 +180,6 @@ static void filter(AVFilterContext *ctx, AVFrame *dst,
parity, tff);
}
CHECK_CU(cu->cuStreamSynchronize(s->stream));
exit:
CHECK_CU(cu->cuCtxPopCurrent(&dummy));
return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment