[osg-users] Updating scene properties instead of recreating it each frame
Maxim Stere
osgforum at tevs.eu
Mon Jul 2 11:05:27 PDT 2018
You definitely need to dirty the list, and you are right, there is no deallocation when you clear the vector, but isn't there allocation when you create a new vertex before you push it to the vector?
Also, the polygons can have a different number of points, as long as say polygon1 always has 6 and polygon2 always has 4. You can update their positions. If that changes also, then that is a different problem all together, and most likely what you are doing is the best solution.
------------------------
Thank you,
--Maxim
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=74245#74245
More information about the osg-users
mailing list