Page 1 of 1

Slow Simulating Times

Posted: Fri May 05, 2023 3:25 pm
by kiredis
Hello,

I am currently using 4WheelerExt with Spline Controller in 3ds Max 2023. Normally, when I press 'Resimulate', it takes only 5-10 seconds to load. However, I've been experiencing some issues recently where after around 1500 frames, the loading times suddenly go up to 20 minutes, even if I stop and resimulate again. However, when I restart 3ds Max 2023, I am able to get it to work fast for the same amount of frames again. Unfortunately, the issue reoccurs after some time. Can anyone please advise on how to fix this problem? Thank you.

I am using CDS 22.1.1

Re: Slow Simulating Times

Posted: Mon May 08, 2023 9:25 am
by Patrik Martin
The reason is that there is a lot of data that is stored in memory that needs to be sorted. For example in the undo and redo memory. So when you restart the 3d program these are removed.

My suggestion is that you can try undo before you start a new simulation to mitigate.

Re: Slow Simulating Times

Posted: Mon May 08, 2023 2:04 pm
by kiredis
Hi Patrik,

Thank you for your response. I have attempted to purge the memory using the gc() function in the scripting listener, but unfortunately, the simulations still take more than 10 minutes to finish. I'm wondering if there are specific types of memory that I should focus on freeing up. Could you provide some guidance on this matter? If I record or interrupt the simulation rig seems to disappear as well.

Re: Slow Simulating Times

Posted: Wed May 10, 2023 10:12 am
by Patrik Martin
We do not store our data in GC we allocate our own instead. So, trying to truncate the GC does not affect our tool.

Do you have a very high poly ground? The more polygons the ground have that the 4-Wheeler is driving on the slower the simulation gets. So, if this is the case I suggest that you make a copy, simplify, make it invisible, and connect the 4-wheeler to this ground instead.