Okay, cool.

I'm doing this to monitor memory management.
The code I first wrote just sits inside of a loop. I load the model, let 
it sit there for a second, then unload it. I repeat this infinitely. In 
looking at the memory usage of the application, it slowly climbs after 
every iteration of the loop. If I comment out the loading and unloading 
commands, the memory usage is stable and does not rise.

Is subChild supposed to clean up entirely or do I have to do something 
else to keep things stable?

-Austin




Dirk Reiners wrote:
>       Hi Austin,
>
> Austin Baker wrote:
>   
>> Hi,
>>
>> I'm new to OpenSG and am looking for a way to test a system's ability to 
>> dynamically load and unload a single object while running. Can somebody 
>> recommend a good way to do this?
>>
>> My natural inclination is to do this:
>>
>>     osg::NodePtr testObject = loadModel("tree1.3ds", getRootNode());
>>     getRootNode()->subChild(testObject);
>>
>> where getRootNode returns a pointer to the NodePtr "scene_root".
>>     
>
> That should work just fine. :)
>
> Hope it helps
>
>       Dirk
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> Opensg-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/opensg-users
>
>   


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to