OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

Leaking memory on node removal


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General
View previous topic :: View next topic  
Author Message
Tini
Newbie


Joined: 07 Mar 2018
Posts: 7

PostPosted: Fri May 25, 2018 6:27 pm    Post subject:
Leaking memory on node removal
Reply with quote

Hi everyone,

I add and remove nodes (loaded from *.3ds files) without stopping OSG, but after each remove the process working set and private bytes (as reported by Process Hacker) don't drop where they were before loading the node but a few mega bytes higher, so my program keeps increasing its memory use with each node load / unload cycle.

I have verified that the root node returned from osgDB::readNodeFile() is deleted, but I'm wondering whether OSG keeps cached copies of images or vertex data in RAM or GPU, and if so, should I do anything to tell it to release them when I'm deleting a loaded node?

I add / remove the loaded node to / from its parent right before calling frame(), but I load / unload them in another thread. However I don't get crashes or any sort of errors or warnings, so I think I'm doing this right.

Thanks in advance

Cheers,
Altin
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Similar Topics
Topic Author Forum Replies Posted
No new posts Leaking memory on node removal Tini General 1 Fri May 25, 2018 6:48 pm View latest post
No new posts Leaking memory on node removal Tini General 0 Fri May 25, 2018 6:39 pm View latest post
No new posts Leaking memory on node removal Tini General 0 Fri May 25, 2018 6:30 pm View latest post
No new posts EXTERNAL: Re: Getting the combined ma... Rowley, Marlin R General 0 Tue May 08, 2018 3:25 pm View latest post
No new posts Getting the combined matrix from a Node? Rowley, Marlin R General 2 Mon May 07, 2018 7:01 pm View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP