1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

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.
This commit is contained in:
Philip Langdale 2019-03-30 08:50:44 -07:00
parent 5282cbae61
commit c0b6e4cb6d

View File

@ -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;