Jump to content

Performance problems in Android devices?


Josepho
 Share

Recommended Posts

Hi there, I have a little problem, I have sent a version of my game to my sponsor and the QA test has reported me that the game is experiencing serious performance problems in some android devices.

 

Samsung Galaxy Tab 2

Samsung Galaxy 4

Samsung Galaxy 3

 

However I have widely test it on many ios devices and it worked well, is there any kind of bad practices that needs to be avoided in order to get a nice performance on android or is this a bug?? 

 

Many thanks!

Link to comment
Share on other sites

  • 2 weeks later...

The default browser unfortunately is just really really slow.

Theres not much that can be done from the pixi side of things I'm afraid as the issue is with the devices themselves :/

 

If you need to get a performance boost you could try:

stripping back any non essential screen elements.

maybe use lower res graphics.

profile the code and see where the bottle necks are for you.

 

But as mentioned its simply the fact that the browser is incredibly slow :/

Link to comment
Share on other sites

I have a tab 2. Easiest is just to show a "Only supported in Chrome" since the default browser is terrible.

This device is also bad at rendering offscreen canvases. If you are using sprite tinting, try setting PIXI.CanvasTinter.convertTintToImage to true (but only for this device/browser).

In general, you should try to cut down on the following for these devices:

- masking

- tinting

- lots of text, or dynamically changing text every frame

- too many paths/shapes. If you have a lot, try putting them into the same Graphics object when possible

- RenderTextures

You can also try packing all your images into a single power of two texture. This in theory allows it to be better handled by the GPU, but may not make an actual difference depending on the device.

Link to comment
Share on other sites

  • 3 weeks later...

Got to say Galaxy Tab is a pain in the ass.

 

Just found out this tablet uses Intel Atom, meaning it is an x86 system, instead of ARM just like most of the rest, and even Chrome version is different from other Android with same version number.

 

For example, Galaxy Tab Chrome has WebAudio disabled as default, which meant quite a headache for me until I realized this. Also, Galaxy Tab stock  browser is probably the worst crap I've had to deal with in ages. Extreme low performance and lots of rendering bugs.

Increidible, considering it may be one of the most popular Android tablet devices around, which makes things even harder for us.

Link to comment
Share on other sites

I have a tab 2. Easiest is just to show a "Only supported in Chrome" since the default browser is terrible.

This device is also bad at rendering offscreen canvases. If you are using sprite tinting, try setting PIXI.CanvasTinter.convertTintToImage to true (but only for this device/browser).

In general, you should try to cut down on the following for these devices:

- masking

- tinting

- lots of text, or dynamically changing text every frame

- too many paths/shapes. If you have a lot, try putting them into the same Graphics object when possible

- RenderTextures

You can also try packing all your images into a single power of two texture. This in theory allows it to be better handled by the GPU, but may not make an actual difference depending on the device.

 

Hey @mattdesl, how do you detect Galaxy Tab stock browser? I could not find a way so far.

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