Drag-and-drop with lots of elements performs poorly
Reported by
ivan.kuc...@gmail.com,
Mar 11 2018
|
||||||
Issue descriptionUserAgent: 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
,
Mar 12 2018
,
Mar 13 2018
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..
,
Aug 9
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.
,
Aug 10
Pretty much all the time is spent in "Update layer tree"
,
Aug 13
Switching to Blink>Compositing which probably best captures the underlying problems. |
||||||
►
Sign in to add a comment |
||||||
Comment 1 by krajshree@chromium.org
, Mar 11 2018