[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Pygame to C/C++?



Have you profiled your code to see what the bottleneck is ?
If you see Python problem, you could use psyco. Sometimes it gives up to
50x.
If you have blitting problem, you may work on optimizing your surfaces so
blits go faster.
If you use Numeric to have some cool features, try to write your own C
module instead.
Personally I don't think using C++ will make any difference if you don't
know where's the problem is.
Anyway, good luck.
Dmitry/

Subject: [pygame] Pygame to C/C++?


> I'm thinking of rewriting some of my Python/Pygame code into C (or C++?)
> with SDL to get a speed improvement. I haven't written anything in C/C++
> in a long time but think I could pick it back up. Does anyone have any
> tutorials of rewriting that kind of thing?
>