Skip to main content
GameDev.net gamedev.net
🔒 Locked

Framebuffer

Started by mike44 Apr 9, 2018 at 12:04 PM 3 replies 1.7k views
Original Post
mike44
mike44

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


iedoc
iedoc

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

esoufiane
esoufiane

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.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.