pyGame full core usage in simple loop

前端 未结 1 1951
独厮守ぢ
独厮守ぢ 2021-01-01 16:22

Edit

This is an open issue and appears to be related to alsa audio.

A workaround is to shutdown the audio mixer, or install pyGame from sour

相关标签:
1条回答
  • 2021-01-01 17:24

    We fixed this in pygame 2. It does not take 100% of a CPU core on some linux systems anymore.

    python3 -m pip install pygame --upgrade

    As of pygame 2.0.0, it may be better to install pygame from source on some linux systems.

    cheers,

    0 讨论(0)
提交回复
热议问题