Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Disable multithreading

New Here ,
Sep 24, 2017 Sep 24, 2017

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!

TOPICS
SDK
1.2K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Sep 24, 2017 Sep 24, 2017

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.

Translate
Community Expert ,
Sep 24, 2017 Sep 24, 2017

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 25, 2017 Sep 25, 2017

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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 25, 2017 Sep 25, 2017

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)

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 25, 2017 Sep 25, 2017
LATEST

It's more clear now. Thanks a lot!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines