Closed
Bug 846218
Opened 12 years ago
Closed 12 years ago
[Homescreen] Dragging performance enhancement
Categories
(Firefox OS Graveyard :: Gaia::Homescreen, defect, P1)
Tracking
(blocking-b2g:leo+, b2g18 fixed, b2g18-v1.0.1 wontfix)
RESOLVED
FIXED
blocking-b2g | leo+ |
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 | ||
Updated•12 years ago
|
Assignee: nobody → crdlc
Assignee | ||
Updated•12 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 1•12 years ago
|
||
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
Assignee | ||
Comment 2•12 years ago
|
||
Attachment #719522 -
Attachment is obsolete: true
Assignee | ||
Comment 3•12 years ago
|
||
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)
Assignee | ||
Comment 4•12 years ago
|
||
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)
Attachment #722137 -
Flags: review?(21) → review+
Assignee | ||
Comment 5•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Updated•12 years ago
|
Whiteboard: [perf] → [FFOS_perf]
Comment 6•12 years ago
|
||
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:
--- → ?
Comment 7•12 years ago
|
||
(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? → -
Updated•12 years ago
|
blocking-b2g: - → leo?
Assignee | ||
Comment 8•12 years ago
|
||
> 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!!
Comment 9•12 years ago
|
||
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 ?
Assignee | ||
Comment 10•12 years ago
|
||
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
Comment 11•12 years ago
|
||
Sandip, based on the performance targets that you are working off of, would we block the release on this?
Flags: needinfo?(skamat)
Updated•12 years ago
|
Comment 12•12 years ago
|
||
v1-train: 160a4117c242aa45ca5b9cf7574e394f786832c8
status-b2g18:
--- → fixed
Comment 13•12 years ago
|
||
Bug 854610 is tracking a regression.
Assignee | ||
Updated•12 years ago
|
Attachment #722137 -
Flags: feedback?(leo.bugzilla.gaia)
Updated•12 years ago
|
Flags: in-moztrap-
You need to log in
before you can comment on or make changes to this bug.
Description
•