SourceRectAtTime expression causing major performance issues with motionblur
Hello,
I'm was looking into why my expression-heavy After Effects Comp grinds to a halt whenever I active motion blur. I use it to auto scale a textbox. Since I use multiple of them in one comp, I can't avoid calling sourceRectAtTime(0) for each text. I'm fairly certain it is this text, since I made an optimization to disable the call, when the text is unused and the render time goes down.
I've already tried the suggestions made by Dacia Saenz (https://adobe-video.uservoice.com/forums/911311-after-effects/suggestions/43383660-what-kind-of-expressions-let-project-slow).
I haven't tried to offload sourceRectAtTime() to an external extendscript, since I'm not sure yet how to best do this.
I also tried:
// cacheCompareSamplesPerSecond 0This didn't improve the performance.
I tried to "cache" the results in a point effect and call it with valueAtTime(0) but it still evaluates for every motionblur sample, thus slowing down my render.
Is there something else can can be done to definitively cache these values? They only have to be called once, since I don't need scaling of the textbox within the animation.
Thanks!
