-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3-4 second lag when modifying shapes #1141
Comments
Hi, |
Hi, Between 28.49s and 36.49s there are several drag operations.
If you need any more info let me know :) |
Hmm. Examples of polygons you attached actually is not very large. I usually can work with polygons where > 100 points without any problems. |
So the thing I've noticed with this is it seems to be related to the number of pending edits to a shape. I don't know how the underlying data-structure differs between editing and creation so not sure if that is helpful? This test was done on a machine with an i7-7700HQ, 16GB of RAM and SSD. I've also reproduced this result on a machine with an AMD 6 core & 6GB of RAM, as well as an i5 quad core with 8GB of RAM. |
Investigated it. I am not sure about fast fix here. On the one hand I see wrong method of working with an array in the library. On the other hand we might use the library somehow else. |
The patch #1197 is expected to help. |
Hi Guys,
First I wanted to say thanks for developing and maintaining this tool. It's invaluable for me :)
We are having a minor issue with lag when modifying existing shapes. These polygon annotations have quite a lot of points. The SVG definitions from one of my problem cases is attached,
SvgjsPolygon22040
is the shape I am modifying when able to reliably reproduce this issue.The issue precisely is that usually after moving 30-40 points in a session, there starts to be an occasional 3-4 second freeze when moving points (every 4-5 points or so). I can carry on clicking and moving points during the freeze, and the system catches up again afterwards.
The system is very responsive immediately before and after the lag. It doesn't appear to be a resource issue on the machine that is being used, but it is reminiscent of hard-drive buffering. I've reproduced it in chrome 80 on windows and chrome 79 on Linux. I'm wondering if it could be some kind of chrome optimisation that needs to be disabled.
This isn't a major issue to productivity as saving the shape and refreshing the editor fixes the problem, but I'm just wondering if there is any trick to preventing this issue, I've tried running chrome options to disable disk buffering but to no avail.
Thanks in advance for all comments and suggestions.
svgdefs2.txt
The text was updated successfully, but these errors were encountered: