Jump to content

low end devices


barkingwhale
 Share

Recommended Posts

In the performance tips section, https://github.com/pixijs/pixi.js/wiki/v4-Performance-Tips, it mentions " On older devices use smaller low res textures "

How do you detect that in a mobile browser?  Especially on iphone/ipad?  The UA string identifies ipad/iphone but not the model numbers.

I would love to use 1/2 size textures on iphone5, but don't want to cripple the experience on iphone7 etc.

Thanks in advance.

Link to comment
Share on other sites

Yes,

gl.getParameter(gl.MAX_TEXTURE_SIZE);

is the correct way to get that value.  But both iphone7 and iphone5c return 4096 for that parameter.

What i am asking for is a way at load time, to detect if the device is a lower end iphone so then I can load half rez textures, but keep the full rez for higher end iphones.  This needs to be done on a website through a browser, and so far I've stuck out on ways to detect it.

 

Thanks.

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