Copy link to clipboard
Copied
Hello team,
I m using in a project the compute cache inside smart render, to compute the frame N-1.
The compute cache needs data from previous frame, so I checkout the previous frame in prerender, but rendering a frame with a high frame index is expensive. For exemple, redering frame 100 needs to checout frames from 0 to 100 to be sur that compute cache have access to it.
- I tried to check the cache data before checking out the frame, in prerender.
If I need to render frame 100. I check from frame 99 to 0. If the cached is found, the loop is broken and store the time. This method freezes the render or get some result but destroyed when the smart render thread is calling the compute data.
-I tried using AEGP_RenderAndCheckoutLayerFrame, setting the time to current_time - time_step, converted to composition time. but this doesn't seems to force to call the render thread. Maybe I missed something.
In the compute cache render, I use PF_checkout_PARAM for the layer, but it will not take care of other effects, like in smart render...
Do you have any idea ?
Thanks š
Copy link to clipboard
Copied
Ok, so after tests, it seems that the solution using checkout_PARAM for layers in compute cache is the best, if the plugin needs a result computed in previous frame. No overloaded memory, but layer parameters don't have access to applied effect, like the same layers loaded in smartfx
Find more inspiration, events, and resources on the new Adobe Community
Explore Now