Author Topic: External Animation Load from file UHD cache  (Read 852 times)

2021-04-17, 15:05:00

piotrkuriata84

  • Users
  • *
  • Posts: 1
    • View Profile
Hi, I have a problem with external animation in corona. I need to set up animations with the option to write UHD cache to file to save time in global rendering. I don't have any moving objects in the animation ( only camera ) and yet with each frame of the animation the parising scene is calculated again. Can you please help me to find the reason of the problem, what should I do to avoid the parising scene is calculated in every frame.

I have 2000 frame
I calculate UHD cache for frame number 1000 ( middle of the animation )
I set load from file

This is my first animation in Corona

if anyone can help, I will be grateful
« Last Edit: 2021-04-17, 15:54:53 by piotrkuriata84 »

2021-04-19, 14:37:36
Reply #1

TomG

  • Administrator
  • Active Users
  • *****
  • Posts: 5460
    • View Profile
You have to remember that scene parsing is different from the UHD Cache. Parsing is taking the geometry etc. and preparing it in memory in order to render. The UHD Cache is calculating how light will bounce around the scene. So saving and reusing the UHD Cache has no effect on the parsing stage - the geometry still needs to be prepared in memory ready for rendering.

And that does always happen for every frame, there is no way to "save" the parsed geometry (developers would have to say, as I don't know the technical details, but it's entirely possible it can't be avoided because some aspects of what is prepared in memory may depend on what is in the camera view, so for any frame it may be unavoidable that everything gets reparsed; or it could be that there's no way of knowing whether something has changed or not in terms of geometry, so again, everything always has to be reparsed).

Tom Grimes | chaos-corona.com
Product Manager | contact us