Jump to content

Matter js Frame drops

Recommended Posts

I am building a game with polygon colliders. I am creating over 30 colliders at the start of the game and reusing them. The game fps drops to 30-40 for the first few seconds (around 10 seconds) and eventually becomes smooth after that. On a better device, the time taken to settle is shorter. When I remove these colliders and run the game, it seems to run on 60fps from the start. What could be the issue? 
PS- I have already tried scaling down the game, so that physics calculations are simpler in a smaller world. That helped but not enough I guess.

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.

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.


  • Recently Browsing   0 members

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