The ruler used to draw the marks no matter if they are visible. This causes a performance problem as under high zoom levels, a large number (equals to or more than the number of pixels along the width or height of the canvas) of marks will be drawn. This patch changes the behavior, let the ruler draw only the marks that are visible or partially visible.
Details
Details
Diff Detail
Diff Detail
- Repository
- R37 Krita
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.