[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [krita] [Bug 342336] Issues with Memory
From:       Dmitry Kazakov <dimula73 () gmail ! com>
Date:       2015-01-06 6:56:20
Message-ID: bug-342336-17878-vVhKDyOC9U () http ! bugs ! kde ! org/
[Download RAW message or body]

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

--- Comment #8 from Dmitry Kazakov <dimula73@gmail.com> ---
Git commit b519932e99079f37f72b97c665de7efade6227dd by Dmitry Kazakov.
Committed on 06/01/2015 at 06:47.
Pushed by dkazakov into branch 'calligra/2.9'.

Add compressing of the update requests queue in KisCanvas2

In some rare circumstances (when there are too many updates pending)
the Qt's queue of sigCanvasCacheUpdated() might be overloaded with events.
In worst case such queue might occupy up to 900MiB in RAM in chunks
of 256x256px. That might shatter not-too-high-end systems, because such
memory request is done almost instantly in multithreaded way.

So now we have a special compressor object that ensures the update requests
are not repeated. It also solves a few performance problems because now
we can upload up to 80% (in special cases only, real numbers much lower)
less memory into GPU memory.

M  +1    -0    krita/ui/CMakeLists.txt
M  +45   -32   krita/ui/canvas/kis_canvas2.cpp
M  +2    -2    krita/ui/canvas/kis_canvas2.h
A  +58   -0    krita/ui/canvas/kis_canvas_updates_compressor.cpp     [License:
GPL (v2+)]
A  +42   -0    krita/ui/canvas/kis_canvas_updates_compressor.h     [License:
GPL (v2+)]
M  +1    -1    krita/ui/canvas/kis_image_pyramid.cpp
M  +3    -3    krita/ui/canvas/kis_prescaled_projection.cpp
M  +13   -0    krita/ui/canvas/kis_update_info.cpp
M  +10   -1    krita/ui/canvas/kis_update_info.h
M  +2    -0    krita/ui/opengl/kis_opengl_image_textures.cpp

http://commits.kde.org/calligra/b519932e99079f37f72b97c665de7efade6227dd

-- 
You are receiving this mail because:
You are watching all bug changes.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic