Bug 412597 - rotation performance issue
Summary: rotation performance issue
Status: RESOLVED NOT A BUG
Alias: None
Product: krita
Classification: Applications
Component: OpenGL Canvas (show other bugs)
Version: nightly build (please specify the git hash!)
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-04 09:59 UTC by til.schmitter
Modified: 2019-10-19 16:21 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
krita thinking hard for a long time (267.60 KB, image/png)
2019-10-04 09:59 UTC, til.schmitter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description til.schmitter 2019-10-04 09:59:28 UTC
Created attachment 123009 [details]
krita thinking hard for a long time

SUMMARY
when i use any rotation method using the pen for control, i get huge lag issues,freezing, but not crashing krita.
this is probably the fault of my old hardware, but rotating using the "rotate canvas left/right" commands works well, so there might be a way to improve the other rotation methods too...

STEPS TO REPRODUCE
- 500x500px single layer image
1. shift + space + lmb to rotate
2. rotating using the slider in the pop up pallette
3. shift + alt + space + lmb to rotate

OBSERVED RESULT
-freezes, ranging from 20 seconds to over 2 minutes (thermal throttling probably), no crashes.
-one of my two cpu cores at 100%, the other one is idle
-ram use normal, with 1.5gb left

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: ubuntu 14.04 lts, updated to 18.04 lts

ADDITIONAL INFORMATION
Fujitsu ST5112 tablet PC
RAM 2,9 GiB
Processor Intel® Core™2 Duo CPU U7700 @ 1.33GHz × 2 
Graphics Intel® 945GM 
OS Type 64-bit
Comment 1 til.schmitter 2019-10-04 10:00:49 UTC
git hash 38117a7
Comment 2 wolthera 2019-10-07 15:04:57 UTC
Not at all getting this on KDE Neon based on Ubuntu 18.04 with intel graphics. Could you share your system information? (help->system information for bugreports) This is mine:

Krita

 Version: 4.3.0-prealpha (git 079f26f)
 Languages: en_US, en_GB, nl
 Hidpi: true

Qt

  Version (compiled): 5.12.3
  Version (loaded): 5.12.3

OS Information

  Build ABI: x86_64-little_endian-lp64
  Build CPU: x86_64
  CPU: x86_64
  Kernel Type: linux
  Kernel Version: 4.15.0-64-generic
  Pretty Productname: KDE neon User Edition 5.16
  Product Type: neon
  Product Version: 18.04


Hardware Information

  GPU Acceleration: auto
  Memory: 7725 Mb
  Number of Cores: 8
  Swap Location: /tmp

OpenGL Info
 
  Vendor:  "Intel Open Source Technology Center" 
  Renderer:  "Mesa DRI Intel(R) UHD Graphics 620 (Kabylake GT2) " 
  Version:  "3.0 Mesa 19.0.8" 
  Shading language:  "1.30" 
  Requested format:  QSurfaceFormat(version 3.0, options QFlags<QSurfaceFormat::FormatOption>(DeprecatedFunctions), depthBufferSize 24, redBufferSize 8, greenBufferSize 8, blueBufferSize 8, alphaBufferSize 8, stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::DoubleBuffer, swapInterval 0, colorSpace QSurfaceFormat::DefaultColorSpace, profile  QSurfaceFormat::CompatibilityProfile) 
  Current format:    QSurfaceFormat(version 3.0, options QFlags<QSurfaceFormat::FormatOption>(DeprecatedFunctions), depthBufferSize 24, redBufferSize 8, greenBufferSize 8, blueBufferSize 8, alphaBufferSize 8, stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::DoubleBuffer, swapInterval 0, colorSpace QSurfaceFormat::DefaultColorSpace, profile  QSurfaceFormat::NoProfile) 
     Version: 3.0
     Supports deprecated functions true 
     is OpenGL ES: false 

QPA OpenGL Detection Info 
  supportsDesktopGL: true 
  supportsOpenGLES: true 
  isQtPreferOpenGLES: false 
== log ==
 Supported renderers: QFlags(0x2|0x4) 
Surface format preference list: 
* QSurfaceFormat(version 3.0, options QFlags<QSurfaceFormat::FormatOption>(DeprecatedFunctions), depthBufferSize 24, redBufferSize 8, greenBufferSize 8, blueBufferSize 8, alphaBufferSize 8, stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::DoubleBuffer, swapInterval 0, colorSpace QSurfaceFormat::DefaultColorSpace, profile  QSurfaceFormat::CompatibilityProfile) 
    2 
* QSurfaceFormat(version 3.0, options QFlags<QSurfaceFormat::FormatOption>(DeprecatedFunctions), depthBufferSize 24, redBufferSize 8, greenBufferSize 8, blueBufferSize 8, alphaBufferSize 8, stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::DoubleBuffer, swapInterval 0, colorSpace QSurfaceFormat::DefaultColorSpace, profile  QSurfaceFormat::CompatibilityProfile) 
    4 
Probing format... QSurfaceFormat::DefaultColorSpace 2 
Found format: QSurfaceFormat(version 3.0, options QFlags<QSurfaceFormat::FormatOption>(DeprecatedFunctions), depthBufferSize 24, redBufferSize 8, greenBufferSize 8, blueBufferSize 8, alphaBufferSize 8, stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::DoubleBuffer, swapInterval 0, colorSpace QSurfaceFormat::DefaultColorSpace, profile  QSurfaceFormat::CompatibilityProfile) 
    2
Comment 3 til.schmitter 2019-10-07 15:37:09 UTC
sure.
maybe it has to do with opengl support?

Krita

 Version: 4.3.0-prealpha (git 38117a7)
 Languages: en_US
 Hidpi: false

Qt

  Version (compiled): 5.12.5
  Version (loaded): 5.12.5

OS Information

  Build ABI: x86_64-little_endian-lp64
  Build CPU: x86_64
  CPU: x86_64
  Kernel Type: linux
  Kernel Version: 4.15.0-58-generic
  Pretty Productname: Ubuntu 18.04.2 LTS
  Product Type: ubuntu
  Product Version: 18.04


Hardware Information

  GPU Acceleration: none
  Memory: 2992 Mb
  Number of Cores: 2
  Swap Location: /tmp

OpenGL Info
 
  Vendor:  "Intel Open Source Technology Center" 
  Renderer:  "Mesa DRI Intel(R) 945GM " 
  Version:  "1.4 Mesa 19.0.2" 
  Shading language:  "1.20" 
  Requested format:  QSurfaceFormat(version 2.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize -1, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize -1, samples -1, swapBehavior QSurfaceFormat::DefaultSwapBehavior, swapInterval 1, colorSpace QSurfaceFormat::DefaultColorSpace, profile  QSurfaceFormat::NoProfile) 
  Current format:    QSurfaceFormat(version 1.4, options QFlags<QSurfaceFormat::FormatOption>(DeprecatedFunctions), depthBufferSize 0, redBufferSize 8, greenBufferSize 8, blueBufferSize 8, alphaBufferSize 0, stencilBufferSize 0, samples -1, swapBehavior QSurfaceFormat::DefaultSwapBehavior, swapInterval 1, colorSpace QSurfaceFormat::DefaultColorSpace, profile  QSurfaceFormat::NoProfile) 
     Version: 1.4
     Supports deprecated functions true 
     is OpenGL ES: false 

QPA OpenGL Detection Info 
  supportsDesktopGL: false 
  supportsOpenGLES: false 
  isQtPreferOpenGLES: false 
== log ==
 Supported renderers: QFlags() 
Surface format preference list: 
* QSurfaceFormat(version 3.0, options QFlags<QSurfaceFormat::FormatOption>(DeprecatedFunctions), depthBufferSize 24, redBufferSize 8, greenBufferSize 8, blueBufferSize 8, alphaBufferSize 8, stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::DoubleBuffer, swapInterval 0, colorSpace QSurfaceFormat::DefaultColorSpace, profile  QSurfaceFormat::CompatibilityProfile) 
    2 
* QSurfaceFormat(version 3.0, options QFlags<QSurfaceFormat::FormatOption>(DeprecatedFunctions), depthBufferSize 24, redBufferSize 8, greenBufferSize 8, blueBufferSize 8, alphaBufferSize 8, stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::DoubleBuffer, swapInterval 0, colorSpace QSurfaceFormat::DefaultColorSpace, profile  QSurfaceFormat::CompatibilityProfile) 
    4
Comment 4 wolthera 2019-10-07 15:50:50 UTC
Hm... I am seeing 'GPU Acceleration: none'

Can you go to settings->Configure Krita->display and then enable graphics acceleration, and see if that fixes things?
Comment 5 til.schmitter 2019-10-07 16:17:59 UTC
i am unable to enable canvas graphics acceleration... (i also tried dist-upgrade to get a newer opengl version with no success)
Comment 6 til.schmitter 2019-10-07 16:51:10 UTC
i also tried editing kritadisplayrc and kritarc with no results:
openGLrenderer=auto (was false)
useOpenGL=true (was false)
useOpenGLTextureBuffer=true (was false)
Comment 7 til.schmitter 2019-10-07 16:52:13 UTC
the graphics acceleration tab in the settings is still grayed out when i open krita, no changes here.
Comment 8 wolthera 2019-10-07 17:12:27 UTC
Yeah, I'm afraid OpenGL 1.4 is too low. It's very unlikely that we'll be improving the speed of the non-graphics accelerated canvas, and indeed using the hotkeys instead of using shift+space might be the best thing to avoid slowdowns for now. :(
Comment 9 til.schmitter 2019-10-07 18:15:42 UTC
alright, thanks anyway...
Comment 10 til.schmitter 2019-10-19 16:21:36 UTC
this might be of interest: i downgraded to krita 4.2.7.1 again and it works better with rotation on this device...