Skip to content

Fix performance issue of zooming

Gavin Chou requested to merge gavinchou/inkscape:master into master

All objects, which include the invisible, are updated when we zoom in/out, the improper algorithm leads to zooming lag. The lag is proportional to the number of objects we create, and it becomes unacceptable (on MacOS) when there are more than 1000 objects.

We should update what is visible while zooming.

Skipping updating the invisible objects when we take zoom actions to address the zooming problem. However, skipping what is not visible reduces zooming lag, but it introduces another problem that when we set the visible state of an object/layer it will not display until a zooming action taken. We should update items when it's visibility is set.

This fix also address issue #1614

Edited by Gavin Chou

Merge request reports