Summary: | random lines appear on canvas and scratchpad while moving the cursor | ||
---|---|---|---|
Product: | [Applications] krita | Reporter: | Takiro Ryo <takiro-kde> |
Component: | General | Assignee: | Krita Bugs <krita-bugs-null> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | alvin, dimula73, halla |
Priority: | NOR | ||
Version: | 4.4.8 | ||
Target Milestone: | --- | ||
Platform: | Appimage | ||
OS: | All | ||
Latest Commit: | Version Fixed In: |
Description
Takiro Ryo
2021-08-28 10:49:55 UTC
I set this to confirmed because it already affects multiple users. I can reproduce such lines, but only on the scratchpad and only when a fractional Hi-DPI scaling (150% or 175%) is being used. No issues at 200%. Yes, I checked it and it stops happening at 200%, then it works fine. On everything in between, the lines are back. In Windows there seems to be an option "Enable fractional scale factor" (Which is not available on Linux or at least I don't see it in the app image version) but it doesn't seem to help on Windows, at least this user (https://krita-artists.org/t/weird-artifacts-in-viewport-windows-10/28178/4?u=takiro) writes he has the option enabled and it still happens for them with a scaling of 125%. (In reply to Takiro Ryo from comment #3) > In Windows there seems to be an option "Enable fractional scale factor" > (Which is not available on Linux or at least I don't see it in the app image > version) but it doesn't seem to help on Windows, at least this user > (https://krita-artists.org/t/weird-artifacts-in-viewport-windows-10/28178/ > 4?u=takiro) writes he has the option enabled and it still happens for them > with a scaling of 125%. Well, having the option enable *causes* this issue to show up. (In reply to Alvin Wong from comment #4) > Well, having the option enable *causes* this issue to show up. I see, I didn't understand what it was for, I read it just now. It seems to be enabled by default, right now. At least knowing this, I could help a few users already, users with small enough displays that they can disable it and do without scaling. It seems to be the same thing as QTBUG-78963 [1]. I guess the linked patch [2] might help a bit, worth trying? [1]: https://bugreports.qt.io/browse/QTBUG-78963 [2]: https://codereview.qt-project.org/c/qt/qtbase/+/278047 This might also help: https://codereview.qt-project.org/c/qt/qtbase/+/308500 Git commit a2b87cf71b7d0a1079842d60c0431acce50c2fb0 by Alvin Wong. Committed on 22/09/2021 at 08:53. Pushed by alvinwong into branch 'master'. Backport Qt patches to fix paint artifacts on fractional scaling Backported three changes: - https://codereview.qt-project.org/c/qt/qtbase/+/249023 - https://codereview.qt-project.org/c/qt/qtbase/+/278047 - https://codereview.qt-project.org/c/qt/qtbase/+/308500 M +20 -0 3rdparty/ext_qt/CMakeLists.txt A +120 -0 3rdparty/ext_qt/frac_dpi_paint_artifacts/0001-Add-faster-path-for-scaling-QRegion-with-multiple-re.patch A +128 -0 3rdparty/ext_qt/frac_dpi_paint_artifacts/0002-Fix-QPainter-off-by-one-clipping-for-some-non-intege.patch A +35 -0 3rdparty/ext_qt/frac_dpi_paint_artifacts/0003-Fix-under-non-integer-scaling-incorrect-update-area.patch https://invent.kde.org/graphics/krita/commit/a2b87cf71b7d0a1079842d60c0431acce50c2fb0 Git commit cc3f4e4f89439a873de77e1b83b6a9af35c16d98 by Alvin Wong. Committed on 22/09/2021 at 09:00. Pushed by alvinwong into branch 'krita/5.0'. Backport Qt patches to fix paint artifacts on fractional scaling Backported three changes: - https://codereview.qt-project.org/c/qt/qtbase/+/249023 - https://codereview.qt-project.org/c/qt/qtbase/+/278047 - https://codereview.qt-project.org/c/qt/qtbase/+/308500 (cherry picked from commit a2b87cf71b7d0a1079842d60c0431acce50c2fb0) M +20 -0 3rdparty/ext_qt/CMakeLists.txt A +120 -0 3rdparty/ext_qt/frac_dpi_paint_artifacts/0001-Add-faster-path-for-scaling-QRegion-with-multiple-re.patch A +128 -0 3rdparty/ext_qt/frac_dpi_paint_artifacts/0002-Fix-QPainter-off-by-one-clipping-for-some-non-intege.patch A +35 -0 3rdparty/ext_qt/frac_dpi_paint_artifacts/0003-Fix-under-non-integer-scaling-incorrect-update-area.patch https://invent.kde.org/graphics/krita/commit/cc3f4e4f89439a873de77e1b83b6a9af35c16d98 The bug should be fixed in this commit: https://invent.kde.org/graphics/krita/-/commit/f5255d4e73d0a92e5e48f823a89e17436d286394 Okay, QPainter canvas and Scratchpad are still affected After backporting the Qt patches (a2b87cf71b7d0a1079842d60c0431acce50c2fb0), there seems to be a improvement to the QPainter canvas and scratchpad, *if* desktop OpenGL has been loaded. When ANGLE is loaded instead, they still produce a lot of black lines artifacts for me (testing with 1.1x scaling). Setting to confirmed, then. |