Ok thanks but i saw that psyco do not supports 2.7 release of python so i
think i ll not try it for the moment.

Ok so thanks everybody be sure to see me again on this mail list, i ll of
course do my best to read doc to solve my problem the best i can, it s
always a pretty good exercice for my english haha

2010/11/24 Kris Schnee <ksch...@xepher.net>

> On 2010.11.24 1:53 PM, Nathan BIAGINI wrote:
>
>> Ok thanks to reply so fast :) yeah of course, it seems obvious now but i
>> didn't know there is a way to manage keyboard state without the common
>> event loop.
>> I ll use this created topic to ask something else about the optimization
>> of a game written with pygame. Restrict frames per second with
>> clock.tick(xx) and only update dirty rects (in case of static
>> background) is enough for a quite "simple" 2D game? Or there re more
>> optimizations to do? I don't try to reach perfect performance, only want
>> to make my faster as possible and less CPU consuming.
>>
>
> One other thing to try is an acceleration system.
> "Psyco" uses a compiler to speed up a Python program very easily. See
> http://psyco.sourceforge.net/ . All you need to do after installing it is
> add the code "import psyco ; psyco.full()".
>
> "Boost" ( http://beta.boost.org/doc/libs/1_45_0/libs/python/doc/index.html) 
> lets you write code in the C language and access that from Python. I've
> not tried that.
>

Reply via email to