Do expression-generated values get cached?


does know if output values generated though expression cached frame rendered image does?

 

meaning, make improvement in speed reference expression value same frame opposed calculating on each frame.

 

as simplified example, have slider-value-based expression heavy calculation doesn't change through time. improve expression calculation speed call resulting value single point in time (such time=0), opposed calling current time, recalculates on each frame?

no. expressions evaluated each frame , looking values different time in fact makes matters worse since ae may evaluate expression on current frame , based on code evaluate again on other frame. ae has no way of differentiating state of expression unless evaluates doesn't store persistent values, doesn't jit compiling or whatever other thing imagine. it's strictly linear script evaluation frame frame , line line, optimizing depends on structuring code , project structure. of course nothing stops outsourcing code "inert" invisible layers or comps not used anywhere, has other repercussions in case calculations dependent on time or layer order. if things slow, can convert expression keyframes.

 

mylenium



More discussions in After Effects Expressions


adobe

Comments

Popular posts from this blog

Soustraire une selection

After Effects: could not find dvaeve_dialogs.txt

Illustrator cs6 "Invalid Serial Number"