Jump to content

Bad performance on tablet


TnT0923
 Share

Recommended Posts

Hi,

I just started using phaser to make a game.

All image size in this game are designed based on the background image which is 1600*900 pixel.

After that I resized the canvas into 1400*800 pixel.

When I try to add 400 sprites to the game at the same times, it takes about 3~4 seconds to finish the render.  (I'm using for loop and addChild to Phaser.Sprite)

after that, the game acted laggy.

My question is:

1) Is there any different between "game.add.sprite" and " var a = new sprite();  game.add.existing(a);"

2) How many sprites can exist on the view at the same time without making the game laggy?

3) Is game performance related to image size?

 

Thanks a lot. 

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...