Do not initialize Pygame modules that we don't use (avoid sound underruns)
This commit is contained in:
parent
c244a4bc21
commit
8bf7503a39
4
main.py
4
main.py
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue