mirror of
https://github.com/Febbweiss/mopidy-touchscreen.git
synced 2026-03-05 06:35:43 +00:00
10 FPS
We will save CPU. (In my computer around %10 less CPU is used now) Some adjustments so that the 10 FPS are not noticeable
This commit is contained in:
@@ -62,7 +62,7 @@ class TouchScreen(pykka.ThreadingActor, core.CoreListener):
|
||||
def start_thread(self):
|
||||
clock = pygame.time.Clock()
|
||||
while self.running:
|
||||
clock.tick(8)
|
||||
clock.tick(10)
|
||||
self.screen.blit(self.screen_manager.update(), (0, 0))
|
||||
pygame.display.flip()
|
||||
for event in pygame.event.get():
|
||||
|
||||
Reference in New Issue
Block a user