Skip to main content
thefoxcam
Participant
June 29, 2023
Answered

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

  • June 29, 2023
  • 1 reply
  • 341 views

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? 

This topic has been closed for replies.
Correct answer shachar carmi

lookup AEGP_CauseIdleRoutinesToBeCalled. it might do the trick for you.

1 reply

shachar carmiCommunity ExpertCorrect answer
Community Expert
June 29, 2023

lookup AEGP_CauseIdleRoutinesToBeCalled. it might do the trick for you.

thefoxcam
thefoxcamAuthor
Participant
July 6, 2023

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.