Would it be possible to write a 3D game as large as World of Warcraft in pure Python?

BCharles picture BCharles · May 27, 2009 · Viewed 9.6k times · Source

Would it be possible to write a 3D game as large as World of Warcraft in pure Python? Assuming the use of DirectX / D3D bindings or OpenGL bindings.

If not, what would be the largest hold-up to doing such a project in Python? I know games tend to fall into the realm of C and C++ but sometimes people do things out of habit!

Any information would help satisfy my curiosity.

Edit:

Would the GIL post a major issue on 3d client performance? And what is the general performance penalty for using say, OpenGL or DirectX bindings vs natively using the libraries?

Answer

nosklo picture nosklo · May 27, 2009

Yes. How it will perform is another question.

A good development pattern would be to develop it in pure python, and then profile it, and rewrite performance-critical bottlenecks, either in C/C++/Cython or even python itself but with more efficient code.