Memory problem after rendering

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
Old 11 November 2012   #1
Memory problem after rendering

I have a huge scene I am working with in 2012. My machine has 48 gb ram. When rendering a frame locally, max memory usage goes from about 20gb to 36gb. Which is ok, but the memory usage stays at 36gb after rendering. The next time i render the same frame locally the memory goes from 36 to 44, and then stays at 44. The next render crashes the machine. Is there some kind of cache I can clear that will help this. So far the only solution is to monitor the memory and restart max.

I have tried gc() but it doesnt seem to work.

Thanks for any help.
 
Old 11 November 2012   #2
This sounds like some problem with the scene

But you might try,

freeSceneBitmaps() 


From the help section:
Quote: Frees up all the memory used by the image file bitmap caches. This is useful if memory is fragmented with a lot of different bitmaps and you want to have just the ones currently active reloaded.
__________________

PowerPreview: High Quality Nitrous Previews for 3ds Max 2012|2013|2014

[ Free Download (ScriptSpot) ]

Home of The Frogs | Online Portfolio
 
Old 11 November 2012   #3
Where do we put the code spacefrog?
__________________
I like to learn.
 
Old 11 November 2012   #4
Whoops forget that spacefrog. I remembered, Maxscript.
__________________
I like to learn.
 
Old 11 November 2012   #5
Originally Posted by Dillster: Where do we put the code spacefrog?


just type it in the listener at the bottom left of the screen.
 
Old 11 November 2012   #6
Originally Posted by spacefrog: This sounds like some problem with the scene

But you might try,

freeSceneBitmaps() 


From the help section:



Yay this works perfectly....Thanks!
 
Old 11 November 2012   #7
Thread automatically closed

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.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 10:45 PM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.