lordmauve/pgzero

Initialise Pygame mixer lazily

Open

#110 aperta il 12 ago 2018

Vedi su GitHub
 (0 commenti) (0 reazioni) (0 assegnatari)Python (185 fork)batch import
enhancementgood first issue

Metriche repository

Star
 (472 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Initialising the mixer causes Pygame to burn one whole CPU on Linux:

https://github.com/pygame/pygame/issues/331

Pygame Zero should initialise the mixer lazily (eg. when sounds are loaded) to avoid suffering performance problems if the mixer is not needed.

Guida contributor