Do not initialize Pygame modules that we don't use (avoid sound underruns)

This commit is contained in:
2023-07-09 22:01:49 +01:00
parent c244a4bc21
commit 8bf7503a39
+3 -1
View File
@@ -120,7 +120,9 @@ def main():
config = Config() config = Config()
# Initialise graphics context # Initialise graphics context
pygame.init() pygame.display.init()
pygame.font.init()
window = init_screen() window = init_screen()
pygame.font.init() pygame.font.init()
font = pygame.font.Font(TEXT_FONT, TEXT_SIZE) font = pygame.font.Font(TEXT_FONT, TEXT_SIZE)