[Papervision3D] Extra models being created? Unexplained memory behavior.

Leroy743 bspero at gmail.com
Mon Jan 5 14:41:48 PST 2009


Here is my situation,
    I have a program which allows people to enter rooms of a building. When
you enter, a cylinder is created and a panorama of the room is mapped onto
it, giving it a VR feel. The camera is in the middle of these cylinders, and
you can drag the shape around, so it appears as if you are looking around
the room. There are some hotspots that you can click on as well, but they do
not seem to affect the issue that I am having. I removed them and there was
no change in the behavior. Watching the memory on my system, when you go
into a room, sometimes the room will take up 10 MB, and sometimes it will
take up 15MB. When it takes up 10, and you leave the room, then the memory
usage drops by 10MBs, no problem. When the room takes up 15MB, leaving also
makes the usage drop by 10MB, leaving an extra 5MB - which builds up over
time. The memory usage is extremely inconsistent, as sometimes entering the
same room will cause this issue, and other times not. I am trying to
determine if perhaps the MovieMaterial is being loaded twice or something,
but my cleanup script should do the job in this case anyways, as it cycles
through and removes all children, etc. Also, this is not consistent, so I
can't seem to duplicate it reliably in any way, which really has me stumped.
   The whole program runs on a local system, so there is no loading time,
etc. I am wondering if my script moves on before something is completely
finished loading into the papervision object, but no matter what I change,
the program responds the same. What bothers me most is that this seems
random - with no repeatable actions to trigger the larger memory usage. What
would cause sometime to only work sometimes? Just looking for any ideas. I
can post some code, but the project is pretty large, so it might not make
total sense without all the classes, etc. Thanks for any thoughts...

 - B
-- 
View this message in context: http://www.nabble.com/Extra-models-being-created--Unexplained-memory-behavior.-tp21301008p21301008.html
Sent from the Papervision3D mailing list archive at Nabble.com.




More information about the Papervision3D mailing list