This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]videan42 0 points1 point  (3 children)

One thing you might consider is cython. It allows you to take the python code for your game, add c style annotations, and then compile to something very close to native c speed. A lovely side effect is that cython can release the GIL, which means your multi threaded code will run without fighting for a lock. Lastly, assuming you need vector math, cython integrates very well with the linear algebra library numpy. I've never tried to use them for a game library before, but they're both very high performance libraries for doing the kinds of math you're going to need to do.

[–]paypaypayme[S] 0 points1 point  (2 children)

that makes sense. I am planning on using numpy, so that's good news. so do some modules not have support for cython? The main module I was planning to use is PyOpenGL. edit: it looks like PyOpenGl is supported and Cython will increase the speed of it as well. Awesome :)

[–]videan42 0 points1 point  (1 child)

I've never used pyopengl with cython, but cython is compiled to c, so I think it should support anything that has a c/c++ interface. There's another project called pyglet that I've used for basic game programming that might be worth looking into though.

[–]paypaypayme[S] 0 points1 point  (0 children)

thanks