Thread: Eedi2
View Single Post
Old 5th September 2014, 09:20   #4  |  Link
jackoneill
unsigned int
 
jackoneill's Avatar
 
Join Date: Oct 2012
Location: 🇪🇺
Posts: 760
Quote:
Originally Posted by HolyWu View Post
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.
__________________
Buy me a "coffee" and/or hire me to write code!
jackoneill is offline