[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] sprite groups and tilesheets



> A good thing to do in a tile based game, is to blit all of the tiles
> to a single surface, so you aren't doing a bunch of blits every frame,
> and then just redraw the whole screen each frame using the rendered
> map.  If you have animated tiles of course, depending on how many
> tiles on screen are likely to be animated, this optimization will not
> be helpful.

It's also not going to be helpful if your map is large.  Assuming SDL
is willing to create a big enough surface (I've hit the limit with a
few bugs), you'll be using a ton of memory.

-FM