[krita] [Bug 361619] Input event lag/drop-out when OpenGL is ON with large window

2016-04-29 Thread Boudewijn Rempt via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=361619

Boudewijn Rempt  changed:

   What|Removed |Added

 CC||halfsp...@mail.com

--- Comment #42 from Boudewijn Rempt  ---
*** Bug 362444 has been marked as a duplicate of this bug. ***

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


[krita] [Bug 361619] Input event lag/drop-out when OpenGL is ON with large window

2016-04-22 Thread Dmitry Kazakov via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=361619

--- Comment #41 from Dmitry Kazakov  ---
Git commit 3fba314ffa7fcb3d07f62be9f04fbe5ad8978286 by Dmitry Kazakov.
Committed on 22/04/2016 at 15:56.
Pushed by dkazakov into branch 'master'.

Add a workaround for Qt's event compression bug

This environment variable will appear only in Qt 5.6.1. Before that
we will still have to patch it manually.

https://codereview.qt-project.org/#/c/156755/

M  +10   -0krita/main.cc

http://commits.kde.org/krita/3fba314ffa7fcb3d07f62be9f04fbe5ad8978286

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


[krita] [Bug 361619] Input event lag/drop-out when OpenGL is ON with large window

2016-04-22 Thread Dmitry Kazakov via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=361619

--- Comment #40 from Dmitry Kazakov  ---
Hi, Tyson!

Still they include a better Qt than 15.10. I cannot remember what exactly, but
some small Krita features are disabled on Qt 5.4 :)

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


[krita] [Bug 361619] Input event lag/drop-out when OpenGL is ON with large window

2016-04-22 Thread Tyson Tan via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=361619

--- Comment #39 from Tyson Tan  ---
Thanks! Silly me to think 16.04 would have included the newest Qt...as if they
ever did! lol

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


[krita] [Bug 361619] Input event lag/drop-out when OpenGL is ON with large window

2016-04-22 Thread Dmitry Kazakov via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=361619

--- Comment #38 from Dmitry Kazakov  ---
Hi, Tyson!

Ubuntu 16.04 has Qt 5.5.1, so the problem will not happen on it at all, until
Canonical decides to update it. Though atm we are discussing with people in Qt
how we can workaround it and make Krita Lime still available to the users even
when Ubuntu is updated.

This weekend we are going to build new AppImage builds. Could you please check
them when they are released? They are from the affected group, but now the bug
should not happen anymore! :)

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


[krita] [Bug 361619] Input event lag/drop-out when OpenGL is ON with large window

2016-04-21 Thread Tyson Tan via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=361619

--- Comment #36 from Tyson Tan  ---
Thank you! Please update the Krita Lime PPA so I can test them. Krita 3.0
builds are only available for 16.04 so I upgraded to it, but Krita 2.9.11 from
that PPA is not installable as it requires libgsl0ldbl (>=1.9), while Ubuntu
16.04 LTS supplies libgsl2 (2.1+dfsg-2).

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


[krita] [Bug 361619] Input event lag/drop-out when OpenGL is ON with large window

2016-04-20 Thread Dmitry Kazakov via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=361619

Dmitry Kazakov  changed:

   What|Removed |Added

 Status|CONFIRMED   |RESOLVED
  Latest Commit||http://commits.kde.org/krit
   ||a/31195a85a054e50af2d61ae76
   ||4f341db12190f1e
 Resolution|--- |FIXED

--- Comment #35 from Dmitry Kazakov  ---
Git commit 31195a85a054e50af2d61ae764f341db12190f1e by Dmitry Kazakov.
Committed on 20/04/2016 at 20:03.
Pushed by dkazakov into branch 'master'.

Fix a "bended lines"+AMD+Qt5.6 bug

The bug is actually in Qt 5.6. They decided to implement a motion event
compression without *any* way to disable it. So we have a lot of events
dropped resulting in "bended lines" on canvas.

For some reason the bug is reproducible on AMD GPUs only, with openGL
activated. It seems like either Qt asks for some synchronization, or
rendering on AMD is just too slow. I don't know the exact reason,
but being busy with rendering makes Qt drop a lot of events.

Since this event compression cannot be disabled in any official way, we
should start patching Qt on Linux as well. Yes, it means that Krita 3.0
cannot be distributed through official distribution repositories. Which
means that Krita Lime will have to be shut down as soon as Ubuntu 16.04
will upgrade to Qt 5.6.

CC:kimages...@kde.org
CC:shawn.rutle...@theqtcompany.com
Fixes T2224

M  +1-03rdparty/ext_qt/CMakeLists.txt
A  +20   -03rdparty/ext_qt/qt-no-motion-compression.diff

http://commits.kde.org/krita/31195a85a054e50af2d61ae764f341db12190f1e

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


[krita] [Bug 361619] Input event lag/drop-out when OpenGL is ON with large window

2016-04-20 Thread Dmitry Kazakov via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=361619

--- Comment #34 from Dmitry Kazakov  ---
Hi, Tyson!

Did you compile Qt yourself or you use the system's one? Qt 5.4.2, right?

The point is that the real cause of bended lines was introduced in Qt 5.6. But
if you say that Qt 5.4.2 is also affected, then it starts looking a bit too
weird :)

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


[krita] [Bug 361619] Input event lag/drop-out when OpenGL is ON with large window

2016-04-20 Thread Tyson Tan via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=361619

--- Comment #33 from Tyson Tan  ---
I mean, I built my own binaries from the source code on Ubuntu 15.10, and it
still has the same problem.

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


[krita] [Bug 361619] Input event lag/drop-out when OpenGL is ON with large window

2016-04-20 Thread Dmitry Kazakov via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=361619

--- Comment #32 from Dmitry Kazakov  ---
Well, AppImage has Qt 5.6 bundled inside :) Anyway, I'm going to work on this
bug today

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


[krita] [Bug 361619] Input event lag/drop-out when OpenGL is ON with large window

2016-04-18 Thread Tyson Tan via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=361619

--- Comment #31 from Tyson Tan  ---
But I'm using Ubuntu 15.10, it has Qt 5.4.2 with it. Both AppImage and my local
build had this problem, while Windows version seems to work fine. I'm not very
sure about the speculation in Comment 30.

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


[krita] [Bug 361619] Input event lag/drop-out when OpenGL is ON with large window

2016-04-18 Thread Dmitry Kazakov via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=361619

--- Comment #30 from Dmitry Kazakov  ---
I got a new PC with AMD on Saturday. The first tries show that the problem is
not only in AMD. It is in combination of Qt 5.6, AMD and openGL mode. Absence
of any part of the equation, make the bug not reproducible :) E.g. Qt 5.6 +
Haswell + openGL works fine, Qt 5.5.1 + AMD + openGL works also fine :)

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


[krita] [Bug 361619] Input event lag/drop-out when OpenGL is ON with large window

2016-04-16 Thread Boudewijn Rempt via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=361619

--- Comment #29 from Boudewijn Rempt  ---
The box is being assembled :-)

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


[krita] [Bug 361619] Input event lag/drop-out when OpenGL is ON with large window

2016-04-14 Thread Boudewijn Rempt via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=361619

--- Comment #28 from Boudewijn Rempt  ---
11:29:04 < dmitryK|log> boud: ok, ordered with delivery on Saturday :)
11:30:04 < dmitryK|log> boud: Tyson's recommendations are almost exactly the
same as I ordered

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


[krita] [Bug 361619] Input event lag/drop-out when OpenGL is ON with large window

2016-04-13 Thread Tyson Tan via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=361619

--- Comment #27 from Tyson Tan  ---
GPU wise you may consider:

AMD Radeon R7 360 -- basically the same chipset as AMD Firepro W5100, supports
D3D 12, OpenGL 4.5 and OpenCL 2.0, with a TDP of 100W, requires a 6pin power
supply. Price range: $109.

AMD Radeon HD 6570 -- basically the same chipset as AMD Firepro V4900, supports
D3D 11, OpenGL 4.4 and OpenCL 1.2, with a TDP of 60W, doesn't require a 6 pin
power supply and has a smallform factor. Price range: $39.

I have been using their equivalent AMD Firepro cards, so I suppose they won't
give you hard times under GNU/Linux. Personally, I would recommend HD 6570
because it's cheaper, cooler and has well-matured open source drivers. It
should be much easier to manage.

As for CPU (APU):

AMD A8-7600, the most popular APU in recent AMD generations, supports AVX, has
an integrated R7 GPU so you might save the GPU. TDP 65W. Price range: $109($79
at constant sale). 

Use with an A88X chipset motherboard. I suggest ASUS A88XM-A, it might give you
less trouble because of a potentially better BIOS. Price range: $149.

The APU plan is probably better because you may want to test against every
aspect of AMD's shenanigans. XD

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


[krita] [Bug 361619] Input event lag/drop-out when OpenGL is ON with large window

2016-04-13 Thread Boudewijn Rempt via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=361619

--- Comment #26 from Boudewijn Rempt  ---
Plotted measurements: http://nonaynever.ru/pub/tablet_logging.pdf

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


[krita] [Bug 361619] Input event lag/drop-out when OpenGL is ON with large window

2016-04-13 Thread Boudewijn Rempt via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=361619

--- Comment #25 from Boudewijn Rempt  ---
Dmitry's laptop has an amd gpu, but that doesn't work at all. We're speccing &
pricing a test system now so the Foundation can buy one for Dmitry. It'll also
be useful to check the other bug reports we have about amd gpu and cpu's :-)

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


[krita] [Bug 361619] Input event lag/drop-out when OpenGL is ON with large window

2016-04-12 Thread Tyson Tan via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=361619

--- Comment #24 from Tyson Tan  ---
Created attachment 98370
  --> https://bugs.kde.org/attachment.cgi?id=98370=edit
Recored desktop video of Krita 2.9.11 drawing when OpenGL is ON

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


[krita] [Bug 361619] Input event lag/drop-out when OpenGL is ON with large window

2016-04-12 Thread Tyson Tan via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=361619

--- Comment #23 from Tyson Tan  ---
Created attachment 98369
  --> https://bugs.kde.org/attachment.cgi?id=98369=edit
Recored desktop video of Krita 3.0 alpha lags when OpenGL is ON

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


[krita] [Bug 361619] Input event lag/drop-out when OpenGL is ON with large window

2016-04-12 Thread Tyson Tan via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=361619

--- Comment #22 from Tyson Tan  ---
Correction for Comment 21:
When using the Appimage version, with Crosshair cursor, Brush Outline and
Instant Preview, logging options all checked, Krita crashes immediately WHEN I
DRAW SOMETHING.

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


[krita] [Bug 361619] Input event lag/drop-out when OpenGL is ON with large window

2016-04-12 Thread Tyson Tan via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=361619

--- Comment #21 from Tyson Tan  ---
Hi Dmitry, When using the Appimage version, with Crosshair cursor, Brush
Outline and Instant Preview, logging options all checked, Krita crashes
immediately. The terminal says "Segment fault". I don't see "glSync
effectiveness" lines in the terminal when I draw long strokes.

Meanwhile, I'm preparing means to record video on my PC. Will report back
later.

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


[krita] [Bug 361619] Input event lag/drop-out when OpenGL is ON with large window

2016-04-12 Thread Dmitry Kazakov via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=361619

--- Comment #20 from Dmitry Kazakov  ---
Hi, Tyson!

Can I ask you to record a video with the slowdown? Activate crosshair cursor +
brush brush outline dispay, so I could see the real delay.

I would also like to know, what happens if you activate openGL performance
logging and do a very long stroke (20-30 seconds long). Do you see any "glSync
effectiveness" lines in the terminal output?

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


[krita] [Bug 361619] Input event lag/drop-out when OpenGL is ON with large window

2016-04-12 Thread Boudewijn Rempt via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=361619

Boudewijn Rempt  changed:

   What|Removed |Added

 Ever confirmed|0   |1
 Status|UNCONFIRMED |CONFIRMED

--- Comment #19 from Boudewijn Rempt  ---
Dmitry is looking into it:   https://phabricator.kde.org/T2224

It's probably an AMD specific issue:

18:20:21 < dmitryK|log1> boud: looking at his log I can guess that fence sync
doesn't work

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


[krita] [Bug 361619] Input event lag/drop-out when OpenGL is ON with large window

2016-04-12 Thread Dmitry Kazakov via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=361619

Dmitry Kazakov  changed:

   What|Removed |Added

 CC||dimul...@gmail.com

--- Comment #18 from Dmitry Kazakov  ---
Hi, Tyson!

I will try to investigate into your slowdown bug now.

The antialiasing bug happens because of Instant Preview functionality. If you
disable it, the lines will be correct right from the beginning.

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


[krita] [Bug 361619] Input event lag/drop-out when OpenGL is ON with large window

2016-04-12 Thread Tyson Tan via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=361619

--- Comment #17 from Tyson Tan  ---
Tested under Windows 10 x64 on my Xeon/Firepro W5100 machine. There is no
slowdown or it was very hard to notice. Curves don't become straight lines.

However, the slow antialiasing described in Comment 16 is still noticeable. And
the canvas updates in multiple noticeable horizontal stripes.

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


[krita] [Bug 361619] Input event lag/drop-out when OpenGL is ON with large window

2016-04-12 Thread Tyson Tan via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=361619

--- Comment #15 from Tyson Tan  ---
I've built Krita 3.0 Alpha locally, and things behave a bit differently now:

1. Krita's performance logging still fails, but it now shows
"QFSFileEngine::open: No file name specified" instead.

2. Slowdowns still occur when drawing, but at least curves do not occasionally
become straight lines anymore. But the canvas updates even slower. I can feel
it updates only 4 or 5 times during a very long stroke.

3. It's so slow that I can see a curve stroke with zig-zag at its edge, then
about 1 second later the antialiasing makes it smoother.

4. Appimage version uses GTK file dialogue. Local build uses KDE file dialogue.

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


[krita] [Bug 361619] Input event lag/drop-out when OpenGL is ON with large window

2016-04-12 Thread Boudewijn Rempt via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=361619

--- Comment #14 from Boudewijn Rempt  ---
That actually sounds like Dmitry's logging code got broken! I'll try to
investigate it
on the train home from work...

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


[krita] [Bug 361619] Input event lag/drop-out when OpenGL is ON with large window

2016-04-12 Thread Tyson Tan via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=361619

--- Comment #13 from Tyson Tan  ---
I tested mostly using Fill_circle but every preset lags.

I tried enabling logging but I could find the log. Krita says it saves those in
, I suppose it's the same directory where I saved the .kra file?
The terminal returns:
QIODevice::write (QFile, "log/Fill_block.stroke.rdata"): device not open
Requested FPS: 16.4121
QIODevice::write (QFile, "log/Fill_circle.stroke.rdata"): device not open
Requested FPS: 35.841
Requested FPS: 113.739
QIODevice::write (QFile, "log/Ink_gpen_10.stroke.rdata"): device not open
Requested FPS: 8.15437
Requested FPS: 59.5519
Requested FPS: 123.021

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


[krita] [Bug 361619] Input event lag/drop-out when OpenGL is ON with large window

2016-04-12 Thread Boudewijn Rempt via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=361619

--- Comment #12 from Boudewijn Rempt  ---
Could you make a test with performance logging and opengl logging enabled?
Also, which preset are you using to test with?

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


[krita] [Bug 361619] Input event lag/drop-out when OpenGL is ON with large window

2016-04-11 Thread Tyson Tan via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=361619

--- Comment #11 from Tyson Tan  ---
Hi Boud, that option has no effect either. As long as OpenGL is ON, I can't
find any options that can alleviate the problem. If there is more test I can
do, please tell me how to.

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


[krita] [Bug 361619] Input event lag/drop-out when OpenGL is ON with large window

2016-04-11 Thread Boudewijn Rempt via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=361619

Boudewijn Rempt  changed:

   What|Removed |Added

 CC||b...@valdyas.org

--- Comment #10 from Boudewijn Rempt  ---
Hm... Both graphics cards are amd's. Could you check what happens if you
disable "Use Texture Buffer"? We added that option because on AMD gpu's that
often improves performance.

It's really provoking... Here on an Nvidia card, I _cannot_ get bended lines
anymore. If I start Krita under valgrind, I can draw spirals, and it takes ages
before they pop up on the screen, but when they do, they're perfectly round :-(

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


[krita] [Bug 361619] Input event lag/drop-out when OpenGL is ON with large window

2016-04-11 Thread wolthera via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=361619

wolthera  changed:

   What|Removed |Added

 CC||griffinval...@gmail.com

--- Comment #8 from wolthera  ---
did you turn off instant preview via view? It might be affecting thing as well?

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


[krita] [Bug 361619] Input event lag/drop-out when OpenGL is ON with large window

2016-04-11 Thread Tyson Tan via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=361619

--- Comment #7 from Tyson Tan  ---
Tested on Ubuntu 15.10 64-Bit
CPU: Intel® Core™ i5-3470 CPU @ 3.20GHz × 4
RAM: 15.6 GiB
GPU: AMD Firepro V4900, opensource driver, Gallium 0.4 on AMD TURKS (DRM
2.43.0, LLVM 3.6.2)

Krita 2.9 runs fine on this setup.

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

[krita] [Bug 361619] Input event lag/drop-out when OpenGL is ON with large window

2016-04-11 Thread Tyson Tan via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=361619

--- Comment #6 from Tyson Tan  ---
Created attachment 98333
  --> https://bugs.kde.org/attachment.cgi?id=98333=edit
Krita 3.0 Alpha input not lagging when OpenGL is OFF with large window, tablet
log

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


[krita] [Bug 361619] Input event lag/drop-out when OpenGL is ON with large window

2016-04-11 Thread Tyson Tan via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=361619

--- Comment #5 from Tyson Tan  ---
Created attachment 98332
  --> https://bugs.kde.org/attachment.cgi?id=98332=edit
Krita 3.0 Alpha input not very lagging when OpenGL is ON with small window,
tablet log

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


[krita] [Bug 361619] Input event lag/drop-out when OpenGL is ON with large window

2016-04-11 Thread Tyson Tan via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=361619

--- Comment #4 from Tyson Tan  ---
Created attachment 98331
  --> https://bugs.kde.org/attachment.cgi?id=98331=edit
Krita 3.0 Alpha input lagging when OpenGL is ON with large window, tablet log

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


[krita] [Bug 361619] Input event lag/drop-out when OpenGL is ON with large window

2016-04-11 Thread Tyson Tan via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=361619

--- Comment #3 from Tyson Tan  ---
Created attachment 98330
  --> https://bugs.kde.org/attachment.cgi?id=98330=edit
Krita 3.0 Alpha input not lagging when OpenGL is OFF with large window

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


[krita] [Bug 361619] Input event lag/drop-out when OpenGL is ON with large window

2016-04-11 Thread Tyson Tan via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=361619

--- Comment #2 from Tyson Tan  ---
Created attachment 98329
  --> https://bugs.kde.org/attachment.cgi?id=98329=edit
Krita 3.0 Alpha input not very lagging when OpenGL is ON with small window

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


[krita] [Bug 361619] Input event lag/drop-out when OpenGL is ON with large window

2016-04-11 Thread Tyson Tan via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=361619

--- Comment #1 from Tyson Tan  ---
Created attachment 98328
  --> https://bugs.kde.org/attachment.cgi?id=98328=edit
Krita 3.0 Alpha input lagging when OpenGL is ON with large window

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