Closed
Bug 768982
Opened 12 years ago
Closed 11 years ago
http://www.scirra.com/labs/sbperfgl/ doesn't work properly on Fennec
Categories
(Core :: Graphics: CanvasWebGL, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: jrmuizel, Unassigned)
References
(Blocks 2 open bugs, )
Details
See bug 768959 for more information. On my Nexus S there's some black flashing around the spaceship, no shooting ever happens.
Comment 1•12 years ago
|
||
I cannot reproduce on my Nexus S, everything seems to be working like on desktop, including the shooting. But you have to wait for 10+ seconds, the shooting only starts once enemies have appeared.
Reporter | ||
Comment 2•12 years ago
|
||
(In reply to Benoit Jacob [:bjacob] from comment #1)
> I cannot reproduce on my Nexus S, everything seems to be working like on
> desktop, including the shooting. But you have to wait for 10+ seconds, the
> shooting only starts once enemies have appeared.
Do you get a fps counter? How fast does it run?
Comment 3•12 years ago
|
||
I do, but it's only visible when the phone is in landscape orientation. It's too tiny to read and zooming doesn't work. I'd say i'm getting 3 fps but that is not useful info until bug 728524 lands.
Updated•12 years ago
|
Blocks: gecko-games
Can we check if this is still an issue?
Comment 5•11 years ago
|
||
I can't tell. The demo in question appears to immediately fall back to canvas2d on Android, while happily using webgl on my linux machine.
Comment 6•11 years ago
|
||
It sniffs the userAgent:
if (!this.nb) this.nb = /(iphone|ipod|ipad|blackberry|palm|symbian|nokia|windows\s+ce|windows\s+phone|iemobile)/i.test(navigator.userAgent);
if (!this.nb) this.nb = !/(windows|linux|os\s+[x9]|solaris|bsd)/i.test(navigator.userAgent);
One of the criteria for trying WebGL is `!this.nb`.
Our Mobile userAgent is `Mozilla/5.0 (Android; Mobile; rv:24.0) Gecko/24.0 Firefox/24.0`.
Comment 7•11 years ago
|
||
Well, the info from comment #6 is from http://www.scirra.com/labs/perftest2-webgl .
It might be the same here, though.
Comment 8•11 years ago
|
||
It's also unconditionally disabling webgl for Android userAgents:
this.Qi = /android/i.test(navigator.userAgent);
this.nb = this.Si || this.ig || this.Qi;
This WFM, certainly, even with just the canvas fallback (though perf is not great) on my nexus 4. Does it work for all Jeffs?
Flags: needinfo?(jmuizelaar)
Reporter | ||
Comment 9•11 years ago
|
||
Yes. Seems to work but slow.
Status: NEW → RESOLVED
Closed: 11 years ago
Flags: needinfo?(jmuizelaar)
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•