Quote:
Originally Posted by mcgeezer
That's exactly what I mean.
Yep - big performance boost because you are doing much less blits.
|
Great advice! Thanks. Sorry, for sounding thick, I just wanted to be sure.
Quote:
Originally Posted by phx
If your map is not endless you can just add mapwidth - displaywidth words to the size of your bitmap. So you can continue scrolling without having to blit a second column or reset the pointers. Halves your total number of blits again.
|
Do you mean just make the size of the total area width the same size as the map (minus the visible part?) and just scroll through it? That would save a lot of recalculating stuff if there's no bpl pointers to reset.
At the moment, my total screen width is 704 and the visible part is 320. As I say, I'm just resetting to the starting point when I hit the right edge of the total area (but staying within the map position).
My map's width is 1280 (80 words), so it's exactly 4 times the size of the visible screen, although I may want to vary the size later on (but none would be endless).