lordmauve/pgzero

Initialise Pygame mixer lazily

Open

#110 ouverte le 12 août 2018

Voir sur GitHub
 (0 commentaires) (0 réactions) (0 assignés)Python (185 forks)batch import
enhancementgood first issue

Métriques du dépôt

Stars
 (472 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

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.

Guide contributeur