Implemented delayed partial rect update for image buffers
authorSergey Sharybin <sergey.vfx@gmail.com>
Mon, 11 Feb 2013 13:24:35 +0000 (13:24 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Mon, 11 Feb 2013 13:24:35 +0000 (13:24 +0000)
commit7fcc1ac48b405f8f6ef0ab7b7cd3dba1f5c6b24d
tree0240cceba1b492da7c3712d56fab6803124fb306
parent30a18589e20206cee8ec5d7e54fcdce82feb09a7
Implemented delayed partial rect update for image buffers

Used by image painting mode, so every brush step would mark area
if affected on, but actual color space conversion would happen
later when actually displaying image.

Implemented as a rcti stored in ImBuf which is getting merged with
partial rect passed to IMB_partial_display_buffer_update_delayed.

This makes painting as fast as it currently possible and finally
solves #33935: Texture painting slow down with mouse, but not with tablet
source/blender/editors/sculpt_paint/paint_image.c
source/blender/imbuf/IMB_colormanagement.h
source/blender/imbuf/IMB_imbuf_types.h
source/blender/imbuf/intern/colormanagement.c