https://bugs.documentfoundation.org/show_bug.cgi?id=159175

--- Comment #14 from Patrick Luby (volunteer) <[email protected]> ---
(In reply to Patrick Luby (volunteer) from comment #13)
> Created attachment 194810 [details]
> Debug patch that limits CGLayers and their underlying CGBitmaps to only 1x1
> pixels

After some time looking through the leak detection output in the Instruments
application, I noticed that several hundred MB of memory was allocated for
CGLayer and CGBitmap instances even though I was using Skia/Metal. Skia/Metal
and Skia/Raster have their own equivalent offscreen drawing surfaces so I would
think that those instances would only be used when Skia is disabled.

So I used the debug patch in attachment #194810 to limit CGLayer and CGBitmap
instances to 1 x 1 pixels. Running LibreOffice from my local master build with
the debug patch dropped maximum memory usage by 2/3 for both Skia/Metal and
Skia/Raster.

Apparently Skia/Metal does not need these native instances and everything is
drawn normally with the debug patch. Skia/Raster, however, draws only a single
pixel with the debug patch so it still needs the native instances.

So, the next step is to see if I can figure out why Skia/Raster needs those
native instances.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to