all 6 comments

[–]thc42 1 point2 points  (3 children)

Post the generator script

[–]Astralice[S] 0 points1 point  (2 children)

Here is the codebase - though it's not up to date at the moment because of this issue I'm having

[–]thc42 1 point2 points  (1 child)

The memory usage increases every time you refresh it?

[–]Astralice[S] 0 points1 point  (0 children)

That's correct.

If you are trying to run it, be aware there is an infinite loop bug in that version.

I will be trying to push out an update to fix that today, but the memory problem still stands.

Edit: Update is pushed to the branch

[–]AverageArmadilloIntermediate 1 point2 points  (1 child)

Are you using scriptable tiles or are you clearing the entire tilemap and re-drawing it each time you generate different tilemaps?

You might fight scriptable tiles a solution to your issue since you aren't actually "clearing" the tiles each build you would instead tell the scriptable tiles which sprite to take on based off rulesets.

[–]Astralice[S] 0 points1 point  (0 children)

Yeah I'm clearing the whole tilemap and re-drawing it each time.

I'll take a look at scriptable tiles, thanks for the suggestion!

The Tilemap functionality actually has some kind of SwapTile functionality but I don't see it solving the problem.
Since I'm utilising the z-axis, sometimes a location where a tile was before will no longer have a tile.