Wednesday, December 15, 2010

Hardware Acceleration on Fennec

It's now possible with current nightlies to use OpenGL for compositing in Fennec on Android. To turn it on, go to about:config and set "layers.accelerate-all" to "true" and restart. If it's working you can go to about:support and the Graphics section will say "1/1 OpenGL".

It would be great if people can test it and let me know how it goes.

12 comments:

Anonymous said...

Will this be in nightly builds? If so, as of what day? Cool!

Wes Johnston said...

This can be a bit dangerous. My phone crashes on Fennec startup with accelerated layers enabled. Reverting the change without destroying your profile is... difficult. Just a fair warning to anyone trying to do this.

Jeff Muizelaar said...

Wes Johnston: What kind of phone do you have?

Jeff Muizelaar said...

Anonymous: It's probably best to use a nightly from today.

Anonymous said...

I tested scrolling on a pretty big page (planet.mozilla.org):

Scrolling is pretty laggy and not as smooth as without acceleration: after swiping with the finger, it scrolls a little (pretty jerkily), stops for a while, and then continues scrolling again.

I also think scrolling might not react to touch as quickly as before.

But it didn't crash. Thanks for working on this!

(Nexus One, Froyo, nightly from today)

Wes Johnston said...

I have a Droid X Jeff. Created a bug: 619539 with the logcat. I can try to get a debug stack if necessary.

starwed said...

I see the same crash on a Droid 1, to save others from trying that out :)

(Also left a comment on bug 619539)

pao said...

Lot of variables here, but I cannot get acceleration on da25c7 on a T-Mobile G2 (HTC Vision) with CyanogenMod 6.1.1. layers.accelerate-all=true but GPU Accelerated Windows 0/1. Other OpenGL applications do work fine; I tested with OpenGL 3D Showcase from the Market.

Lowest Unique Bid said...
This comment has been removed by a blog administrator.
c said...

I have an N1 with FRG83D and I don't think scrolling is any better. In fact I think it's worse.

And some visual anomalies. Also I think it just froze.

c said...

Yeah, it froze and it forced a reboot just now.

Jeff Muizelaar said...

c: Bug 604101 (https://bugzilla.mozilla.org/show_bug.cgi?id=604101) should help with that.