Author Topic: Massive slowdown with CoronaAO map in refraction color slot  (Read 1907 times)

2015-07-14, 16:52:44

chopmeister

  • Active Users
  • **
  • Posts: 59
    • View Profile
    • Polymachine
I encountered something weird. I wanted to plug in a CoronaAO map in the refraction color slot of a glass material so that I get some non-transparent edges. What happened was pretty weird so I made a little test scene to see if it's somehow related to the scene I was working on - and it is not.

To reproduce just make some boxes or whatever, and make a CoronaMtl with the default settings, only reflection and refraction set to 1, ie. standard transparent glass. Render.
Now put a CoronaAO map in the reflection slot of that material, and render again.

This is my test scene, just a plane, CoronaSun and a few boxes with the glass material.



Here are screenshots from my test:



This is without the CoronaAO map. The 1st pass took approx. 27 seconds, and notice 7 mil rays/s. Now WITH CoronaAO in the refraction slot:



1:21, so three times slower, and check out the stats: 23.2 mil rays/s...

I would expect slowdowns but not by 300% for such a simple scene. Also, what's with the rays/s stats?

In a more complex scene this also impacts UHD cache speeds, where I encountered a 500% percent slower solution (maybe even more) just by adding one box with a material like this.


[EDIT] Forgot to add: I'm using Corona 1.01.00 (Jun 16 2015) with 3dsmax 2016.


2015-07-14, 18:07:55
Reply #1

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12758
  • Marcin
    • View Profile
But you know that you can use Corona 1.1.1.? :)
https://corona-renderer.com/download/


I noticed that there is a big slowdown when you use AO as opacity too, but it renders much much faster if you remove the ground plane. Maybe Corona doesn't like calculating shadows for opacity based on AO?
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2015-07-14, 18:47:16
Reply #2

chopmeister

  • Active Users
  • **
  • Posts: 59
    • View Profile
    • Polymachine
But you know that you can use Corona 1.1.1.? :)
https://corona-renderer.com/download/

Hahaha, yes I know, but sadly didn't have time to reinstall the farm. :)

2015-09-07, 14:55:59
Reply #3

Ondra

  • Administrator
  • Active Users
  • *****
  • Posts: 9048
  • Turning coffee to features since 2009
    • View Profile
the AO shader does some sampling that can get costly, it is expected to lose some performance if you apply it to majority of your scene. I would maybe suggest decreasing number of samples in its settings (I think we changed defaults there already to make it faster by default)
Rendering is magic.How to get minidumps for crashed/frozen 3ds Max | Sorry for short replies, brief responses = more time to develop Corona ;)