Keep up-to-date with Free tutorials!!

 

Sign up to our twice-monthly newsletter today for the latest tutorials, interviews and product information.

Sign me up to receive third-party emails from 3dtotal's partners, too!

- Latest news
- Exclusive Shop Offers
- Preview early content
- Plus much more

 

Not Ready to take that step? OK, Why not just Subscribe to the RSS Feed

 
submit tutorial
1
Quick Tip #1: Free Up Memory in 3dsmax

| Your Rating:
rating star fullrating star fullrating star fullrating star fullrating star full
(16 Votes)
| 35944 Views
| 16 Comments
| Comments 16
Date Added: 23rd November 2010
Software used:
Keywords:
120_tid_main.jpg
If your Max scene is getting sluggish or you run out of memory when you try to render. There are a few script functions that might help you out.

  • gc() Garbage Collection.
  • freescenebitmaps() Cleans up in texture memory.
  • clearUndoBuffer() Removes your Undo's


Just type the one you want in the lower left text field in max and press return (Fig.01).

120_tid_image_01.jpg
Fig. 01

Note: If you have windows task manager open and monitoring 3ds Max memory use, you can see the result straight away.

And that is pretty much it... if you want to go further and make the functions more accessible read below on how to make it into a script that you can run directly from a button on your Toolbar.

Making it a Script

I put all three functions into a small script you can run instead of manually typing it in every time ("FreeMem.mcr"). Right click and select Save As.

Once saved, just run the script from the MAXScripts menu in 3ds Max (Fig.02)

120_tid_image_02.jpg
Fig. 02

If you want a more permanent solution you can create a button on your Toolbar with the script. All you have to do is open the script and then instead of run, you select open and load the script (Fig.03).

120_tid_image_03.jpg
Fig. 03

Once the script is open you have to run the Menu > Evaluate all (Ctrl-E) from the MAXScript menu bar. (In older versions of Max the Evaluate All is under File in the menu).

To add the script to a button all you have to do is right-click in the Toolbar and select Customize (Fig.04).

120_tid_image_04.jpg
Fig. 04

Then just locate "MyScripts" and drag and drop the Free Up Memory Action to your Toolbar (Fig.05).

120_tid_image_05.jpg
Fig. 05

Once the button is created you can change the text and add a logo instead if you want. Just right click the button and select Edit Button Appearance. There are a bunch of icons to choose from.

And that's it for now. Stay tuned for some more tips and tricks from me coming to 3DTotal soon!
 
1
Related Tutorials

Lighting Tips - Featuring Coney!

by Kory Heinzen
published on 2009-12-09

Keywords: lighting, tips, video,

Go to tutorial
rating star nonerating star nonerating star nonerating star nonerating star none (0)
Comments 0 Views 40408

Photoshop Optimization Tips

by Leonid Kozienko
published on 2009-12-09

Keywords: photoshop, performance, optimization, tips,

Go to tutorial
rating star fullrating star fullrating star fullrating star fullrating star full (3)
Comments 0 Views 56349

12 Tips for 3dsmax and your PC

by Gary Smith
published on 2009-12-09

Keywords: max, pc, 12, tips,

Go to tutorial
rating star fullrating star fullrating star fullrating star halfrating star none (5)
Comments 5 Views 64320

Texturing Tips

by Julien NOEL
published on 2009-12-09

Keywords: scene, street, door, window, texturing, tips,

Go to tutorial
rating star fullrating star fullrating star fullrating star nonerating star none (1)
Comments 0 Views 18221
Readers Comments (Newest on Top)
avatar
Jon Ibarra on Thu, 25 August 2016 2:22pm
thanks dude, garbage collection works for me
avatar
Axd on Mon, 28 December 2015 11:10am
WHAT do you ****ing mean 'press RETURN' ???
avatar
Jamie on Thu, 19 November 2015 12:55am
Best tip ever! Has saved me from throwing the pc out the window with RAAAAAAAAAAAAAGE!
avatar
Byteman3D on Wed, 12 August 2015 10:50am
Thank you for the tip. Though I really don't know if it helps. My main memory problems arise while rendering animations in 3ds max with mental ray. I already start renders just after a clean boot of the program. It still crashes after rendering some frames. I wonder if there is a way to run a batch to cleanup memory after each and every frame is rendered. That way we can see if cleaning memory by this method really helps.
avatar
Arniel on Wed, 13 May 2015 9:16am
thanks for the tip its very usefull
avatar
Bharat on Thu, 26 March 2015 1:47pm
when I save & close My 3ds max got hanged or gone to not responding, CPU usage is full & also the memory usage is also increasing, what to do, Rendering work & other related works got fine. Please help .....
avatar
Parham on Sat, 30 August 2014 6:59am
That was great ! Thank you ;)
avatar
Shan on Sun, 16 December 2012 6:44am
Really great thanks a lot
avatar
Ish on Thu, 03 November 2011 2:14pm
Y'all R F'n AWESOME ! ! ! Thanks! !
avatar
Emmanuel on Sat, 10 September 2011 1:54pm
I really like this site, thanks for help and God bless!
avatar
Immortal on Fri, 31 December 2010 8:04pm
Amazing scriptïng closed max for clear memory and now I can used it. Thank!
avatar
Ian on Sat, 27 November 2010 10:40am
Awesome, really helped me to get a render going on my ancient home comp, cheers.
avatar
AayZee on Fri, 26 November 2010 7:21pm
Very Nice.. really Appriciate it. and Thanks Cetras, its a gud idea.. (Y)
Munkybutt's Avatar
Zortech (Forums) on Tue, 23 November 2010 11:10pm
Small typo there right in the beginning:[LIST]gc() Barbage Collection[/LIST]Its garbage collection. Nag nag. And if you want to keep your undo history you can use [Quote]gc light:true[/Quote]
avatar
Colt3d on Tue, 23 November 2010 8:28pm
Yay ! what a simple and useful trick ! thanks a bunch
avatar
Cetras on Tue, 23 November 2010 11:30am
Sounds great ! Thank you. We might also put the script in the "Pre-Render" Option, to execute it before each Rendering...
Add Your Comment