Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Parker <zanders3>2022-07-25 08:56:17 +0300
committerJeroen Bakker <jeroen@blender.org>2022-07-25 09:14:32 +0300
commit44258b5ad0737140d7d1026cc540e3f94ea05566 (patch)
treee84ca6efd3946df7397eec8f6e582a3cc76386bc /source/blender/editors/space_image/CMakeLists.txt
parent7808ee9bd73d7eb286d52ff5a28592dfffbccf40 (diff)
Undo: Improve image undo performance
When texture painting a lot of time is spent in ED_image_paint_tile_find. This fixes stores the PaintTiles in a blender::Map making ED_image_paint_tile_find an O(1) rather than O(n) operation. When using threading the locking should happen during read as well, still this gives a boost in performance as the read is now much faster. Reviewed By: jbakker Maniphest Tasks: T99546 Differential Revision: https://developer.blender.org/D15415
Diffstat (limited to 'source/blender/editors/space_image/CMakeLists.txt')
-rw-r--r--source/blender/editors/space_image/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_image/CMakeLists.txt b/source/blender/editors/space_image/CMakeLists.txt
index 39fb41245bf..c6a1a6a77b4 100644
--- a/source/blender/editors/space_image/CMakeLists.txt
+++ b/source/blender/editors/space_image/CMakeLists.txt
@@ -28,7 +28,7 @@ set(SRC
image_edit.c
image_ops.c
image_sequence.c
- image_undo.c
+ image_undo.cc
space_image.c
image_intern.h