search for: draw_tilemap

Displaying 1 result from an estimated 1 matches for "draw_tilemap".

2010 Oct 29
0
Very slow blitting, trying to optimize.
...to this post. How it works: 1) I have a custom cache class that creates and retrieves bitmaps on demand to speed up things a bit. Used especially when using tiles, layers or the whole tilemap bitmap. All get_X_bitmap methods you see are used to retrieve bitmaps from cache. 2) The draw_layer and draw_tilemap methods have a rect argument. When not nil, only the region specified by this rect is redrawn. Again, this is to speed up the whole process. I did some basic speed test using the Time class to see how log it takes to blit a tile depending on the map size, using 32x32 tiles. On a 20x20 map, the wh...