Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

aewarnick

Rendering gl to Bitmap is slower, should it be?

This topic is 5332 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

Advertisement
why you just dont load your BMP and put it into a texture?
Draw a quad on the screen with your texture applied to it.

Share this post


Link to post
Share on other sites
I think you misunderstand what I am asking. You can do one of two things when rendering with opengl (only 2 I know of)
1. Draw to the window.
2. Draw to a Bitmap.

The advantage of drawing to a Bitmap is that I can use gdi fucntion and draw to it as well, before I display it on the window.

My question is, is drawing to a Bitmap much slower?

Share this post


Link to post
Share on other sites
quote:
Original post by aewarnick
I think you misunderstand what I am asking. You can do one of two things when rendering with opengl (only 2 I know of)
1. Draw to the window.
2. Draw to a Bitmap.

The advantage of drawing to a Bitmap is that I can use gdi fucntion and draw to it as well, before I display it on the window.

My question is, is drawing to a Bitmap much slower?


Between drawing to a bitmap, then intervening with GDI drawing directly to the frame buffer, you''re gonna run into a performance hit. Just draw to the window, and use OpenGL''s triangle rasterizer for any 2D drawing operations. Writing directly to the frame buffer = bad if you''re concerned about performance. I''d imagine rendering to an offscreen bitmap and blitting it to the window ontop of that would be worse.

Share this post


Link to post
Share on other sites

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