Bug 339952 - Poor drawing performance on Windows
Summary: Poor drawing performance on Windows
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: 2.9 Beta
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-14 09:40 UTC by Mikhail Sidorov
Modified: 2015-01-18 15:14 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mikhail Sidorov 2014-10-14 09:40:06 UTC
I've noticed that the Windows version of Krita works considerably slower than the Linux one when rendering strokes during drawing. Here's a video I've made to demonstrate the performance difference between Linux and Windows builds of Krita on the same machine: http://youtu.be/aWLhdfBhlbQ
You can see that in the first case (on Linux) the strokes get rendered just as I move the mouse cursor and in the second case there is a noticeable lag between the cursor and the rendered stroke.
In both cases I use 1600x1200 canvas, 200px brush with Basic_tip_default preset, 8 bit color depth, ~55% zoom level (fit page). Krita version that is shown in the video is 2.8.3 for both Linux and Windows (if I remember correctly) but the development Windows builds don't seem to work any better in that regard. I've tried both 32bit and 64bit versions and haven't spotted any significant difference either. Also turning the OpenGL mode on/off doesn't seem to affect the drawing performance in a noticeable way.
I can say that this problem makes Krita almost unusable on my machine under Windows and it seems to be a major issue if we plan to popularize Krita among Windows users.

Reproducible: Always

Steps to Reproduce:
Just try to make some fast strokes with a big default brush

Actual Results:  
There's a lag between the cursor and the rendered stroke

Expected Results:  
The performance that Krita shows on Linux is pretty much the desirable behavior
Comment 1 Halla Rempt 2014-10-15 20:47:40 UTC
I'd say this isn't a bug in Krita, but a bug in Windows :-)
Comment 2 Halla Rempt 2014-11-04 14:59:14 UTC
Is this with OpenGL enabled on both platforms? Qt's painting code is much slower on Windows than on X11, I'm afraid.
Comment 3 Mikhail Sidorov 2014-11-05 17:59:06 UTC
(In reply to Boudewijn Rempt from comment #2)
> Is this with OpenGL enabled on both platforms?

OpenGL was enabled on both platforms when I was recording the video. But as I said, turning it off doesn't seem to affect the drawing performance.
Comment 4 Dmitry Kazakov 2014-11-20 06:20:19 UTC
Hi, Mikhail!

Are they running on the same laptop?  And what CPU it has?
Comment 5 Dmitry Kazakov 2014-11-20 06:20:53 UTC
Boud, do we have Vc enabled on Windows? Probably this might be the reason?
Comment 6 Halla Rempt 2014-11-20 09:17:41 UTC
Yes, Vc is enabled on Windows. I can do a double-check, of course.
Comment 7 Halla Rempt 2014-11-20 09:18:36 UTC
Oh -- and tbh, on both my laptop (intel gpu) and my desktop (nivida), Krita performs quite okay.
Comment 8 Mikhail Sidorov 2014-11-20 14:38:13 UTC
(In reply to Dmitry Kazakov from comment #4)
> Hi, Mikhail!
> 
> Are they running on the same laptop?  And what CPU it has?

It's a desktop though but yes, the same one. The CPU is AMD Athlon 64 X2 5400+.
Comment 9 wolthera 2014-12-10 18:06:11 UTC
Check if you don't have smoothing in tool options set to 'weighted smoothing'. I can't quite see it from the video, but I have helped people who were using Krita on windows, whose problem was that that somehow had been on by default!
Comment 10 Mikhail Sidorov 2014-12-14 18:26:46 UTC
(In reply to wolthera from comment #9)
> Check if you don't have smoothing in tool options set to 'weighted
> smoothing'. I can't quite see it from the video, but I have helped people
> who were using Krita on windows, whose problem was that that somehow had
> been on by default!

No, I've made sure that the settings are the same on both platforms, which includes smoothing set to "off".
Comment 11 Halla Rempt 2015-01-15 13:00:22 UTC
Hm... I do see a bit of a performance difference, which isn't too strange, since Windows just is slower in pretty much everything, but nothing as huge as on your video. I've tried on five different windows systems, too :-(
Comment 12 Mikhail Sidorov 2015-01-17 21:32:48 UTC
Yeah, the situation with my desktop is kinda strange. I've also tried Krita on my laptop (Intel Core i5 4200M, NVidia GeForce 820M) and didn't get that huge difference as well (both with integrated and discrete GPUs if it's important).
Comment 13 Halla Rempt 2015-01-18 15:14:48 UTC
Okay -- then I guess there really isn't anything we can do on the krita side... If you're a software developer and have vtune, it might be worth it to run krita in vtune and see what causes the slowdown on the desktop, but that's really deep stuff, since you'd also need to build krita on windows to do that.

And that is not a task for the faint-hearted. I think there are four people who have succesfully built Krita on Windows...

In any case, I'm closing this bug because we're at the end of our tether here.