Skip to content

Commit c0b6e4c

Browse files
committed
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.
1 parent 5282cba commit c0b6e4c

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

libavfilter/vf_yadif_cuda.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,6 @@ static void filter(AVFilterContext *ctx, AVFrame *dst,
180180
parity, tff);
181181
}
182182

183-
CHECK_CU(cu->cuStreamSynchronize(s->stream));
184-
185183
exit:
186184
CHECK_CU(cu->cuCtxPopCurrent(&dummy));
187185
return;

0 commit comments

Comments
 (0)