Copy link to clipboard
Copied
Hi all,
I'm writing an effect where code in Render() function is not thread-safe. Now AE stucks in my plugin if "Multiprocessing" option is enabled (AE 2014 and older).
So my question is about multithreading disabling. Is there any opportuniny to completely disable MT option for my plugin (something like DO_NOT_USE_MT flag)? In other words I want to say After Effects that my plugin doesn't support MT. Is it possible or not?
Thanks!
1 Correct answer
no, there is no such flag. all plug-ins are expected to handle
muti-threaded rendering.
you could put a mutex at the top of your rendering function thus allowing
only one thread at a time to render, but that would cripple preformance.
if possible, you should make your plug-in's render muti-threadable instead.
Copy link to clipboard
Copied
no, there is no such flag. all plug-ins are expected to handle
muti-threaded rendering.
you could put a mutex at the top of your rendering function thus allowing
only one thread at a time to render, but that would cripple preformance.
if possible, you should make your plug-in's render muti-threadable instead.
Copy link to clipboard
Copied
Thanks, Shachar, for the quick answer!
But what can you say about "3D Camera Tracker" plugin? As I understand it always runs in the one thread (even with enabled "Multiprocessing" option). Do you think it uses mutex?
Copy link to clipboard
Copied
i don't think it's the same case. i think 3D Camera tracker does it's
processing on a separate thread as not to hold the user back while it's
preparing.
the actual rendering of that effect is done normally, on mutiple render
threads. (to thebest of my knowledge)
Copy link to clipboard
Copied
It's more clear now. Thanks a lot!

