Run a full GC cycle after refreshing the display.

This commit is contained in:
Nahuel Lofeudo 2023-05-06 10:26:09 +01:00
parent 4c38a8dc1e
commit 766e9ae780
1 changed files with 2 additions and 0 deletions

View File

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