kuroneko1996 / cyberlab

jrpg-like game in pygame
MIT License
4 stars 3 forks source link

Optimize drawing tiles #31

Open kuroneko1996 opened 7 years ago

kuroneko1996 commented 7 years ago

Static tiles shouldn't be drawn one by one.

slemonide commented 7 years ago

So, does it mean we would store the whole map as one picture?

kuroneko1996 commented 7 years ago

No, it's more about creating one big surface of the static tiles at the loading time and moving it with the camera and drawing.

kuroneko1996 commented 7 years ago

The image with tiles could be another solution for static tiles, though. Dynamic tiles should use some batch system.

slemonide commented 7 years ago

Should this really be our goal for Demo 2? At this point, it's not really a performance issue that static tiles are drown separately.