Closed
Bug 688104
Opened 13 years ago
Closed 6 years ago
review all uses of MOZ_GFX_OPTIMIZE_MOBILE
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: gal, Unassigned)
References
(Depends on 2 open bugs)
Details
We ran into performance problems on a 24bpp device and it turns out MOZ_GFX_OPTIMIZE_MOBILE forces 16bit. It also does some other things that make things look **** on mobile. Lets reevaluate whether those things really cost more performance than we can afford, in particular on current devices (e.g. font hinting!).
Comment 1•13 years ago
|
||
See also bug 687835
Reporter | ||
Updated•13 years ago
|
Alias: MOZ_GFX_OPTIMIZE_MOB
Reporter | ||
Updated•13 years ago
|
Alias: MOZ_GFX_OPTIMIZE_MOB
NB: bug 688115 added another of these
#ifdef MOZ_GFX_OPTIMIZE_MOBILE
// Prefer r5g6b5 for potential savings in memory bandwidth.
// This needs to be reevaluated for newer devices.
{ gfxASurface::ImageFormatRGB16_565, kEGLConfigAttribsRGB16 },
#endif
Comment 3•13 years ago
|
||
We likely need some way to switch between 16 bit and 24/32 bit colour based on device. I don't think that we'll have benefit from switching wholesale to 24-bit, but we definitely need to do tests on that.
Comment 4•13 years ago
|
||
note that bug 499853 looks like a legit use of MOZ_GFX_OPTIMIZE_MOBILE, so I'm not filing a bug to review it.
Comment 5•13 years ago
|
||
bug 634759 recently landed and added some MOZ_GFX_OPTIMIZE_MOBILE checks, I asked on the bug if the fix is considered permanent or if there should be follow up work (it seems the bug is not fully understood).
Other than that, and bug 499853 noted above, all uses of MOZ_GFX_OPTIMIZE_MOBILE have bugs filed against them.
Reporter | ||
Comment 6•13 years ago
|
||
++blassey, thanks a lot
Reporter | ||
Comment 7•13 years ago
|
||
I think I disagree with bug 499853. We should not behave differently on mobile vs desktop on this. Is performance a concern here? How often do we get missing glyphs? At most I would go with a pref. These hard-coded defines should really die.
Comment 8•13 years ago
|
||
bug 499853 says that putting the hex codes in the missing glyphs *was* a performance problem. I'd have no objection to making that a pref though.
Reporter | ||
Comment 9•13 years ago
|
||
The bug was 2 years ago, on lesser average hardware, and a less optimized stack. I would like to remeasure this, and also understand how often this happens (e.g. do you know any site I can use for testing?)
Comment 10•13 years ago
|
||
http://www.bbc.co.uk/persian/ assuming you haven't installed persian fonts on your device
Reporter | ||
Comment 11•13 years ago
|
||
cool, thanks, thats a great test case
Comment 12•6 years ago
|
||
Closing all opened bug in a graveyard component
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•