summaryrefslogtreecommitdiffstats
path: root/sw/source/core/layout/objectformattertxtfrm.hxx
diff options
context:
space:
mode:
authorLuke Deller <luke@deller.id.au>2021-04-09 09:08:37 +1000
committerSamuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>2022-01-21 09:15:09 +0100
commit74d6225836b910b7b71d552c433352c9de5db329 (patch)
tree173a9969959d6361aad58fe4ba1c39fa5bc2541d /sw/source/core/layout/objectformattertxtfrm.hxx
parentUpdate .gitreview (diff)
downloadcore-74d6225836b910b7b71d552c433352c9de5db329.tar.gz
core-74d6225836b910b7b71d552c433352c9de5db329.zip
tdf#141556 Fix 100% CPU usage in Writer idle loop
Do not interrupt the idle layout processing unnecessarily, because if it is continually interrupted before making enough progress then it will keep resuming at the same page, never finishing, constantly using CPU. This is achieved with two changes: - Revert "tdf#123583 use TaskStopwatch for Writer Idle loop" (commit 383032c50a3e3354f04200ce984a47ab9d2c5c67) which introduced a stopwatch timer to interrupt idle processing every 50ms. This reversion restores the previous behaviour where idle processing is interrupted only when there is an input event. - Filter out TIMER events so that they do not interrupt the idle loop; this fixes both tdf#123583 and tdf#141556 Conflicts: sw/source/core/inc/layact.hxx sw/source/core/layout/layact.cxx Change-Id: Ic989631e5f32199209d64b66b72059253fc0167a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113825 Tested-by: Jenkins Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de> Reviewed-by: Miklos Vajna <vmiklos@collabora.com> (cherry picked from commit 0fedac18214a6025401c4c426466a5166553e8ec) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114944 (cherry picked from commit b33148071ae6256845352f8625e58b1ab95be41c)
Diffstat (limited to 'sw/source/core/layout/objectformattertxtfrm.hxx')
0 files changed, 0 insertions, 0 deletions