Author Topic: Chaos scatter optimization  (Read 878 times)

2022-12-20, 11:23:02

JohnNinos

  • Active Users
  • **
  • Posts: 37
    • View Profile
Hi everyone, I hope you guys have a great time.
I have a scene with a lot of scattering going on and i would like to know if it's better performance-wise to have less scatters and more scattered geometries inside or it's exactly the same if I have more scatters and less scattered objects (let's say that the total amount of scattered instances remains the same), Thank you!

2022-12-20, 12:24:05
Reply #1

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12636
  • Marcin
    • View Profile
To me it seems logical that having 1 scatter producing 1000 instances makes more sense than, for example, 10 scatters producing 100 instances each. That would be easier to manage from the user point of view, and also multiple scatters cannot interact with each other (yet) so things like collision avoidance would not work.

I will share here if I find out how it works performance-wise, but even if for some reason there is some small performance increase when using multiple scatters, I don't think it would make sense to sacrifice the ease of use. :)
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2022-12-20, 17:32:50
Reply #2

JohnNinos

  • Active Users
  • **
  • Posts: 37
    • View Profile
Thanks a lot Maru, i'll wait just in case anyone has done any experiment and what's the difference. As you correctly mentioned if it's minor the most flexible solution wins :)

2022-12-21, 11:50:08
Reply #3

Aram Avetisyan

  • Corona Team
  • Active Users
  • ****
  • Posts: 510
    • View Profile
Hi,

It will be almost exactly the same, given the Scatters have the same options, and there are "a few" scatters. If you create too many (>100) scatter objects, of course giving away the usability, and have the same amount of instances in total, there will be performance decrease, as parsing much more unique objects will take more time.

For performance optimization, depending on the scene, viewing distance etc., you can get decent performance increase by using CoronaPattern as "base" for scatter, and having significantly less scattered instances. Distributing the total number of instances over multiple Scatter objects will more likely worsen the performance, and significantly affect the usability and control of all.
Aram Avetisyan | chaos-corona.com
Chaos Corona Support Representative | contact us