Closed Bug 846218 Opened 12 years ago Closed 12 years ago

[Homescreen] Dragging performance enhancement

Categories

(Firefox OS Graveyard :: Gaia::Homescreen, defect, P1)

ARM
Gonk (Firefox OS)

Tracking

(blocking-b2g:leo+, b2g18 fixed, b2g18-v1.0.1 wontfix)

RESOLVED FIXED
blocking-b2g leo+
Tracking Status
b2g18 --- fixed
b2g18-v1.0.1 --- wontfix

People

(Reporter: leo.bugzilla.gaia, Assigned: crdlc)

References

Details

(Keywords: perf, Whiteboard: [FFOS_perf])

Attachments

(1 file, 3 obsolete files)

We have tested the dragging performance on leo device using the high speed camera. The result of the dragging is 46fps. We need to improve the performace of dragging over 50fps.
Assignee: nobody → crdlc
Status: NEW → ASSIGNED
Attached file First patch (obsolete) —
https://github.com/crdlc/gaia/tree/846218 Sorry, because I don't have leo devices, could you tell me if fps are better with this patch? Thanks
Attached file Less allocations (obsolete) —
Attachment #719522 - Attachment is obsolete: true
blocking-b2g: leo? → ---
Attached file Patch v3 (obsolete) —
https://github.com/crdlc/gaia/tree/846218 This patch is based on the idea to avoid reflows while dragging
Attachment #719589 - Attachment is obsolete: true
Attachment #721251 - Flags: feedback?(leo.bugzilla.gaia)
Attached file Patch v4
Basically I've re-implemented some functions in order to achieve more fps dragging. The great goal here is to avoid reflows while dragging, keeping the elements that we animate and putting off the inserBefore operation when the user releases the finger and not between movements
Attachment #721251 - Attachment is obsolete: true
Attachment #721251 - Flags: feedback?(leo.bugzilla.gaia)
Attachment #722137 - Flags: review?(21)
Attachment #722137 - Flags: feedback?(leo.bugzilla.gaia)
blocking-b2g: --- → leo?
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: [perf] → [FFOS_perf]
in case this is needed, I resolved the v1-train conflicts here : https://github.com/julienw/gaia/commit/e71d872aa99d26d0016848501d77bf5ffdedaac8 The sensation when dragging is really better with this patch, I'm asking for tef+. Cristian, do you think that we could use transitions and transformations to control the dragged icon too (in a follow-up bug of course) ?
blocking-b2g: leo? → tef?
tracking-b2g18: --- → ?
(tef- from my POV as this isn't a key area of UI perf that we are tracking for v1.0.1)
blocking-b2g: tef? → -
blocking-b2g: - → leo?
> Cristian, do you think that we could use transitions and transformations to control the dragged icon too (in a follow-up bug of course) Hi friend, sorry, could you explain me a bit more? Such as icons below dragged icon as this one are translated. Maybe I didn't understand the question jejeje. But sure I could always do something to improve Firefox OS!!
Well, with this patch, the icons that move on the homescreen because of the drag are not laggy anymore. However, the icon being moved is still laggy... is it clearer ?
umm alright, the icon that is being moved use mozRequestAnimationFrame, maybe, in your local laptop change window.mozRequestAnimationFrame(move); move() and check results... https://github.com/mozilla-b2g/gaia/blob/master/apps/homescreen/js/dragdrop.js#L240
Sandip, based on the performance targets that you are working off of, would we block the release on this?
Flags: needinfo?(skamat)
blocking-b2g: leo? → leo+
tracking-b2g18: ? → ---
Flags: needinfo?(skamat)
v1-train: 160a4117c242aa45ca5b9cf7574e394f786832c8
Bug 854610 is tracking a regression.
Attachment #722137 - Flags: feedback?(leo.bugzilla.gaia)
marking 1.0.1 wontfix per comment 7
Blocks: 856863
Flags: in-moztrap-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: