diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2025-03-13 18:37:54 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2025-03-17 07:15:15 +0100 |
commit | 8a17b7f0a679ebf21bcfb425186b205d996d129b (patch) | |
tree | ab0b3f405b3a14ba51496b1ffbe6ef7106784883 /drawinglayer/source/primitive2d/softedgeprimitive2d.cxx | |
parent | f382c1a267a93539f3c169530780889336d20b25 (diff) |
tdf#131595 Improve drawinglayer flushing mechanism.
Which dramatically speeds up switching between sheets in
the referenced document.
The problem here is that we have a timer for each buffered primitive.
And we have a lot of primitives here.
And the TimerManager does not scale well to lots and lots of timer,
because it uses a linked list.
So this change modifies the flushing mechanism, trading off some
precision for some speed.
Change-Id: I66a744f06af9b08d4e9b797d11db8d22f4060789
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/182876
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'drawinglayer/source/primitive2d/softedgeprimitive2d.cxx')
-rw-r--r-- | drawinglayer/source/primitive2d/softedgeprimitive2d.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drawinglayer/source/primitive2d/softedgeprimitive2d.cxx b/drawinglayer/source/primitive2d/softedgeprimitive2d.cxx index df05771f27a6..ed0348e13465 100644 --- a/drawinglayer/source/primitive2d/softedgeprimitive2d.cxx +++ b/drawinglayer/source/primitive2d/softedgeprimitive2d.cxx @@ -40,7 +40,7 @@ SoftEdgePrimitive2D::SoftEdgePrimitive2D(double fRadius, Primitive2DContainer&& , maLastClippedRange() { // activate callback to flush buffered decomposition content - setCallbackSeconds(15); + activateFlushOnTimer(); } bool SoftEdgePrimitive2D::operator==(const BasePrimitive2D& rPrimitive) const |