Talk:Framing Buffer Tile Scrolling Algorithm

From GPWiki

Files:GUITutorial_warn.gif The Game Programming Wiki has moved! Files:GUITutorial_warn.gif

The wiki is now hosted by GameDev.NET at wiki.gamedev.net. All gpwiki.org content has been moved to the new server.

However, the GPWiki forums are still active! Come say hello.

NOTE: for diagonal scrolling, don't forget to add the corner tiles into the edge buffers (only really required when crossing the tile boundary on a vertical and horizontal edge simultaneously).

---

When the scroll is complete, and the Top Buffer is entirely in view, all of the framing buffers and the Main Surface must be re-rendered from constituent tiles, giving us the new scene:

Can't I just blit main surface to mainsurface(0,tile_size_y), blit old top buffer to main surface, and redraw top buffer? Redrawing main surface from many tiles would be longer.

Yes, that's a good idea. It would save you some cycles, for sure. Ryan Clark 17:13, 29 Jun 2005 (EDT)

---

Why not just make the buffer a bit larger and only blit the viewable area? And update only the corners every x pixels?