lordmauve/pgzero

Initialise Pygame mixer lazily

Open

#110 建立於 2018年8月12日

在 GitHub 查看
 (0 留言) (0 反應) (0 負責人)Python (185 fork)batch import
enhancementgood first issue

倉庫指標

Star
 (472 star)
PR 合併指標
 (30 天內沒有已合併 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.

貢獻者指南