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

how do I set max_sleepPL to call the idle hook more frequently?

New Here ,
Jun 29, 2023 Jun 29, 2023

Copy link to clipboard

Copied

writing a plugin that allows blender to fetch precomp bitmaps from AE quickly via shared memory and am trying to make the idle hook get called enough times to support its target of playing back 30fps precomps. when I try to set *max_sleepPL in any of the stock plugins that use idle hooks though (grabba, mangler), it has no effect and max_sleep always gets reset back to its default value in the next idle hook call (1800 in grabba and 1000 in mangler). is there another step I'm forgetting to do to allow setting of the value? 

TOPICS
SDK

Views

164

Translate

Translate

Report

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 , Jun 29, 2023 Jun 29, 2023

lookup AEGP_CauseIdleRoutinesToBeCalled. it might do the trick for you.

Votes

Translate

Translate
Community Expert ,
Jun 29, 2023 Jun 29, 2023

Copy link to clipboard

Copied

lookup AEGP_CauseIdleRoutinesToBeCalled. it might do the trick for you.

Votes

Translate

Translate

Report

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 ,
Jul 06, 2023 Jul 06, 2023

Copy link to clipboard

Copied

LATEST

would be nice to just set that value instead of having to deal with threads, but yeah this solution works fine. interestingly AE on mac os seems to cap at around 30 calls per second which is right on my target, while on windows it can hit 60.

Votes

Translate

Translate

Report

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