lordmauve/pgzero

Initialise Pygame mixer lazily

Open

#110 aberto em 12 de ago. de 2018

Ver no GitHub
 (0 comments) (0 reactions) (0 assignees)Python (185 forks)batch import
enhancementgood first issue

Métricas do repositório

Stars
 (472 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

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.

Guia do colaborador