Solving that hassle will result in much better performance of your game, restoring the entire screen will pretty much take up the entire video frame.
You can restore faster using a few methods.
1) have a pristine copy of the background at all times and restore using a combination of the saved blit offset, modulo and blit size. (This is the method i normally use)
2) use tile based restores, mark which tiles are dirty and simply restore them. This saves you chip ram over option 1
3) use the method you mentioned and save/blit/restore ... the problem is its slow and uses memory
4) redraw the entire screen which is very slow, but depends how your game is made up action wise.
Geezer
|