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:
Ander
2015-01-10 00:51:57 +01:00
parent 28169f1dc7
commit 6864d57742
3 changed files with 16 additions and 8 deletions

View File

@@ -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():