[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [pygame] speed problem: max 6 fps



john fleming schreef op maandag 24 februari om 03:41:10 +0000:
> >
> >
> >When running the attached programs, Igot the following error:
> >
> sprites.py:75: Warning: 'yield' will become a reserved keyword in the future
> Traceback (most recent call last):
>  File "<stdin>", line 9, in ?
>  File "sprites.py", line 75
>    yield i/factor
>          ^
> SyntaxError: invalid syntax
> has anyone got this?

Well, this program is written for Python 2.3.
I have already solved my speed problem by now, I was redrawing the whole
screen every frame.
I am now trying to .pickle() my sprites, but pickling rects, surfaces or
iterators doesn't seem possible...

yours,
Gerrit.

-- 
Asperger Syndroom - een persoonlijke benadering:
	http://people.nl.linux.org/~gerrit/
Het zijn tijden om je zelf met politiek te bemoeien:
	http://www.sp.nl/
____________________________________
pygame mailing list
pygame-users@seul.org
http://pygame.seul.org