On 24.07.2011 08:12, Lenard Lindstrom wrote:
Hi DROID,
The pygame.examples.scroll demo shows the Surface.scroll method in
action. Scroll shifts the pixels on a surface, so only the new parts
have to be blitted on.
Lenard Lindstrom
On 23/07/11 09:22 AM, DR0ID wrote:
[snip]
I'm not sure how the scroll method is implemented (since actually
one could do a blit on the same surface, but this would mean that
you do two fill screen blits each frame).
Any suggestions welcome.
Thanks.
~DR0ID
Hi
I see what the scroll method does, but what I was wondering about it,
does it (the shift operation) just copy the pixels from one location
to the other? Or does it do that in a more sophisticated way?
~DR0ID