Hello flying5?
(2) Then, I realize it use OSG. But when I render 128*128*2 = 32768 triangles grid and the FPS is only 13!!!. (3) I don't think there is any difference between the two way I realize the wave. But why the great disparity in efficiency?
There must be a difference, or else the performance would be identical. As a first step to investigation, what are you using for your grids? osg::Geometry using VBOs would be the most efficient path.
Make sure you're at least disabling display lists on your osg::Geometry objects, then you'll be using Vertex Buffers which on dynamic geometry will gain a few orders of magnitude of performance, since OSG won't have to recompile display lists every frame. Then investigate using VBOs which will be the next step, search the mailing list archives for how to use those.
Hope this helps, J-S -- ______________________________________________________ Jean-Sebastien Guay jean-sebastien.g...@cm-labs.com http://www.cm-labs.com/ http://whitestar02.webhop.org/ _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org