0

I am creating a game engine using Pygame on Windows, but my program uses a lot of CPU-intensive loops, so it is quite slow at rendering. I am using the drawPixel function to make my own custom renderer, so I can do pixel-perfect collision more programmatically, so I am using PyPy to speed up my loops. I know though that all Python modules you use have to be put in the PyPy folder, but I can't persuade the pygame installer (Either the source "setup.py" or the old installer (The fullscreen one) or the new installer to install to a custom directory.

I would either like help getting setup.py to install in a specific directory, or installing pygame in a custom directory.

Thanks in advance,

VeryAwkwardCake

VeryAwkwardCake
  • 339
  • 1
  • 3
  • 11
  • I don't know how to do what your asking (you might be able to just move the pygame folder found in site-packages to wherever you want) but I do very much doubt that PyPy will speed up what you are trying to do. This is a _very_ inefficient way to render and your bottleneck will not be fixed by precompiling code. – KSab Nov 25 '14 at 22:31
  • Maybe you want `pygame-cffi` instead of `pygame` for pypy. – Armin Rigo Nov 25 '14 at 22:31

0 Answers0