[osg-users] Huge perfomance issues

Werner Modenbach Werner.Modenbach at modenbach-ac.de
Fri May 31 08:41:25 PDT 2019


There should be a better approach.

Just a quick idea:

For each kind of object keep an array of pointers to already created geodes.
If you don't need a certain geode switch it off in the osg::Switch.
If you get a request for a new one, check the switch for inactive geodes. If found, just alter it and activate it.
Otherwise append a new one.

In some way you need an organization for the objects.

Am 31.05.2019 um 17:34 schrieb Achilleas Margaritis:
> The problem is I need to destroy my house every frame. 
>
> There is no standard number of objects received; any object, with any configuration, can be received at any time.
>
> My only choice is to destroy everything and repaint everything.
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=76162#76162
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org




More information about the osg-users mailing list