Hello.I've been coding for some time now, and just can't seem to find a way to load chunks?I'm making a game, which has a big world.The map is loaded using a scanner, from a text file, the map is pre-made.A map example:ggggwggggggwggwggggggbbbgggg

g, w, and b is tiles.The map is really big, and it's gonna begin lagging for people if I don't make chunk loading.I think I can figure out for myself how to make the player stay in the middle of the screen while loading chunks.

Please use source tags (hit the button on the second row, far right side).

Have you actually ascertained that this is a problem?

If it is a problem, why not chunk load using threads? There are a myriad of transition schemes - such as keeping the world (nxm tiles) in memory with an additional +1 tile offset in each direction so the player can "move" and give you time to chuck the area they moved away from and preload whatever [non-visible] map they might be near. Even if you did this in a single thread I don't see it being an overly large problem [for you].