Closed Bug 805666 Opened 13 years ago Closed 13 years ago

[Clock] Clock takes a long time to repaint

Categories

(Firefox OS Graveyard :: Gaia::Clock, defect, P3)

ARM
Gonk (Firefox OS)
defect

Tracking

(blocking-basecamp:-)

VERIFIED FIXED
blocking-basecamp -

People

(Reporter: mossop, Assigned: sjochimek)

References

Details

(Keywords: b2g-testdriver, polish, unagi, Whiteboard: visual design)

The analog clock takes an age to paint itself. You can go in, open an alarm then close it and it takes around 2 seconds to fully draw the clock background.
Hey guys, are we using a CSS radial gradient for the background here? Unfortunately, that's just about the slowest CSS primitive on ARM devices, and there's nothing we can do about it in the v1 timeframe :(. Pre-rasterizing the background is unfortunately the way we need to go. Ideally with a media query that only does it for low-resolution screens.
Yes, at current load speeds, I would deem this shippable. I will work with Peter to reduce the effects and increase the load performance.
Assignee: nobody → pla
(In reply to Patryk Adamczyk [:patryk] UX from comment #2) > Yes, at current load speeds, I would deem this shippable. I mean "unshippable" at current speeds.
I would recommend not changing the effect, but just producing a static .png or .jpg for HVGA resolution.
Polish / perf issue so not blocking
blocking-basecamp: ? → -
Keywords: polish
Whiteboard: visual design
The following patch will improve the repainting time. https://github.com/mozilla-b2g/gaia/pull/6082 Use small resolution(320x460) image on Ototro. It will improve loading time for the background image. Could we fix the issue by the pull request?
OS: Windows 7 → Gonk (Firefox OS)
Hardware: x86_64 → ARM
Summary: Clock takes a long time to repaint → [Clock] Clock takes a long time to repaint
The clock app also uses lots of SVG gradients. We have to stop that. Patryk can you supply bitmap images for the various clock parts please?
Since the pr https://github.com/mozilla-b2g/gaia/pull/6082 was merged, I'm not sure that the repaint time is accepted or not.
Gordon and I will strip out the graphics and do a graphic swap next week to help the performance.
Priority: -- → P3
Component: Gaia → Gaia::Clock
Assignee: pla → samuel
Depends on: 799712
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.