toertel at rpa.net
Sun Apr 16 08:36:20 PDT 2000
Clifford Benoist wrote:
> I am trying to scroll as fast as possible in an RPG that a few friends of
> mine are working on. The scroll version I have now seems to be very slow.
> Is there any general suggestions that might speed things up. I have come
> up with two ideas so far that just take to much time to copy things around.
> The overall idea that I have is for 3 layers. One for the background, One
> for Player / Walls, and one for roofs and other things. If there is a best
> way to do this I need it.
You don't give many details about the sort of engine you have written,
assume it is just a normal 2d sprite engine. The typical way to handle
to redraw the entire display every frame (preferably using double
If you redraw the entire display, scrolling is easy. If you are
doing this and it isn't fast enough, my recommendation is to make your
faster (in other ways).
If you generally aren't scrolling, but moving around within a screen
do some fancy updates by keeping track of what areas have changed and
only those, but that is more difficult to implement, moreso if you
buffer. Another difficulty would be doing the actual scrolling, which
slow down your updates, since you will have to update the entire screen
I can give more ideas, but without more info, I'd be shooting in the
> Clifford Benoist
> Lead Engine Programmer
> ABOGWAG Entertainment
Hope that helps
"Though you die, La Resistance lives on" - SP:BL&U
More information about the SDL