WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 02-09-2005, 01:26 PM
shai shai is offline
Member
 
Join Date: Oct 2004
Posts: 29
viz.remove ?

hi, i'd like the variable 'scene' to change every once in awhile:

scene=viz.add(world1.wrl)

then with a certain keypress i'll have:

scene=viz.add(world2.wrl)

the question is, every time i do a ".add" it loads a .wrl, if i do this thousands of times won't my memory go berserk. i mean, isn't there a .remove i can do to release memory. for example, if i load world2.wrl , i don't want world1.wrl to be in memory anymore.

thanks,
shai
Reply With Quote
  #2  
Old 02-09-2005, 01:39 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Hi,

Try scene.remove(). This will permanently delete an object.

Do you actually have a thousand different objects to load? If not, I would suggest that you load all the objects at the beginning of your script so you don't have to delete and reload the same objects.
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This 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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 06:54 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Copyright 2002-2018 WorldViz LLC