Advertisement Jump to content

Recommended Posts


I draw in a OpenGL framebuffer. All is fine but it eats FPS (frames per second), hence I wonder if I could execute the framebuffer drawing only every 5-10th loop or so?

Many thanks


Share this post

Link to post
Share on other sites

are you using that framebuffer as a texture? or do you mean framebuffer as in render target?

You should only draw when you need to. for example, if nothing changes in your scene, there's no need to redraw everything. use dirty flags or something to know when something has changed

Without knowing more about your application, i can only say drawing to  your framebuffer every 5-10 frames is fine if you don't need to draw to it every frame

Also, make sure your profiling, sometimes the bottleneck is not where you think it is

Share this post

Link to post
Share on other sites

Did you try to draw directly to the backbuffer? 

What is the size of your framebuffer?

How complex is the shader that's using the texture attached to your framebuffer?

As what iedoc said, the bottleneck can be anywhere.

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

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!