svx/source/sdr/animation/scheduler.cxx | 1 + 1 file changed, 1 insertion(+)
New commits: commit b8aaac402dfe551fb63eabb06386a4631e28300a Author: Luboš Luňák <l.lu...@collabora.com> AuthorDate: Tue Apr 7 16:59:26 2020 +0200 Commit: Luboš Luňák <l.lu...@collabora.com> CommitDate: Wed Apr 8 11:54:16 2020 +0200 run svx animations at POST_PAINT priority (tdf#131753) Skia VCL drawing (and GL too) set first drawing to POST_PAINT, so that the contents aren't drawn prematurely the first time, but only after the first paint has been finished. But animations constantly running at a normal priority will starve that. It doesn't make sense to run animations at REPAINT or higher priorities anyway, if LO is busy painting then animating more will just make it even busier. Change-Id: I6ee3356c9ef9acb577f8d81976aa3df968ca2155 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91836 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lu...@collabora.com> diff --git a/svx/source/sdr/animation/scheduler.cxx b/svx/source/sdr/animation/scheduler.cxx index 1994dcc0b1eb..21a28fe72f9f 100644 --- a/svx/source/sdr/animation/scheduler.cxx +++ b/svx/source/sdr/animation/scheduler.cxx @@ -49,6 +49,7 @@ namespace sdr::animation mnDeltaTime(0), mbIsPaused(false) { + SetPriority(TaskPriority::POST_PAINT); } Scheduler::~Scheduler() _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits