diff options
Diffstat (limited to 'sd/source/ui/slideshow/slideshowimpl.cxx')
-rw-r--r-- | sd/source/ui/slideshow/slideshowimpl.cxx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sd/source/ui/slideshow/slideshowimpl.cxx b/sd/source/ui/slideshow/slideshowimpl.cxx index 27b6cdb76913..a0c6a2cf5672 100644 --- a/sd/source/ui/slideshow/slideshowimpl.cxx +++ b/sd/source/ui/slideshow/slideshowimpl.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: slideshowimpl.cxx,v $ - * $Revision: 1.57 $ + * $Revision: 1.57.10.1 $ * * This file is part of OpenOffice.org. * @@ -1861,7 +1861,12 @@ IMPL_LINK( SlideshowImpl, updateHdl, Timer*, EMPTYARG ) else */ { - const float MIN_UPDATE = 0.05f; // do not wait less than 50 ms + // Avoid busy loop when the previous call to update() + // returns 0. The minimum value is small enough to allow + // high frame rates. Values larger than 0 are typically + // also larger then the small minimum value and thus are + // used to determine the frame rate. + const float MIN_UPDATE = 0.01f; // 10ms corresponds to 100 frames per second. if( fUpdate < MIN_UPDATE ) fUpdate = MIN_UPDATE; else |