# Isometric tiled map issue

**URL:** <https://forum.defold.com/t/isometric-tiled-map-issue/11864>\
**Category:** Questions\
**Created:** [September 25, 2017, 1:21am UTC](https://forum.defold.com/t/isometric-tiled-map-issue/11864 "2017-09-25T01:21:23Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![Tomires](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/tomires/32/3885_2.png) [@Tomires](https://forum.defold.com/u/Tomires)\
**Post date:** [September 28, 2017, 11:21am UTC](https://forum.defold.com/t/isometric-tiled-map-issue/11864/9 "2017-09-28T11:21:32Z")

</div>

Nice demo, I like it 🙂

I’d just like to add that you can use (collection) factories to draw large maps (in [Kanji Adventure](https://forum.defold.com/t/kanji-adventure/4263) , the exploration map is 100x100 tiles large), you just have to create a routine that manages creation and deletion of tiles that are on-/offscreen respectively.

Oh, and one (pretty significant) performance optimization that I found out a couple days back - make sure to cut up the data that you are going to use into multiple lua tables. Accessing the following tables:

```lua
self.tile_styles = self.tilemap()["layers"][1]["data"]
self.object_styles = self.tilemap()["layers"][3]["data"]
self.large_object_styles = self.tilemap()["layers"][4]["data"]
self.grayscale_mods = self.tilemap()["layers"][5]["data"]
self.tilesets = self.tilemap()["tilesets"]

```

is much faster than accessing them via

```lua
local res = sys.load_resource("/maps/" .. self.map_name .. ".lua")
self.tilemap = assert(loadstring(res))

```

There is also a helpful list of tips on performance in Lua over at [https://www.lua.org/gems/sample.pdf](https://www.lua.org/gems/sample.pdf)

---

_[View the full topic](https://forum.defold.com/t/isometric-tiled-map-issue/11864)._
