Slow Simulating Times

Got questions, comments and/or feedback regarding Craft Director Studio? Post them here.
Forum rules
We only allow posts that
  • Is in English
  • Is related to our tools and the programs they support.

If these rules are not met you are most likely going to be banned.

Please Note:
  • New users will have their posts reviewed before being publicly available for other to see.
Post Reply
kiredis
Posts: 4
Joined: Thu Apr 13, 2023 4:37 pm

Slow Simulating Times

Post by kiredis » Fri May 05, 2023 3:25 pm

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

Patrik Martin
Partner
Posts: 416
Joined: Mon Feb 25, 2008 1:07 pm
Location: Gothenburg, Sweden
Contact:

Re: Slow Simulating Times

Post by Patrik Martin » Mon May 08, 2023 9:25 am

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.
Partner
http://www.craftanimations.com
patrik.martin-at-craftanimations.com

kiredis
Posts: 4
Joined: Thu Apr 13, 2023 4:37 pm

Re: Slow Simulating Times

Post by kiredis » Mon May 08, 2023 2:04 pm

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.

Patrik Martin
Partner
Posts: 416
Joined: Mon Feb 25, 2008 1:07 pm
Location: Gothenburg, Sweden
Contact:

Re: Slow Simulating Times

Post by Patrik Martin » Wed May 10, 2023 10:12 am

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.
Partner
http://www.craftanimations.com
patrik.martin-at-craftanimations.com

Post Reply

Who is online

Users browsing this forum: No registered users and 27 guests