View Full Version : MaxScript slowing down?
BClaw 03-22-2004, 04:19 PM I wrote a script to animate some geometry, and because of the complexity, I decided to have the script delete all geometry, create new geometry, render a single frame, then continue. It works fine for awhile, but it grows slower and slower and slower as the script runs. Any ideas on some techniques to clear memory, or thoughts on what the problem might be?
Here's the script for reference:
Script (http://home.rmci.net/tuvel/private/4-sphere-4.ms.txt)
Thanks!
|
|
Cthulhu
03-22-2004, 04:23 PM
add a garbage collect ( gc() ) to your script, this will clean up unused memory. you should probably put it after you deleted the geometry..
and increasing the max memory heap size might also help..
BClaw
03-23-2004, 06:16 AM
Adding gc() to my script seems to have done the trick! :bounce: Thanks, Cthulhu! :beer:
galagast
11-10-2004, 05:35 AM
is ther another method for clearing up the memory in max? (aside from restarting max - which i currently do.. hehe)
Basically, i just wanted to clear up all variables... (make them all undefined)
gc() doesnt do the job though...
reset doesnt do it either...
CGTalk Moderation
01-17-2006, 08:00 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.