From: Joe Wreschnig Date: Wed, 17 Sep 2014 22:31:04 +0000 (+0200) Subject: Mobile Safari has a different user agent when standalone. X-Git-Url: https://git.yukkurigames.com/?p=pwl6.git;a=commitdiff_plain;h=a965227dd5fcb2b549b2df1d5ce1420926b44909 Mobile Safari has a different user agent when standalone. --- diff --git a/BUGS.org b/BUGS.org index 8e3d138..476ad5c 100644 --- a/BUGS.org +++ b/BUGS.org @@ -1,3 +1,9 @@ +* Next Version +** Remove CSS pixel ratio > 1 support in Safari + Mac OS X Safari has scaling bugs, and iOS Safari has lower + performance. + + * v1.2 ** DONE Override the GPU blacklist on GNU/Linux This is a security measure Chromium enables for normal web @@ -31,7 +37,18 @@ version for iOS 8. ** TODO iOS 8 iPad 3 [0/3] *** TODO Stalls a few seconds in - But the stall is uneven - affects some but not all - visuals, visuals but not music, etc. + But the stall is uneven - affects some but not all visuals, or + sometimes visuals but not music, etc. It's like the event loop is + running but the front buffer is not flipping in. + + The stalls almost disappear when connecting with desktop Safari + remote debugging, which... is confusing. *** TODO Choppy / staticy audio when backgrounding + There's probably no way to avoid this, other than trying to cut *** TODO Noise shader is way too expensive + Need some way to establish platform performance capabilities and + scale down effects when performance is bad. And, without any kind + of user configuration. +*** TODO Audio gets desynchronized + Not worth looking into until the general stalls are fixed, + since they might be causing it. diff --git a/src/yuu/core.js b/src/yuu/core.js index 24e3f2b..1d64e98 100644 --- a/src/yuu/core.js +++ b/src/yuu/core.js @@ -8,7 +8,8 @@ "use strict"; yuu.isSafari = function (ua) { - return /^((?!chrome).)*safari/i.test(ua || navigator.userAgent); + return /^((?!chrome).)*safari/i.test(ua || navigator.userAgent) + || navigator.standalone; }; yuu.require = function (m) {