Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在基于 OpenGL 的游戏中使用 pyglet,但它是目前最快的具有 python 包装器的库吗?我可以创建一个 C++ 扩展并使用任何 C++ 多媒体库。是否有任何 C++ 库值得投入时间或不值得额外的工作?
谢谢你。
Pygame是SDL库的 python 包装器,广泛用于游戏开发并提供 OpenGL、声音和输入管理。据我所知,至少 SDL 相当快,并且包装器只是封装了用于 python 使用的二进制功能。根据您的使用情况,您可以实现高速。
我会说(Py)SFML,但我不确定您的多媒体要求是什么。