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.

贡献者指南