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?
lookup AEGP_CauseIdleRoutinesToBeCalled. it might do the trick for you.
Copy link to clipboard
Copied
lookup AEGP_CauseIdleRoutinesToBeCalled. it might do the trick for you.
Copy link to clipboard
Copied
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.