Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by mimik

Hi.
I have some performance issues with iphone4 so i want to make some enhancement layers etc for iPhone4s my problem is detecting the device.

With
ig.ua

they are detected as the same.
ig.ua.pixelRatio 

is the same.

They also have the same resolution, could just turn of the extra juice for 4s.
But i really don't want to :-)

1 decade ago by dominic

I don't know if there is any reliable way to discern the iPhone4 frome 4s at all.

In fact, it's even very hard (perhaps impossible) to distinguish between iPhone 4 and 4S from native apps.
~ http://stackoverflow.com/questions/9548012/user-agent-string-for-iphone-4s

One thing you could do however, is to check the average framerate for a few seconds and activate the additional layers if it's above a certain threshold.
Page 1 of 1
« first « previous next › last »