Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • EspaƱol
      • FranƧais
      • PortuguĆŖs
  • ę—„ęœ¬čŖžć‚³ćƒŸćƒ„ćƒ‹ćƒ†ć‚£
  • ķ•œźµ­ ģ»¤ė®¤ė‹ˆķ‹°
1

sdk - compute cache in smart render

Explorer ,
Aug 04, 2023 Aug 04, 2023

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 šŸ™‚

TOPICS
SDK
259
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Aug 07, 2023 Aug 07, 2023
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines