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

This commit is contained in:
Nahuel Lofeudo 2023-07-09 22:01:49 +01:00
parent c244a4bc21
commit 8bf7503a39
1 changed files with 3 additions and 1 deletions

View File

@ -120,7 +120,9 @@ def main():
config = Config()
# Initialise graphics context
pygame.init()
pygame.display.init()
pygame.font.init()
window = init_screen()
pygame.font.init()
font = pygame.font.Font(TEXT_FONT, TEXT_SIZE)