Hi,
my purpose is : the picture of every frame is generated in one thread, then
stored to buffer. in another thread, the pictures are displayed out.
my question is : how to store the picture of every frame to buffer more quickly?
I did like osgautocapture example,
camera->setFinalDrawCallback(new WindowCaptureCallback())
and then in callback,
image->readPixels(0, 0, width, height, GL_RGBA, GL_UNSIGNED_BYTE);
it can work, but too slow. if not do readPixels, the frame time is 10~12
milliseconds, if do readPixels, the frame time increase to 18~20 ms.
because the frame rate should be greater than 60, so the pictures must be
stored more quickly.
thanks for any suggestion.
Cheers,
fly
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=47161#47161
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org