Advertisement Jump to content


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


How Many Surfaces?

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

I''m sure this DirectDraw question has been asked a million times already. But, as a rule of thumb, is it better/faster/cleaner to store bitmaps in a million small, individual offscreen surfaces, or in a few big offscreen surfaces?

Share this post

Link to post
Share on other sites
Smaller surfaces will be more likely to fit into video memory and/or cpu cache, so you''ll generally get better performance with smaller images and surfaces. If you get really crazy with your surfaces and make them huge, you may run into problems with Windows not being able to allocate contiguos (sp?) memory for the surfaces, and they''ll be put into the swap file, which will absolutely kill any performance of your app.

That being said, if you are thinking that a question has been asked a million times already, you might want to consider doing a search on the forum rather than posting an apology, which may make you appear lazy. Some people get really bent about such things.

Share this post

Link to post
Share on other sites

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