https://bugs.kde.org/show_bug.cgi?id=411352
Tiar <tamtamy.tym...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|https://invent.kde.org/grap |https://invent.kde.org/grap
                   |hics/krita/commit/00f86a7e5 |hics/krita/commit/0cd2ea87b
                   |540464a9c4e3a6c5a0300e41edb |0719cb8a496fd0a96de2434a909
                   |43f6                        |ae10

--- Comment #9 from Tiar <tamtamy.tym...@gmail.com> ---
Git commit 0cd2ea87b0719cb8a496fd0a96de2434a909ae10 by Agata Cacko.
Committed on 03/10/2021 at 16:27.
Pushed by tymond into branch 'krita/5.0'.

Move Perspective assistant drawing to drawAssistant from drawCache

Before this commit, the grid of the Perspective Assistant was drawn
in the drawCache, which caused performance issues when using
the perspective assistant and zooming in a lot.
(test method: zoom in a lot, so it's around 1600%, and then zoom in
and out very quickly using your mouse wheel. It's instant with this
patch, but slow without the patch. Note that if the Configure Krita ->
Display -> Canvas Acceleration is off, it's still super slow).

This commit does two things:
- crops the drawn lines to the viewport
- moves the whole drawing action to drawAssistant
Note: just cropping the drawn lines, but still using the cache,
didn't improve the assistants performance that much.
There must be some inherent issue with this caching method.

M  +42   -32   plugins/assistants/Assistants/PerspectiveAssistant.cc

https://invent.kde.org/graphics/krita/commit/0cd2ea87b0719cb8a496fd0a96de2434a909ae10

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to