Support large TMX maps #1304
DeathPhoenix22
started this conversation in
Ideas
Replies: 1 comment
-
These are some good points. It would be good to start with an example (map + texture) that fails to load due to above. We can then turn this into a test and finally figure out a suitable solution. |
Beta Was this translation helpful? Give feedback.
0 replies
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
Hi,
I'm currently facing a limitation with the TilesetLoader. When the map is too large, we run out of memory. This is due to the fact that we load the map in a single pixelsBuffer as 1 image.
Here is what I would suggest:
There is another memory issue related to the TMX loading sequence. In fact, we load textures in a separated cache (directly in the TilesetLoader), which means that all Levels related textures will most likely be stored 2x in memory. I'll try to address that, but it could be a problem too.
Is that a good plan?
Any suggestions?
Thanks,
Beta Was this translation helpful? Give feedback.
All reactions