Sign in to follow this  
meestrey

Read data from FBO

Recommended Posts

meestrey    122
I'm rendering to a (floating point) framebuffer object and I would like to read back the pixel data to the CPU. I'm currently using glreadpixels but it's taking about 1 second for a 512X512 image! This can't be right.

Share this post


Link to post
Share on other sites
jeroenb    282
glReadPixels is slow, but should not be that slow. Make sure you are using a good color format BGRAF or something similar as those can be faster (test with some different formats and see if it improves performance). On NVidia hardware you can also look at the PBO extension for asynchroneous readbacks.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this