Quote:
Originally Posted by HolyWu
I can't do speed comparison at the moment as my computer is doing encoding.
Eh...looks like so. Do I have to use fmParallelRequests instead? Or is there any way to overcome this?
|
1. Use fmParallelRequests so that only one thread at a time writes to those variables. But then your filter won't be parallel anymore and that's sad.
2. Use fmParallel and modify the filter so the getframe function doesn't write to the filter's shared data. You would allocate and free those arrays in the getframe function. If you feel like trying
Myrsloik's suggestion, you may avoid allocating and freeing those things on every frame request.