Closed Bug 775222 Opened 12 years ago Closed 11 years ago

WebGL on Nightly on JellyBean is very slow

Categories

(Core :: Graphics: CanvasWebGL, defect)

All
Android
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: ehsan.akhgari, Unassigned)

References

Details

The SpaceRocks samples runs at 2-3 fps for me.
Depends on: 728524
OS: Mac OS X → Android
Hardware: x86 → All
That's an interesting find. Are we sure it's a regression form JellyBean?
(In reply to comment #1) > That's an interesting find. Are we sure it's a regression form JellyBean? No!
I took recently nexus-7 tablet and found nightly also very slow on JellyBean... after I added fence_sync + 565 patches I got 20FPS on webgl aquarium... Could it be that current version of WebGL sharing is just supoer slow (slower than SW rendering path)?
So on my Galaxy Nexus with newly installed JB, I'm getting around 25-28fps with Aquarium (from my slightly changed version via http://conduit.bitops.com/~vladimir/misc/webgl-demos.html). With 565 and alpha:false flipped on and fence_sync patch from a tinderbox build, I get maybe 15% more or so, 27-30fps. That's better than ICS was here, so I'm not sure what's going on. spacerocks I get around 10fps (with the stock one from webglsamples).
... until I zoom in and out, then I get 2-3, sometimes 4fps. Very jerky.
(In reply to Oleg Romashin (:romaxa) from comment #3) > I took recently nexus-7 tablet and found nightly also very slow on > JellyBean... after I added fence_sync + 565 patches I got 20FPS on webgl > aquarium... > Could it be that current version of WebGL sharing is just supoer slow > (slower than SW rendering path)? Being slower than readback is extremely unlikely. But I suppose almost anything is possible with mobile drivers. Is it possible Spacerocks is simply Slow?
Just tested nightly on Nexus-7 and it is horribly slow... but if in about:config set preference webgl.prefer-16bpp -> true, then aquarium and spacerocks works with ~20FPS, looks pretty ok for me. Compare to opera which show aquarium and spacerocks only ~6FPS
Can we set that pref true by default?
(In reply to Oleg Romashin (:romaxa) from comment #8) > Can we set that pref true by default? My understanding is that we need to figure out to handle this with the working group. Currently, WebGL requires 8-bit-per-channel color.
However, the data here is exactly what would help convince the working group. Jeff/Vlad are you going to push again now that we have this data, on a recent good phone on Jelly Bean?
Depends on: 767064
Spacerocks in default nightly gets 19 steady-state fps. Flipping prefer-no-alpha and prefer-16bpp I get about 20. Closer testing might show that these are basically the same.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.