Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] I need help! => Topic started by: Hubl on 2022-09-12, 15:37:02

Title: Corona Light slows down Viewport
Post by: Hubl on 2022-09-12, 15:37:02
Hey I got 100 Artifficial Corona lights for Windows and 100 Lights for Balcony in a scene. Both Light Types are Instances. So there are only 2 diffrent lights.

But when they are Vissible in the Viewport the FPS drops to 0.  When i hide them up raises up to 120 FPS.
I updated to the nvidia studio driver but that also doesnt fixed it....

What am I doing wrong?

thanks in Advance
Title: Re: Corona Light slows down Viewport
Post by: Ink Visual on 2022-09-12, 15:51:05
From my experience 3dsMax performance drops significantly whenever the viewport contains hundreds of instances of any object type, not necessarily lights. Everything is fine if these were all attached to one object, (or scattered i.e with ChaosScatter instead of being manually instanced) so it's not about a polycount, but rather number of objects instanced in the viewport.

Can you test if in your scene, same scenario with instanced boxes instead of lights, would give you the same fps drop?
Title: Re: Corona Light slows down Viewport
Post by: Hubl on 2022-09-12, 16:12:27
Ok I tried with 500 instnace boxes and copy thos instances 3 times ... perfomance is fine...
Title: Re: Corona Light slows down Viewport
Post by: romullus on 2022-09-12, 16:44:20
Just tested with 1000 instanced Corona lights in 3ds max 2023 and Corona 9. I can confirm that viewport FPS drops dramatically, but only with spherical light shape. All other shapes have much less impact on FPS. If it's possible, i'd suggest to change light shape, or use geometry and light material.
Title: Re: Corona Light slows down Viewport
Post by: PROH on 2022-09-12, 17:14:19
Hi. Have you tried to set properties to "show as box"?
Title: Re: Corona Light slows down Viewport
Post by: Hubl on 2022-09-12, 21:58:39
Hey yes i tried to set it to "show as box" didnt have any positiv effect on the FPS :-(
Title: Re: Corona Light slows down Viewport
Post by: NicolasC on 2022-09-13, 09:48:26
Hi there,

Just by curiosity, your Command Panel is on Create tab or Modify tab ?
Title: Re: Corona Light slows down Viewport
Post by: Hubl on 2022-09-13, 10:16:01
I guess I know what you are thinking of... its in create so the properties didnt reload every time I chose a corona light.

if those instanced light are shown in the scene, 3D Max drops the FPS .... i dont select, modify, move, scale or rotate them. :-(
Title: Re: Corona Light slows down Viewport
Post by: NicolasC on 2022-09-13, 11:51:28
Yes, but I've noticed so many times slowdowns when 3dsmax is on Modify Mode, hence my question ;)
So the problem you mentioned comes from somewhere else indeed.
Title: Re: Corona Light slows down Viewport
Post by: Hubl on 2022-09-13, 14:18:23
Yes maybe it is a corona bug? i'll try it later with FStorm ...
Title: Re: Corona Light slows down Viewport
Post by: GeorgeK on 2022-09-14, 13:36:36
Hi everyone, this is already reported (https://forum.corona-renderer.com/index.php?topic=36562.0) and logged, please stay posted regarding any news on the issue.

(Internal id=964098542)

Title: Re: Corona Light slows down Viewport
Post by: Ink Visual on 2022-09-15, 08:46:25
Hi George,
Thank you very much for bringing up the previous topic regarding this issue.
Intrigued by the other posts I just tried to reproduce exactly same lag in my fresh 3ds max scene, and indeed:
instancing multiple (I tried to instance the row of 10 lights, 15 times) it pretty much has frozen my Max.

This won't happen if same exercise is done with box or sphere geometry (subdivided to the level of sphere light helper).

It's a serious issue I believe, no wonder why some of our past night-time scenes became very hard to work with.
I always blamed Max Instancing performance but seems like it was actually just Corona issue.

Hope this will get fixed for Corona 9. Fingers crossed.
Title: Re: Corona Light slows down Viewport
Post by: Hubl on 2022-09-16, 11:42:08
Yes i couldnt reproduce that effect with FStorm only with Corona :-( Maybe its time for a Hotfix :D
Title: Re: Corona Light slows down Viewport
Post by: GeorgeK on 2022-09-20, 11:11:38
Hi George,
Thank you very much for bringing up the previous topic regarding this issue.
Intrigued by the other posts I just tried to reproduce exactly same lag in my fresh 3ds max scene, and indeed:
instancing multiple (I tried to instance the row of 10 lights, 15 times) it pretty much has frozen my Max.

This won't happen if same exercise is done with box or sphere geometry (subdivided to the level of sphere light helper).

It's a serious issue I believe, no wonder why some of our past night-time scenes became very hard to work with.
I always blamed Max Instancing performance but seems like it was actually just Corona issue.

Hope this will get fixed for Corona 9. Fingers crossed.

We will see what can be done about this, please stay posted. Thanks!
Title: Re: Corona Light slows down Viewport
Post by: Hubl on 2022-09-22, 14:49:49
A few weeks ago I tried to move a corona sun along a circle for testing lighting conditions. 3d Max was so laggy that i couldnt play the animation.
I thought this was a problem with the coronoa procdural sky added automatically in the viewport.

But now i guess the problem is the corona light system itself?
Title: Re: Corona Light slows down Viewport
Post by: Hubl on 2022-10-18, 12:27:46
Even with the new Corona 9 the viewport slows down with only instanced lights :-(
Title: Re: Corona Light slows down Viewport
Post by: Hubl on 2022-10-31, 10:30:17
Is this a big problem to fix? :-(
Title: Re: Corona Light slows down Viewport
Post by: rowmanns on 2023-03-14, 12:04:27
Hi,

This is fixed in the latest v10 daily build. Let me know how you get on. Cheers!

You can grab the build here: https://forum.corona-renderer.com/index.php?topic=38385.msg210703#msg210703

Rowan