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.
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.