[Libreoffice-bugs] [Bug 103571] macOS 100% CPU usage when minimizing screen if multiple documents are opened

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Fri Feb 23 11:51:45 UTC 2018


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

--- Comment #53 from Michael Meeks <michael.meeks at collabora.com> ---
Nice trace - so; I imagine that DisplayChanged is presumably the right thing to
emit only when something changed - eg. the space available for the app (does
that happen when the dock re-sizes ?

Also - I'm suspicious of:

svx/source/tbxctrls/tbcontrl.cxx-    else if ( ( rDCEvt.GetType() ==
DataChangedEventType::FONTS ) ||
svx/source/tbxctrls/tbcontrl.cxx:              ( rDCEvt.GetType() ==
DataChangedEventType::DISPLAY ) )

I guess this is perhaps to handle things like font-hint changes on Linux
(perhaps) - and I imagine that this particular font combo box is -very-
expensive to setup & re-render.

Might be nice to just use FONTS for that - and try to detect if any display
settings affect font rendering - and emit a FONTS changed if they do (?) =)

The:
            // HACK: Comparing is incomplete

comment in lcl_GetDocFontList looks particularly interesting to investigate I
guess =) if we can avoid re-building it I imagine life is far better.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20180223/249cb21f/attachment.html>


More information about the Libreoffice-bugs mailing list