lordmauve/pgzero

Initialise Pygame mixer lazily

オープン

#110 opened on 2018/08/12

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)Python (211 件のフォーク)batch import
enhancementgood first issue

Repository metrics

Stars
 (608 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

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.

コントリビューターガイド