When I do a scrolling tile map I use a backbuffer one tile larger than the displayed area so I can draw a subimage to get my scrolling. I just noticed when using bufferstrategy the buffers are all the same size; is there a way to get a bigger buffer in buffer strategy? Or will I have to do it myself?
Im not sure i understand the problem.
Can’t you just BLT the larger area with a screen-sized clipping region?
I’m using a Frame right now, not full screen. To use a clipping region the way I need to I would have to use negative coordinates to position the the first row of tiles. I don’t know if thats possible or not. So I used a volatile image to draw the tilemap on, drew a subimage of that to the backbuffer the bufferstrategy gave me and still got 150+ fps. Nice.
[quote]To use a clipping region the way I need to I would have to use negative coordinates to position the the first row of tiles. I don’t know if thats possible or not.
[/quote]
It should clip appropriately and work out fine.