Skip to content

WIP: Reduce number of tiles for big images with openGL

Ivan Yossi requested to merge ivany/krita:openGL_adaptTileSize into master

Every call to glDrawArrays exchanges data between CPU and GPU, keeping the number low allows for big images to render quickly. This is important on systems that drop stylus events to prevent jagged lines.

The calulation keeps the tile size to a minimum of 1, this is ok on most cases. Also we avoid using the MAX_TEXTURE_SIZE, as it also provkes some slowdown issues.

BUG:414025

  • Tile size changes in relation to the total image size.
  • The calculation is simple, but it could be improved to do 4 instead of the minimum 1 tile
  • the patch allows for smooth painting on macOS on most image sizes.
Edited by Ivan Yossi

Merge request reports