Jump to content
  • Advertisement
Sign in to follow this  
rldivide

binding framebuffer slow down framerate

This topic is 2997 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi,

As soon as I bind a FBO (even if I don't use it, unbinding it just one line after), the framerate slow down from 125FPS (no FBO used) to 97FPS (one FBO bound/unbound). If I bind/unbind a second framebuffer, I get 75FPS.
So it seems like framebuffer binding eats up 2.66ms, which is pretty huge for such a simple operation !

What's going on ?

I'm using a GeForce GTX260, driver 197.13, Win 7 x64.

[Edited by - rldivide on July 7, 2010 2:57:49 AM]

Share this post


Link to post
Share on other sites
Advertisement
Quote:

...which is pretty huge for such a simple operation !

An assumption what happens with a simple API call is often a nasty performance trap. You really don't know what happens in the driver, with a simple call you could trigger complex processing or flushing of the command pipeline.

An other nasty trap: are you checking for errors after binding the fbo ? Checking for errors often flushes the command pipeline.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!