Jump to content
  • Advertisement

Recommended Posts

Hi

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
Advertisement

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

I bet you are recreating some arraysbthat you constantly pass to gpu memory, without code we cant help

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 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!