Hi,
I'm currently monitoring the memory consumption
of my program. The program loads several models
from disk and renders a small preview for each
of them. I use a separately allocated pbuffer
for that. After start-up the mem consumption
is e.g. 311MB. If I don't do the preview rendering
I get a consumption of 258MB. So I guess something
is leaking in the preview code. All I do is to pass
a clone of the node to the SimpleSceneManager associated
to the pbuffer and set-up the root node:
// make pbuffer context current
m_pBuffer->makeCurrent();
NodePtr cloned = node->clone();
m_pMgr->setRoot( cloned );
m_pMgr->showAll();
m_pMgr->redraw();
// force subChild of cloned node,
// setting a dummy node (created once with makeSphere() )
m_pMgr->setRoot( dummyRoot );
Is there anything wrong with this code? Could it be some
OpenGL displaylist not cleant up?
Regards,
Toni
--
Ing. Antonio Bleile
Seac02 S.r.l.
via Avogadro 4
10121 Torino Italia
Tel. +39.011.197.006.52
Fax +39.011.197.006.53
E-mail [EMAIL PROTECTED]
Sito www.seac02.it
Questa E-mail è rivolta unicamente alle persone o enti ai quali è
indirizzata. Essa può contenere informazioni la cui riservatezza è tutelata.
Sono vietati la riproduzione e qualsiasi uso di questa e-mail e/o delle
informazioni in essa contenute in mancanza di autorizzazione del
destinatario.
This e-mail is intended only for the person or entity to which is addressed.
It may contain information that is privileged, proprietary, confidential,
attorney work product or otherwise exempted from disclosure under applicable
law. Copying, dissemination or use of this e-mail or the information herein
by anyone other than the intended recipient is prohibited.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users