Jump to content

1.1.4 Tilemaps


RestingCoder
 Share

Recommended Posts

Can someone provide an example of everything needed to destroy a Tilemap? Visually, I am not having trouble with it, but there are a ton of Phaser.Tile objects in the heap when I switch levels/maps. I have tried so many things, and have checked the source in the dev branch for the last few days, and can't seem to be able to get this to stop, no matter what I try.

Any thoughts would be greatly appreciated. If you'd like to see code, check here: http://play.reminiscencegame.com.

Link to comment
Share on other sites

They are definitely still there. After the 7th map load (on my laptop) the frame rate drops by around 5, and does so for each subsequent map load until it is in single digits, and memory usage just keeps going up. I've checked memory usage on every other object I am creating, and it only seems to happen with phaser.tile.

I am probably just doing something wrong when destroying the map and creating the new one, but I just can't figure out what in the world is causing it after playing with it for a few days.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...