[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Re: Distribution of Work



Michael wrote:
> Why do you need to redraw the entire screen every frame when moving?
> Couldn't you change the scrolling to work only on certain conditions
> (like nearing the screen edge)? Or do you move around so much such a
> case would always be true when moving? I think old DOS games were fast
> both because they were done in C/Asm and because they had to come up
> with tricks to avoid making things slow.

DOS games were able to perform limited hardware scrolling.  You can set up
the frame buffer EGA graphics modes to be slightly larger than the whole
screen, which meant that you only had to do a full redraw when you reached
the edge of the frame buffer.

This is not an option on modern operation systems, especially not if you
want to do fancy stuff like parallex scrolling or extensive animations.
It's also not necessary.


-- 
Rainer Deyke - rainerd@eldwood.com - http://eldwood.com