For extremely large worlds that cause memory or rendering issues, you can instruct Tiled to only load the current map and its direct neighbors.
To enable this, add "onlyShowAdjacentMaps": true to the top-level JSON object in your .world file.
Note: When using this mode, you must define the size of each map in pixels so Tiled knows which maps are neighbors:
- For manual maps: Use
"width" and "height" properties. - For patterns: Use
"mapWidth" and "mapHeight" properties (these default to the values of your multipliers if not specified).
{
"onlyShowAdjacentMaps": true,
"maps": [
{
"fileName": "map1.tmx",
"x": 0,
"y": 0,
"width": 1024,
"height": 1024
}
],
"type": "world"
}