NovaSquirrel / TilemapTown3DS

Tilemap Town client for the 3DS
GNU General Public License v3.0
6 stars 0 forks source link

Try to only store the data for JSON-format map tiles once #17

Closed NovaSquirrel closed 3 months ago

NovaSquirrel commented 3 months ago

I'm pretty sure MapTileReference::MapTileReference(cJSON *json) (protocol.cpp) allocates a new object for every custom JSON-format tile that appears, when ideally it would be nice to have it create it once and keep reusing it. This will require some means of efficiently detecting that a newly appearing tile is the same as one that's known about.