Jump to content
  • Advertisement

Archived

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

Buxter_Baxter

Dynamically generated static background!!!

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

Hello I have this code: for(mapx = 0; mapx <= 10; mapx++){ for(mapy = 0; mapy <= 11; mapy++){ if(map[mapy][mapx]==1) g_pDisplay->Blt( 100+(32*mapx), 100+(32*mapy), BackSurface, NULL); } } Is there a way to save that as a whole and Blit it any time needed, I am just worried about the performance? ~ Petar ~

Share this post


Link to post
Share on other sites
Advertisement
Are you blitting onto the primary surface? Not a good idea

In any case, you can make a screen-sized surface and just blit that when you need it. It probably won''t be significantly faster than what you are doing now, though, and you''d be eating a lot of memory.

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.

GameDev.net 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!