Author Topic: 4K Cache thread  (Read 1407 times)

2020-07-29, 19:04:49

cecofuli

  • Active Users
  • **
  • Posts: 1570
    • View Profile
    • www.francescolegrenzi.com
Hello,

you guys are working on the 4K Cache optimization. Thank you =) .
As we already know, the DB 21 July is very slow.

Now, I'm making a 1,000 frames fly-through animation (it's a test) using "Try to load + append" every 25 frames, with both UHD Cache and 4K Cache.
It's a simple tunnel with some greeble.

--- UHD Cache: Precision 1 + Animation (flicker free) ---

(*) first frame: 30 seconds (you see the first frame in the first attachment)
(*) # 25 frames: 9 seconds
(*) # 50 frames: 10 seconds
etc...

The total amount of time for the .uhd file calculation (40 frames = 1,000 frames/25) is 15 minutes.

Everything is ok: the .uhd file is fast to calculate and only the first frame is a bit slow.

--- 4K Cache: Granularity 1 + Quality 1  + Animation (flicker free) ---

(*) first frame: 4 minutes 02 seconds (you see the first frame in the second attachment)
(*) # 25 frames: 3 minutes 48 seconds
(*) # 50 frames:  3 minutes 51 seconds

etc...
The total amount of time for .4k calculation (40 frames = 1.000 frames/25) is 2 hours and 40 minutes!!!

As we can see, we have two problems:

1°: the 4K Cache is too slow.
2°: why the #25, #50,  #75 frames calculation time is the same as in the first frame?
I will expected some kind of "reduction time" in the following frames, such as in the UHD. Or is this 4K Cache behavior normal?

Thank you =)






2020-07-29, 23:39:18
Reply #1

Ryuu

  • Corona Team
  • Active Users
  • ****
  • Posts: 630
  • Michal
    • View Profile
Hi, thanks for investigating & reporting this. I think the latest optimizations should help in this case. We'll check this and look into these and other issues tomorrow.

2020-07-30, 10:24:58
Reply #2

cecofuli

  • Active Users
  • **
  • Posts: 1570
    • View Profile
    • www.francescolegrenzi.com
Hello Ryuu,

thank you.
I did a test with the new RC1 and the situation is worse =). 4:46 minutes rendering time with 4K vs 30 second with UHD Cache (I did this test twice).
If I want to obtain 30 seconds with 4k Cache, I must change Quality= 0.1.

Also, using 4K Cache in IR,  I have zero improvements.

UHD Cache= 6-7 FPS
4K Cache = 0 FPS

« Last Edit: 2020-07-30, 10:45:49 by cecofuli »

2020-08-21, 03:32:32
Reply #3

Streha

  • Users
  • *
  • Posts: 3
    • View Profile

What is going on with 4K Cache ?

2020-08-21, 12:58:45
Reply #4

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 10388
  • Marcin
    • View Profile
What is going on with 4K Cache ?

We've found out that the 4K Cache works great in most scenarios, but there are still some edge cases where it isn't a better choice over the UHD Cache, so it will be released as an experimental feature and will not be enabled by default.
The 4K Cache will be improved and most likely at one point will become the new default. This is similar to what we did with the adaptive light solver in the past.

2020-10-19, 12:21:48
Reply #5

dj_buckley

  • Active Users
  • **
  • Posts: 354
    • View Profile
Hey Maru, it would be useful if you could give an indication as to what scenarios its not great in