Log in

View Full Version : Questions about multi-threaded avisynth


bkman
22nd August 2006, 03:41
Hi,

The current MT mode that has been implemented by someone splits a single frame into threads, but this doesn't work with some filters. My question is, why is there not a mode where whole frames are split into parallel threads? As in one thread filters the current frame, and the other filters the next, etc. to the amount of cores, and then they are buffered. Should work for all filters that don't require the previous filtered frame (are there any such?) and scale well.

foxyshadis
22nd August 2006, 04:27
MT() -> split frames into threads.
SetMTMode() -> parallelize full-frame processing.

Each works best on different filters and situations. Lots more details are in the MT readme.

And yes, there are some recursive filters, although most of them don't work very well with any kind of multithreading. (ex. mvtools.)

bkman
22nd August 2006, 10:11
Thanks for the info.

Btw, recursive filters was not what I was talking about.