https://bugs.kde.org/show_bug.cgi?id=364848

--- Comment #5 from Dmitry Kazakov <dimul...@gmail.com> ---
Git commit 550ff114cbae42c33edb667981d091e2ac4346f5 by Dmitry Kazakov.
Committed on 15/07/2016 at 10:01.
Pushed by dkazakov into branch 'kazakov/memory-optimizations'.

Release all the tile pools forcefully when a document is closed

This approach is a bit hackish, but it is the best thing we can do.
When the document is closed and the pool still contains a few tiles,
we artificially "swap-out" the tiles into a QList, purge the data in
the tile data pools and "swap-in" the tiles back.

Surely, we will not get an ACM award for this solution, but at least it
works ;)

M  +72   -9    libs/image/tiles3/kis_tile_data.cc

http://commits.kde.org/krita/550ff114cbae42c33edb667981d091e2ac4346f5

--- Comment #6 from Dmitry Kazakov <dimul...@gmail.com> ---
Git commit a8f901e40fb7de35a29a4b4803ccbacab802c8bd by Dmitry Kazakov.
Committed on 15/07/2016 at 10:01.
Pushed by dkazakov into branch 'kazakov/memory-optimizations'.

Fix releasing the node pixes memory when closing the document

KisNodeFilterProxyModel should not store any pointers after the
image has been closed.

M  +1    -1    libs/image/kis_default_bounds.cpp
M  +9    -0    libs/ui/kis_node_filter_proxy_model.cpp
M  +2    -0    libs/ui/kis_node_filter_proxy_model.h
M  +1    -1    plugins/dockers/defaultdockers/kis_layer_box.cpp

http://commits.kde.org/krita/a8f901e40fb7de35a29a4b4803ccbacab802c8bd

--- Comment #7 from Dmitry Kazakov <dimul...@gmail.com> ---
Git commit 54282a72cee6256f29be9970793b32f6ffae6aa1 by Dmitry Kazakov.
Committed on 15/07/2016 at 10:01.
Pushed by dkazakov into branch 'kazakov/memory-optimizations'.

Implement data pool for the chunks in openGL canvas updates

This patch implements KisTextureTileInfoPool. A special object that keeps
track of all the chunks allocated during the openGL canvas updates.

This class is also capable of tracking multiple openGL tile sizes
and color space pixel sizes.

It should fix the most of the memory fragmentation problems,
especially on Windows.
Related: bug 363334

M  +0    -1    libs/ui/CMakeLists.txt
M  +8    -1    libs/ui/opengl/kis_opengl_image_textures.cpp
M  +4    -0    libs/ui/opengl/kis_opengl_image_textures.h
A  +156  -0    libs/ui/opengl/kis_texture_tile_info_pool.h     [License: GPL
(v2+)]
D  +0    -22   libs/ui/opengl/kis_texture_tile_update_info.cpp
M  +58   -72   libs/ui/opengl/kis_texture_tile_update_info.h

http://commits.kde.org/krita/54282a72cee6256f29be9970793b32f6ffae6aa1

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to