Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] General Discussion => Topic started by: aaouviz on 2023-01-26, 10:15:47

Title: Max extremely slow to close
Post by: aaouviz on 2023-01-26, 10:15:47
Hi all,

I'm not sure if this a Corona-related issue or not, but since updating to Max 2023 (I think) (And maybe since getting Corona 10, but probably earlier than that too) I've noticed my scenes are EXTREMELY slow to close.

Like it takes 10 minutes...

I figured this was because I have a pretty heavy scene, where I first noticed it. But it's not obscenely heavy.

Now I notice it's happening too in much more simple (but freshly made) scenes, with only 4-5 materials.

Anyone else experiencing such issues?

I'm on Windows 10. Max 2023.1. Corona 10 daily Jan 2 (but was happening with Corona 9).

I also use Pulze SM plugin.

Any thoughts? Thanks!
Title: Re: Max extremely slow to close
Post by: maru on 2023-01-26, 11:14:01
I haven't noticed this when working with simple tests scenes (few objects + few materials) or with user-submitted scenes (some are multiple GB in size with hundreds of materials).
If you wish, you can send us a sample scene and we can check if the same thing happens on our end: https://support.chaos.com/hc/en-us/requests/new
Title: Re: Max extremely slow to close
Post by: danio1011 on 2023-01-27, 07:05:39
I've been experiencing this on and off for years.  If you google around you'll see other people have similar issues (https://forums.autodesk.com/t5/3ds-max-forum/3ds-max-2019-3-slow-exiting/td-p/8504663)  The difference between me and that report is that with simple\nearly empty scenes it closes pretty quick.  But with anything moderately heavy it can take 10 minutes to close.  Some people in that thread seem to have solved it by enabling\disabling their network cards but I was never able to solve it that way.

Honestly what I normally do is just save the scene and then kill it through task manager.  Not ideal, but it saves a ton of time.

Running threadrippers on Windows 10 and have seen this issue in Max 2019, 2020, 2021, 2023...latest Corona, Pulze, Forest Pack, Railclone.
Title: Re: Max extremely slow to close
Post by: Vlad_the_rant on 2023-02-21, 17:02:45
I have this issue  and have had it for years. It seems to be dependent, at least for me, on the time Max has been open before closing - after a few hours of Max being open (I haven't measured it but it's at least 1+ hours), closing it will take a long time. I suspect it's a Max issue and nothing to do with Corona. Max is Max...
Title: Re: Max extremely slow to close
Post by: aaouviz on 2023-02-21, 18:51:18
I have this issue  and have had it for years. It seems to be dependent, at least for me, on the time Max has been open before closing - after a few hours of Max being open (I haven't measured it but it's at least 1+ hours), closing it will take a long time. I suspect it's a Max issue and nothing to do with Corona. Max is Max...

Hmm, OK, thanks for the additional info.

This doesn't seem to be the case for me though. As mentioned, it only recently started happening, and even if I open a scene for 1 minute then close, it's still 10+ minutes of closing time...

But yes, Max is Max :(
Title: Re: Max extremely slow to close
Post by: krszts on 2023-05-24, 12:17:14
Hey guys, i recently tried switching default renderer to Arnold and closing is much quicker. So I guess corona has something to do with it.

Scene is the same. Only Corona Materials. I just switched render to Arnold when I want to close max and it will close much much faster.

Title: Re: Max extremely slow to close
Post by: Juraj on 2023-05-24, 12:37:37
Wasn't there another thread like this? Yeah this issue popped up for me about 3-4 months ago. I haven't been able to pin it down (but I also didn't try...).
Title: Re: Max extremely slow to close
Post by: dfcorona on 2023-05-24, 22:23:47
Same thing here, are we all running Threadrippers?
Title: Re: Max extremely slow to close
Post by: leo_surrealismo on 2023-05-24, 22:43:58
same here, and running threadripper also
Title: Re: Max extremely slow to close
Post by: krszts on 2023-05-24, 23:01:02
Thanks for making me feel poor :D 5950X here
Title: Re: Max extremely slow to close
Post by: aaouviz on 2023-05-25, 07:18:36
Same thing here, are we all running Threadrippers?

Yep, I am
Title: Re: Max extremely slow to close
Post by: arqrenderz on 2023-05-25, 17:04:21
Same here but with 7950X
Title: Re: Max extremely slow to close
Post by: dfcorona on 2023-05-25, 17:09:51
So so far it's not only Threadrippers, but seems to be only AMD.  Anyone with an intel with this issue?
Title: Re: Max extremely slow to close
Post by: Juraj on 2023-05-25, 17:18:54
I think I had it on my Intel 13950HX laptop as well, but also haven't taken much notice. It's one of those things I accepted, perhaps putting it down to heavy scene with some particular feature (I once found out for example a scene where single object with symmetry modifier applied to poly select, or something like that, caused 15 minute Max opening, and 4 minutes of Corona Precomputation, just weird, and it was purely because of that symmetry mod combo).

It's so hard to diagnose these things that I gave up trying to do most of the time unless it's extreme, like that symmetry bullshit, since that annoyed me with every render start, but I only close scene few times a day so I didn't bother investigating.
Title: Re: Max extremely slow to close
Post by: Ink Visual on 2023-05-25, 17:57:18
Our Studio uses both intel and AMD and Max closing times are just as bad on both platforms.
It has surely sth to do with plugins we use (or how 3ds Max is managing them), it's hard to isolate it to one in particular though as we use many.
Very annoying so we also starte to simply fore quit max after saving.
Title: Re: Max extremely slow to close
Post by: Juraj on 2023-05-25, 19:36:40
Heh, the new Windows insider beta will have Force Quit button/dropdown :- )
Title: Re: Max extremely slow to close
Post by: danio1011 on 2023-05-25, 23:18:35
Just updated to 2024.1 and it still happens.  And for me it's not how long Max has been open, but rather the scene size.  I just opened a large scene, messed with the new slate material editor, and tried to close it after 5 minutes of being open.  It's been sitting there for at least 5 waiting to close....

Latest DB of corona, latest forest pack, Windows 10, 3970x w\ 128gb ram.
Title: Re: Max extremely slow to close
Post by: aaouviz on 2023-05-26, 07:57:26
I stumbled upon another discussion on this topic over in the autodesk forums. No success in fixing it there either.

https://forums.autodesk.com/t5/3ds-max-forum/multiple-3ds-max-instances-open-saving-lag/m-p/11833359#M206439 (https://forums.autodesk.com/t5/3ds-max-forum/multiple-3ds-max-instances-open-saving-lag/m-p/11833359#M206439)
Title: Re: Max extremely slow to close
Post by: AQ on 2023-06-02, 03:29:27
Hello everyone, I am a designer from China. I also encountered the problem of slow closing speed of MAX some time ago, but after I used the plug-in to disinfect the file, the problem improved. I have read about the impact of file viruses on the operation of MAX. The virus may be infected after we download the model, and then affect the reading and writing speed of the entire 3DMAX file. If the reading and writing speed of the file is still very slow after anti-virus, I suggest you save it several times before closing the file, and then close 3DMAX. Then use the task manager to close the software directly. I will report this problem to 3DMAX officials later to seek a complete solution.
Title: Re: Max extremely slow to close
Post by: aaouviz on 2023-06-02, 08:03:39
Hello everyone, I am a designer from China. I also encountered the problem of slow closing speed of MAX some time ago, but after I used the plug-in to disinfect the file, the problem improved. I have read about the impact of file viruses on the operation of MAX. The virus may be infected after we download the model, and then affect the reading and writing speed of the entire 3DMAX file. If the reading and writing speed of the file is still very slow after anti-virus, I suggest you save it several times before closing the file, and then close 3DMAX. Then use the task manager to close the software directly. I will report this problem to 3DMAX officials later to seek a complete solution.

Which plug-in did you use?
Title: Re: Max extremely slow to close
Post by: Vlad_the_rant on 2023-06-02, 23:02:54
In my case, this kind of thing stopped completely in Max 2024 so it leads me to believe it's a Max thing. Max was also leaving memory dump files in the CrashDumps folder (C:\Users\[USERNAME]\AppData\Local\CrashDumps) which I had to clean out often as each dump was 600+ Mb so the folder tended to grow to 5+ GB within 2 - 3 days.
Title: Re: Max extremely slow to close
Post by: James Vella on 2023-06-04, 17:49:50
I remember this from years ago when I worked on a network but now I work locally I don't get this hang. Try this:

If you 3dsmax is hanging, pull out the ethernet cable. Wait about 3-5 seconds, if the problem is resolved then its because of the network/asset location.

If not, carry on.
Title: Re: Max extremely slow to close
Post by: Juraj on 2023-06-05, 13:05:34
I only use local files today, or rather did for past 2 years. And still this issue started only few months ago. So that definitely wasn't aspect of it I believe.
Title: Re: Max extremely slow to close
Post by: aaouviz on 2023-06-05, 13:27:41
I remember this from years ago when I worked on a network but now I work locally I don't get this hang. Try this:

If you 3dsmax is hanging, pull out the ethernet cable. Wait about 3-5 seconds, if the problem is resolved then its because of the network/asset location.

If not, carry on.

Yeah, definitely not the case for me.
Title: Re: Max extremely slow to close
Post by: James Vella on 2023-06-05, 14:28:08
hm interesting, thanks for the update.
Title: Re: Max extremely slow to close
Post by: NOMANKIND on 2023-06-23, 08:24:28
Few years ago, I had problem like this with V-Ray. After weeks search, I found a "SceneCleaner_Startup.ms" script from AD support
(https://www.autodesk.com/support/technical/article/caas/sfdcarticles/sfdcarticles/3ds-Max-Scene-file-takes-a-long-time-or-slow-to-open.html (https://www.autodesk.com/support/technical/article/caas/sfdcarticles/sfdcarticles/3ds-Max-Scene-file-takes-a-long-time-or-slow-to-open.html))

I put it in max root\scripts\Startup folder.
Evertime open scene, it will clean "garbages" and popup a windows show statement.
After clean, magic happen, the scene can close smoothly.
But remeber save the scene file before close it.

Ensure DESELECT everthing of the scene when in cleaning, or it will slow down the clean process :)

Well, AD update the support page and SceneCleaner script (could be founded and downloaded on the bottom of article in the linking page).
And please read the official instruction on the page before use it.
Title: Re: Max extremely slow to close
Post by: VIZSET on 2023-07-23, 19:39:56
Few years ago, I had problem like this with V-Ray. After weeks search, I found a "SceneCleaner_Startup.ms" script from AD support
(https://www.autodesk.com/support/technical/article/caas/sfdcarticles/sfdcarticles/3ds-Max-Scene-file-takes-a-long-time-or-slow-to-open.html)
I put it in max root\scripts\Startup folder.
Evertime open scene, it will clean "garbages" and popup a windows show statement.
After clean, magic happen, the scene can close smoothly.

Ensure DESELECT everthing of the scene when in cleaning, or it will slow down the clean process :)

It seems download link in AD support lost, there is it
https://drive.google.com/file/d/1cFuLbhOquzaAozkoUy-1R4HPgFHJQcEH/view?usp=sharing


it works! thank you man
Title: Re: Max extremely slow to close
Post by: aaouviz on 2023-08-01, 15:14:06
Few years ago, I had problem like this with V-Ray. After weeks search, I found a "SceneCleaner_Startup.ms" script from AD support
(https://www.autodesk.com/support/technical/article/caas/sfdcarticles/sfdcarticles/3ds-Max-Scene-file-takes-a-long-time-or-slow-to-open.html)
I put it in max root\scripts\Startup folder.
Evertime open scene, it will clean "garbages" and popup a windows show statement.
After clean, magic happen, the scene can close smoothly.

Ensure DESELECT everthing of the scene when in cleaning, or it will slow down the clean process :)

It seems download link in AD support lost, there is it
https://drive.google.com/file/d/1cFuLbhOquzaAozkoUy-1R4HPgFHJQcEH/view?usp=sharing

Hey, I downloaded this script. Seems to work OK!

But you mention deselecting ... I don't see any options? Is this the correct script?
Title: Re: Max extremely slow to close
Post by: NOMANKIND on 2023-08-09, 10:26:31
Hey, I downloaded this script. Seems to work OK!

But you mention deselecting ... I don't see any options? Is this the correct script?

This script is automated with no other options available.
Generally, it can be completed within a few seconds.
However, during its execution, you can still select objects in the scene, which seems to slow down execution speed, especially when you select many objects.
Strange script from AD :)
Title: Re: Max extremely slow to close
Post by: JG_monomiru on 2023-09-08, 08:08:46
I had these issues with scenes not regarding huge or semi huge file size - that max really takes ages to close, while it closes very fast if its an empty scene.
First i thought it has something to do with all the loaded material and multi-submaterials as they are known to slow down max.

But whenever i use prune scene and clear most of the selections (except missing bitmaps, empty layers and animation keys) ... the scene/max will close as fast as expected.
I haven't checked every single option in prune scene to figure out what is really causing the huge lag time to close max - not really find time to figure it out yet.

(using max 2020, corona 10, itoo forrestpack/railclone, multitexture (yes i know its causing troubles with forrestpack) / ryzen 5950)
Title: Re: Max extremely slow to close
Post by: Tok_Tok on 2023-10-10, 11:30:17
Awesome this worked for me as well! So strange that I never had this problem until 2024. It removed 15k animation layers it said. But how did those came to be? I ony did 4 very basic camera animations in the scene I had problems with...

I really need to switch to another 3d package...
Title: Re: Max extremely slow to close
Post by: aaouviz on 2023-10-10, 11:54:11
I have a feeling this is **possibly** malicious... (more on that later)

I do the scene clean up very very regularly. I clean up, then a day or two later I need to do another clean up. It's almost always the same number for me, 19 thousand and something.

I suspect it 'resets' to 19000 when I paste in an object from another file (which is also in need of a clean).

So if I clean up the scene, continue working on it and then paste an object... I need another clean up.

My suspicion is that this is some sort of virus or something similar? Or maybe not.. I dunno
Title: Re: Max extremely slow to close
Post by: alexyork on 2023-10-10, 12:02:45
This animation layers mess has been going on since 2020 days or maybe earlier. We've been using Forensic for years and it helps a tonne. Just in habit of running it before every save and before any major render, clean anim layers, clean empty layers etc.

I doubt very much you have a virus. But Forensic also checks for that btw.
Title: Re: Max extremely slow to close
Post by: aaouviz on 2023-10-10, 12:17:16
Thanks Alex,

Silly question, BUT...

I've always been a bit afraid to use the clean anim layers... does it delete animations keyframes that I've set-up (and need for animations!?)
Title: Re: Max extremely slow to close
Post by: alexyork on 2023-10-10, 13:29:08
Thanks Alex,

Silly question, BUT...

I've always been a bit afraid to use the clean anim layers... does it delete animations keyframes that I've set-up (and need for animations!?)

Never had any issues like that, no. https://help.autodesk.com/view/3DSMAX/2023/ENU/?guid=GUID-ACAD407C-B079-4DAB-9DD0-6C8DC22389EF
Title: Re: Max extremely slow to close
Post by: Blanco on 2023-11-14, 09:53:24
Found this thread whilst looking for a solution for the same issue - 3dsmax very slow to close, mostly with scenes with lots of layers, textures etc.
The solution I found, which has already been suggested, is to use the Prune Scene script. I have just tested a scene that took around 2 nminutes to close. I ran the prune scene script and it then took only 1 second to close. It's a paid for script but well worth the money and you get free updates. It also has active/passive virus/malware detection which has saved me a couple of times.
I'm not saying this will help eveyone, but it did the trick for me. Just be careful how you use it!

As a side note, I used to work with Vray and don't recall having this issue...
Title: Re: Max extremely slow to close
Post by: maru on 2023-11-14, 19:00:12
You can also use the newest daily build of Corona (or wait for the 11 release) which has the new Power Tools with a similar scene cleaner: https://forum.corona-renderer.com/index.php?topic=40442.0