infinity map?

Is it possible to create an infinity map? Where you only display tiles in line of sight of the player? [import]uid: 49300 topic_id: 16094 reply_id: 316094[/import]

Currently the only tiles that are visible are the ones on screen, the rest are set to invisible. However this isn’t the main performance problem right now, it is more down to the amount of objects rather than the drawing of them. [import]uid: 5833 topic_id: 16094 reply_id: 59878[/import]

So generating a 1500x1500 is possible? Being it the tile height and width are big? (as to draw less amounts) [import]uid: 49300 topic_id: 16094 reply_id: 60016[/import]

You could create a map that size yes, but the game would still run very slowly. That is over 2 million active objects, Corona, or simply mobile devices in general, can not deal with that amount of objects. [import]uid: 5833 topic_id: 16094 reply_id: 60018[/import]

Why is there 2 million amounts of active objects?

A person’s fog of sight would draw at most 40 tiles I assume? As the player moves from his original location, we remove tiles that aren’t in sight and add new tiles to the ones that are as to preserve memory. [import]uid: 49300 topic_id: 16094 reply_id: 60023[/import]

Currently Lime does not dynamically destroy/create tiles, they are instead created all at load time. They are visually culled at present but nothing else. [import]uid: 5833 topic_id: 16094 reply_id: 60084[/import]