Login | Register 
Products Applications Downloads Features Wiki forum Store
 

automatically freeing gpu ram

General discussion about anything TouchDesigner

automatically freeing gpu ram

Postby keithlostracco » Fri Jun 22, 2012 1:21 am

Does Touch automatically free gpu ram that was used by components that have been turned off (set to not cook)? I assumed it did but then I just right clicked on a Top found Touch reported that I was using 4000mb of 2500 of GPU memory. Is Touch just not updating the info dialog after it has released memory?
keithlostracco
 
Posts: 525
Joined: Tue Dec 09, 2008 1:39 pm

Re: automatically freeing gpu ram

Postby malcolm » Fri Jun 22, 2012 5:07 pm

Turning off cooking does not free GPU ram. You can free GPU ram by forcing the resolution of TOPs not in use to 2x2 (and then cooking them) and using unloadmovie on Movie In TOPs.
User avatar
malcolm
Staff
 
Posts: 2183
Joined: Tue Nov 13, 2007 12:11 am

Re: automatically freeing gpu ram

Postby keithlostracco » Fri Jun 22, 2012 6:33 pm

Okay thanks.I think will be to just delete each comp after its done being used.
keithlostracco
 
Posts: 525
Joined: Tue Dec 09, 2008 1:39 pm

Re: automatically freeing gpu ram

Postby rodberry » Tue Jul 03, 2012 7:13 am

Malcolm,

looking at similar issues...
Turning off cooking does not free GPU ram. You can free GPU ram by forcing the resolution of TOPs not in use to 2x2 (and then cooking them) and using unloadmovie on Movie In TOPs.


could we do this to a MovieIn TOP using something like opparm moviein1 customsize ( custom ) resolution ( 2 2 )?

we are getting a visible glitch whenever we use the unloadmovie command so wondering if there's a better way.

Rod.
User avatar
rodberry
 
Posts: 896
Joined: Wed Nov 14, 2007 1:51 pm
Location: Hobart, Tasmania, Australia

Re: automatically freeing gpu ram

Postby malcolm » Tue Jul 03, 2012 10:30 am

What's the error you are getting when you use unloadmovie? If you are unloading a movie you shouldn't be looking at it, otherwise, why are you unloading it?
User avatar
malcolm
Staff
 
Posts: 2183
Joined: Tue Nov 13, 2007 12:11 am

Re: automatically freeing gpu ram

Postby michela » Tue Jul 10, 2012 12:35 am

Thanks Malcolm. Yes that was a logic bug. Start playing new movie before you unloadmovie - yields better results.
michela
 
Posts: 54
Joined: Tue Jan 10, 2012 10:51 pm
Location: Sydney

Re: automatically freeing gpu ram

Postby ab30 » Mon Jul 16, 2012 4:44 am

I wonder if the unloadmovie is really efficient, because in the case of a moviein image with a chain of operations, if one applies the unloadmovie function to the moviein, the image is certainly unloaded, but only in the movieintop, and not in the other following tops in the chain, so the image is still in the GPU RAM, is that right ?

Edit: ah, the thing is that the unloadmovie function doesn't cook the following operators automatically, so that to be really efficient, one has to manually "force to cook" the next operator.
ab30
 
Posts: 237
Joined: Fri Apr 27, 2012 10:36 am

Re: automatically freeing gpu ram

Postby ab30 » Thu Jan 17, 2013 6:33 pm

In the case of replicators with moviein top, it is best to think to unloadmovie before it updates the replicas, otherwise it will have no effect.
ab30
 
Posts: 237
Joined: Fri Apr 27, 2012 10:36 am

Re: automatically freeing gpu ram

Postby ab30 » Fri Jan 18, 2013 4:20 am

malcolm wrote:Turning off cooking does not free GPU ram. You can free GPU ram by forcing the resolution of TOPs not in use to 2x2 (and then cooking them) and using unloadmovie on Movie In TOPs.


What Malcom didn't say is that powering OFF TD makes that GPU and CPU RAM are not purged anymore. For the RAM to be free by TD, power must be ON.
ab30
 
Posts: 237
Joined: Fri Apr 27, 2012 10:36 am

Re: automatically freeing gpu ram

Postby malcolm » Fri Jan 18, 2013 1:49 pm

This is correct. The newer 088 has a lazy GPU RAM deallocation system that hopefully avoids stutters when moving from one scene to another. But it requires that power be on to work.
An update I'll add is to immediately free the RAM if power is off.
User avatar
malcolm
Staff
 
Posts: 2183
Joined: Tue Nov 13, 2007 12:11 am


Return to General TouchDesigner Discussion

Who is online

Users browsing this forum: No registered users and 2 guests