Run a full GC cycle after refreshing the display.
This commit is contained in:
1 parent
4c38a8dc1e
commit
766e9ae780
1 file changed
+2
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user