Talk:Framing Buffer Tile Scrolling Algorithm
From GPWiki
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.
--- Why not just make the buffer a bit larger and only blit the viewable area? And update only the corners every x pixels? |


