Jump to content
  • Advertisement


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


When to redraw?

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

So what comes to mind to me is 2 options: 1. Redraw EVERYTHING each game loop. I would think that this is necessary though only when scrolling around, in which case things are moving all over the place. 2. If you''re not scrolling, just draw what needs to be updated. So I would grab the area underneath where I''m about to draw, save it, then draw my new data. Upon next frame, replace that area, and repeat. Is option 2 what most iso engines use? Or is there a better way to do things?

Share this post

Link to post
Share on other sites
Rather all engines redraw everything from null, why? Because redrawing everything lets you keep a quite stable fps rate, althrought not as high as with the other method if you''re using very few sprites. The thing is, that once you have got a lot of sprites it''s easier/faster to simple redraw everything from null.
Another thing is, that many effects aren''t prepared to use the "redraw only what needs to be updated" method. For example many iso engines use realtime lighting (like diablo serie) and therefore screen needs to be redrawn every frame.

With best regards,
Mirek Czerwiñski

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!