New issue
Advanced search Search tips

Issue 820798 link

Starred by 3 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Bug



Sign in to add a comment

Drag-and-drop with lots of elements performs poorly

Reported by ivan.kuc...@gmail.com, Mar 11 2018

Issue description

UserAgent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.186 Safari/537.36

Steps to reproduce the problem:
1. Go to https://goo.gl/FemEgV
2. On the bottom right panel (Layers), grab some item (layer) and drag-n-drop it between some another layers.
3. Try the same thing in Firefox

What is the expected behavior?

What went wrong?
As you drag the layer, the view is updated very slowly. After you release the element, it takes 5 seconds until you can see the result. Performance profile says, that "browser" takes most of the time.

Everything works much smoother in Firefox.

Do you do any hit-testing at this part? There can be thousands of elements. I recommend to build some hierarchical data structure (kd-tree, quadtree) to do hit test faster (that is probably what FF is doing).

Did this work before? N/A 

Chrome version: 64.0.3282.186  Channel: n/a
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)
Flash Version: Shockwave Flash 28.0 r0
 
Labels: Needs-Triage-M64

Comment 2 by kochi@chromium.org, Mar 12 2018

Components: -Blink Blink>DataTransfer
Cc: susan.boorgula@chromium.org
Labels: Triaged-ET M-67 Target-67 FoundIn-67 OS-Linux OS-Mac
Status: Untriaged (was: Unconfirmed)
ivan.kuckir@ Thanks for the issue.

Able to reproduce the issue on Windows 10, Mac OS 10.12.6 and Ubuntu 14.04 on the latest Canary 67.0.3368.0 and Stable 65.0.3325.146 by following the steps given above.

On navigating to the given link, can observe a lag on dragging and dropping a layer.
Attached is the screen cast for reference.

This is a Non-Regression issue as this behavior is observed from M60 Chrome builds. 
Hence marking this as Untriaged for further updates from Dev.

Thanks..
820798.mp4
677 KB View Download
Cc: c...@chromium.org pwnall@chromium.org
Components: -Blink>DataTransfer Blink>Layout
Labels: -Pri-2 Pri-3
AFAIK we don't maintain any sort of kd-trees / quad-trees for layout. Moving to Layout to get a 2nd opinion on currently used data structures.

Assuming I'm correct, this bug can be marked Available, as we have no concrete plans to work on it.


Cc: szager@chromium.org
Components: Blink>Paint
Labels: -Pri-3 Pri-2
Pretty much all the time is spent in "Update layer tree"
Components: -Blink>Paint -Blink>Layout Blink>Compositing
Status: Available (was: Untriaged)
Summary: Drag-and-drop with lots of elements performs poorly (was: Drag-and-drop with lots of elements)
Switching to Blink>Compositing which probably best captures the underlying problems.

Sign in to add a comment