Author Topic: Possible speed up with LOD for proxies, scatter and shaders?  (Read 1214 times)

2022-08-30, 15:45:56

lupaz

  • Active Users
  • **
  • Posts: 954
    • View Profile
Reading on Stack (Facebook), I found this comment. Could this be implemented in Corona? (see attached)
Especially useful, I think, for Scatter objects.


2022-08-30, 17:25:39
Reply #1

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12768
  • Marcin
    • View Profile
Yes, this is something we are actually investigating.

I am not saying that using different LODs does not ever make sense, but on the other hand: if you instance X high-poly objects, the RAM usage will be actually lower than if you instance the same number of high-poly objects plus low-poly objects. :)
This is because in the first case only one model is loaded into memory and in the second case there are two different objects.
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2022-08-30, 18:52:06
Reply #2

lupaz

  • Active Users
  • **
  • Posts: 954
    • View Profile
Yes, this is something we are actually investigating.

I am not saying that using different LODs does not ever make sense, but on the other hand: if you instance X high-poly objects, the RAM usage will be actually lower than if you instance the same number of high-poly objects plus low-poly objects. :)
This is because in the first case only one model is loaded into memory and in the second case there are two different objects.

Got it. Glad you're investigating it.

i'm particularly interested in the "not rendering occluded scatter instances" part. I can imagine it making a lot of sense when rendering a house for example, in which the lawn scatter object is surrounding it. So with each camera the house blocks a huge part of the lawn scatter object.

2022-08-30, 19:55:29
Reply #3

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8854
  • Let's move this topic, shall we?
    • View Profile
    • My Models
Some native LOD system for the proxies and the scatter would be very appreciated indeed. I think that slight increase in RAM usage would be greatly offset by increased overall performance.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2022-08-31, 17:14:06
Reply #4

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12768
  • Marcin
    • View Profile
Things like this always have the potential of making some scattered objects invisible, for example in reflections, or having shadows of instances visibly missing, etc. But yes, I can confirm that we are investigating LODs, especially for Scatter. 
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us