Quantcast
Channel: Community | MonoGame - Latest topics
Viewing all articles
Browse latest Browse all 6821

Proper loading of map chunks

$
0
0

@RafaelAlmeida wrote:

I have huge tile maps so I separated them into small chunks (96x96 tiles). The whole idea of having chunks is that you don't have all of them loaded at the same time, only the ones that are near the player. The problem I am facing is that I must load the world from a file, this file contains the general data from the world and the array of chunks with all the tiles info. But when I need to load a chunk, I read the entire world file, which means that all the other chunks are loaded into the memory too, so I can get the chunk I need and throw it away.

How can I load only a portion of the world file? I searched and found this answer but I have no idea how to use the ExclusiveContentManager to load only the necessary chunk.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 6821

Trending Articles