2 ms·
Well, I managed to find an iPad 2 back in the deep recesses of one of my closets. I found a defect where my code failed to consider iPads as "mobile" devices, a
by moron4hire 11y ago
Well, I managed to find an iPad 2 back in the deep recesses of one of my closets. I found a defect where my code failed to consider iPads as "mobile" devices, aka "has motion sensor".
Once I fixed that, there was another issue where iOS's version of WebKit doesn't handle orientation values in the same way as Chrome on every other platform (with Firefox having yet a third way, it's a very poorly specified API). Hopefully, Apple will eventually get on the WebVR bandwagon, because the WebVR API is much, much more consistent than the Device Motion API across platforms.
I don't have any iPhones around to test against those, but from the nature of the problem, I would guess you also had an iPad, because the detection should have worked for iPhone.
Perf on the iPad 2 was abysmal, which is not terribly surprising, considering the cross-section of Apple being hostile towards WebGL and me being not very experienced in optimizing draw calls.