Jump to content
  • Advertisement


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


Dirty Rectangles

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

Dirty Rectangles, is when you copy whatever is behind the sprite you are drawing into safe memory, so you can draw back it back later on. This way you don''t have to render the background over and over again, and speeds things up a little (not always).

here is pseudo code:


move sprite and stuff


Dirty Rectangles -
A method of updating only the changed parts of the screen. The screen is divided up into rectangles and only rectangles that have changes are makred "dirty" and then are redrawn to clean them up. Increases drawing speed as less is drawn.

btw, here''s an article that explains it pretty well: dirty rectangles

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!