I took 02move.cpp test from Tutorials and insert 2 command only in display()
function.
Half hour test run increased used memory from 29 MB to 50 MB. Why? I use v.
1.6 VS 2003 Debug mode.
#include <OpenSG/OSGPolygonForeground.h>
PolygonForegroundPtr pg = PolygonForeground::create();
subRefCP(pg);
void display( void )
{
// create the matrix
Matrix m;
Real32 t = glutGet(GLUT_ELAPSED_TIME );
m.setTransform(Vec3f( osgsin(t / 1000.f),
osgcos(t / 1000.f),
osgsin(t / 1000.f)),
Quaternion( Vec3f(0,1,0),
t / 1000.f));
beginEditCP(trans, Transform::MatrixFieldMask);
{
trans->setMatrix(m);
}
endEditCP (trans, Transform::MatrixFieldMask);
PolygonForegroundPtr pg = PolygonForeground::create();
subRefCP(pg);
mgr->redraw();
}
Regards
Vladimir Galouchko
-------------------------------------------------------------------------
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