just learned this recently from a programmer at work and by using it regularly i have greatly increased the stability of max.
while using max, certain scripts and plugins, as well as even certain functions of max itself create memory leaks, to clear all memory, and the undo buffer type gc() in the lower left hand corner(in the listener window) and press enter. max has been playing much better with me ever since i started doing this.
hope it helps.
Replies
- Open file > Xref Objects > Then close the menu
- Open file > Xref Scene > Then close the menu
- Type the gc() command into the listener
Do that, and it should help a LOT. Some of our scene files bloated to 20+MB for no apparent reason. After doing this, they went back down to 600-700KB. Not bad
*hint hint*
You couldn't really add the xref things that Vassago mentioned to a maxscript anyway, since 2 of those commands, while possible to call from maxscript, open up new windows which require the user to click Close, and you can't open both the Xref scenes and Xref objects windows at once.
Just having gc() in a toolbar button would probably do it.
Although typing gc() once in a while really isn't that strenuous
gc light:true
there's also a maxScript for this that will do all these steps for you, give
you the option of saving as a different name and return the file sizes
before and after...
Main UI -> All Commands -> Fix File Bloat
I put it on my toolbar.
poopys out of bandwidth!!!
[/ QUOTE ]
There is something really wrong with that statement
Thanks for the tips guys. I don't appear to have Fix File Bloat though Poop.
i just noticed that the gc command does not execute from a toolbar (created via drap&drop). after reading the maxscript online help, i feel considerably more stupid now but didn't solve it.
It's a built in command of Max thomasp, no downloading required.
[/ QUOTE ]
I don't see it either, and have never heard of that command (not that that really means anything). I'm guessing it's a Neversoft thing that was installed for you guys automatically. Do you have any other info on it, like the actual .mcr file it runs? I'd like to see it.
Although typing gc() once in a while really isn't that strenuous
[/ QUOTE ]
Yuo have sen mytyping skills around here rgiht?