01-07-2009, 06:56 PM
Depends on what you ultimately want. Lower memory usage or quicker loading of maps.
If you want a lower memory footprint, then save which tiles are used in the MapRec and load those as needed.
If you want your maps to load faster, you would keep all tiles in memory.
In the current MS, it's a pretty happy medium. You use tilesheets, usually things of the same look are kept on each tilesheet. Each map can use 1 tilesheet. This has much lower memory usage and you only have to load 1 tilesheet per map. Matt has made it so you can load multiple tilesheets per map, so it's still less memory than every tile loaded.
If you want a lower memory footprint, then save which tiles are used in the MapRec and load those as needed.
If you want your maps to load faster, you would keep all tiles in memory.
In the current MS, it's a pretty happy medium. You use tilesheets, usually things of the same look are kept on each tilesheet. Each map can use 1 tilesheet. This has much lower memory usage and you only have to load 1 tilesheet per map. Matt has made it so you can load multiple tilesheets per map, so it's still less memory than every tile loaded.