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

--- Comment #13 from Patrick (volunteer) <[email protected]> ---
(In reply to Patrick (volunteer) from comment #11)
> I have implemented a quick and dirty way to fix this bug:
> 
> https://gerrit.libreoffice.org/c/core/+/186530
> 
> The tradeoff in this patch is that it moves cached alpha blended outside of
> the Skia image cache. This will cause the overall memory usage to increase
> as it keeps the cached image alive longer and it won't be deleted until a
> bitmap is revoked from the GraphicMemoryLimit cache or the bitmap's document
> is closed.
> 
> Don't know if there is a reliable way to reduce the increased number of
> cached images.

I ran the Instruments both with and without the patch and, if I open attachment
159163, view each of the slides, run a slideshow, and then close the document,
memory usage starts and ends with rough the same amount.

But the peak memory usage grew by more than a GB (1.62 GB without patch vs.
2.71 GB with patch).

So, when I get some some time, I will try another approach: defer removal of an
image from the Skia image cache if that image has been drawn within the last N
seconds. My hope is that N can be a short period of time (e.g. 5 - 10 seconds)
which would allow temporary increase in the cache size but the temporary
increase won't grow so high as it does in the patch.

I'll post when I have more news to report.

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

Reply via email to