From 766e9ae780182b5ea935ff094975587364996e80 Mon Sep 17 00:00:00 2001 From: Nahuel Lofeudo Date: Sat, 6 May 2023 10:26:09 +0100 Subject: [PATCH] Run a full GC cycle after refreshing the display. --- main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.py b/main.py index 0d2efed..2ed2b80 100755 --- a/main.py +++ b/main.py @@ -3,6 +3,7 @@ from config import Config from curses import COLOR_GREEN, COLOR_RED from datetime import datetime import os +import gc from glob import glob import pygame from pygame.locals import * @@ -160,6 +161,7 @@ def main(): update_screen(config, updates) pygame.display.flip() + gc.collect() # Display update ends sleep(0.2)