I'm seeing strange issues with GPU acceleration in my app.

First, on 4.0.3 / 4.0.4, a WebView with a dark background color flashes
white whenever I reload its data. It does this over the whole screen, which
looks really nasty in a multi-panel (fragment) UI. This is on an Asus
TF101, Sonty Tablet S, Acer A100 -- all Tegra 2 devices.

Ok, so I turn off "hardwareAccelerated" in the manifest for API < 16.



Now, if the user forces GPU acceleration on, on some devices, with some
content, WebView displays nothing, staying blank. Disabling "force GPU" in
the device's settings magically makes everything work again.

I've seen the advice to check if GPU is forced, and showing a warning
message, but since the issue only happens occasionally, I'm not sure if
it's worth it to irritate those who have "force GPU" on without bad
consequences.

This is WebView, it's not even my code (which is of course buggy and a
crappy), but this is part of Android.

I've not seen this failure on my devices, identical to those of users who'd
run into this.



Enter Android 4.1.1. Ok, the WebView background flash is fixed, so I
enable hardwareAccelerated in the manifest as a conditional boolean just
for API 16 and higher.


New issue: I have an activity with an EditText, whose content I set from
code (a message draft) and sometimes append to (a signature). The appended
text sometimes renders on top of the other text, making a big mess.


Ok, fine, I force a software layer on this EditText. This resolves the text
overlap issue, but now some content appears to render white on white: the
view scrolls as much as it's supposed to, shows the glowing overscroll
indicators, but there is nothing to see.

If I turn hardwareAccelerated off in the manifest or remove
setLayerType(SOFTWARE), the same content (and I mean the same content, it's
loaded from a database, and it's deterministic) renders just fine.


So here what I'm trying to understand:

- Is anyone else seeing as much weirdness with GPU accel as I am?

- Am I just so special hitting one bug after another?

- Is GPU acceleration, by and large, unexpectedly broken and randomly
unusable, even in 4.1.1 on the Galaxy Nexus?

- Do I have better things to do than chase one Android bug after another?


(I'll leave the sad story about how action bar in 4.0 / 4.1 overlaps icons
on top of the overflow button for some other time... good thing I have a
replacement...)


-- K

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to