Bug 357765 - Brush lag / slowdown for some rotation/zoom combinations
Summary: Brush lag / slowdown for some rotation/zoom combinations
Status: CLOSED DUPLICATE of bug 355104
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: 2.9.10
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-09 22:37 UTC by megaflooder1
Modified: 2016-04-21 21:01 UTC (History)
2 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 megaflooder1 2016-01-09 22:37:51 UTC
This problem happens on a rather old machine (athlon 64 6400+x2, 4GB memory, AMD radeon 4670 HD [but still appeared with a NVidia 630 GT]), on which brush movement is still usually perfectly smooth.

When OpenGL is activated and canvas is rotated, at some high zoom range (e.g 1000% to 1500% for a 4096x4096 canvas, though these values seems to vary), the brush become laggy and its position update can become as slow as two or three per seconds, except is rotation value is /near/ 0, 90, 180 or 270 (±5°) , in which case no slowdown is visible. Sometimes, the problem also disappears at very high zoom values (2000+) and is never present at all for small zoom values (<1000).

Using texture buffer or not, changing interpolation mode has no influence.

However, this never happens when OpenGL is disabled, no lag is to report. However, it makes zooming and rotating so slow that it doesn't represent the best workaround.

Reproducible: Always

Steps to Reproduce:
1. Open Krita x64, create a 4096x4096 canvas (tested in 8-bit grayscale, with a white canvas color)
2. Be sure to use OpenGL for canvas rendering
3. Do some scribbling to see the canvas zoom/rotations with the classical pen tip brush.
4. Rotate a bit (~30°), zoom in slowly, while being attentive to the fluidity.
5. When lag starts to become noticeable, stop zooming and try to draw some lines, the brush should be laggy.
5. Rotate near 0° while keeping the same zoom value, check the brush fluidity again, it should be perfectly responsive now.


Actual Results:  
Near 1000+, the canvas starts to lag during zoom itself , and it will lag more and more until reaching a certain zoom value and instantly become responsive again.

Right before this value, the canvas will lag the most, and brush is near unusable, until the canvas is rotated to an almost horizontal/vertical angle, in which  case lag disappears entirely.

Expected Results:  
Well, being responsive for every zoom/rotation values, since the lag phenomenon isn't always present, only when certain conditions are met.

The configuration : 
Athlon 6400+x2
AMD radeon 4670 HD (formerly a NVidia 630 GT)
4GB memory
Running Windows 7 Professionnal Edition 64 bits
Using a Wacom Intuos Creative Pen & Touch and Krita 2.9.10 (labelled 2.9.9 on splash screen) 64 bits
Comment 1 Halla Rempt 2016-01-10 10:43:20 UTC
Hi,

Thanks for your report. I'm afraid that there isn't a whole lot we can do, though. From your description it's definitely an issue with the combination of krita, your GPU and driver. I'm suspecting that at high zoom levels, the GPU has trouble scaling the textures. You could try other settings for the scaling method, that might help.
Comment 2 megaflooder1 2016-01-10 21:15:09 UTC
(In reply to Boudewijn Rempt from comment #1)
> Hi,
> 
> Thanks for your report. I'm afraid that there isn't a whole lot we can do,
> though. From your description it's definitely an issue with the combination
> of krita, your GPU and driver. I'm suspecting that at high zoom levels, the
> GPU has trouble scaling the textures. You could try other settings for the
> scaling method, that might help.

Hello,

Thank you for your quick answer. Are you sure about the GPU, though? I just checked with a slighly different rig (3GB memory, windows vista 64 bits, AMD Athlon64 x2 5050e) equipped with the said Nvidia GT 630 and the issue is exactly the same. No access to a recent / Intel machine alas. Also, it's probably an issue with the GPU and texture scaling, but the lag abruptely disappear past a certain, very high zoom level, which is quite weird...
Comment 3 megaflooder1 2016-01-10 21:17:11 UTC
Also I forgot to say, that changing the scaling mode has no influence on the lag. Sorry for the double post.
Comment 4 megaflooder1 2016-01-11 12:01:12 UTC
In fact, I got access to a recent, i7 powered computer ( windows 8, 16gb memory, NVIDIA 680 GTX) and the issue is still here. It's just less noticeable because the machine capabilities will compensate for the performance drop.
Comment 5 Raghavendra kamath 2016-04-09 07:00:02 UTC
I think this is solved please check this bug report which sounds similar - https://bugs.kde.org/show_bug.cgi?id=355104 . try the new alpha releases to test if this issue persists. If it is solved we can close this.
Comment 6 megaflooder1 2016-04-19 22:17:35 UTC
According to the description, this issue was the same as mine.

And I just checked the Krita 3.0 alpha builds for windows, the problem doesn't appear anymore ! Thanks to everyone who worked on it, and took the time to review this bug report.
Comment 7 Raghavendra kamath 2016-04-20 04:21:50 UTC
Thanks closing this bug report then :)

*** This bug has been marked as a duplicate of bug 355104 ***
Comment 8 megaflooder1 2016-04-21 21:01:27 UTC
Whoops, fixed.