From e44664585522bf28248479f17aaeacd764ec304d Mon Sep 17 00:00:00 2001 From: anxuae Date: Mon, 8 May 2023 22:44:00 +0200 Subject: [PATCH] Update sprite threshold --- pygame_imslider/slider.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pygame_imslider/slider.py b/pygame_imslider/slider.py index 568bbfa..bcd887e 100755 --- a/pygame_imslider/slider.py +++ b/pygame_imslider/slider.py @@ -87,8 +87,8 @@ def __init__(self, size, stype=STYPE_SLIDE, per_page=1, per_move=0, focus=True, # On Raspberry Pi, the time to update dirty sprites is long (120-180ms # tested), increasing the treshold permits to avoid blitting full screen # at each draw() call. - self.sprites.set_timing_threshold(200) - self.layout.set_timing_threshold(200) + self.sprites.set_timing_threshold(600) + self.layout.set_timing_threshold(600) @property def per_page(self):