Hello Yi Lin,
my question is : how to store the picture of every frame to buffer more quickly?
Essentially, readPixels() stalls the frame until the whole pipeline is flushed, then reads the framebuffer. This is what introduces the slowdown you see. What you would want in order to make this faster is to defer reading the framebuffer to the GPU, so it can read it when it makes sense to do so and so not stall.
I'm not sure (I can't remember the specifics) but I think either ScreenCaptureHandler or WindowCaptureCallback have a path to use double-buffered PBOs to read the framebuffer. This is what you should use. The result you get will be one frame late, but at least it will be faster (won't stall the GPU as readPixels would).
Hope this helps, J-S -- ______________________________________________________ Jean-Sebastien Guay jean_...@videotron.ca http://whitestar02.dyndns-web.com/ _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org