Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #28863 > unrolled thread

delay on windows when processing Pygame events

Started byVojtěch Polášek <krecoun@gmail.com>
First post2012-09-11 00:25 +0200
Last post2012-09-11 00:25 +0200
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

  delay on windows when processing Pygame events Vojtěch Polášek <krecoun@gmail.com> - 2012-09-11 00:25 +0200

#28863 — delay on windows when processing Pygame events

FromVojtěch Polášek <krecoun@gmail.com>
Date2012-09-11 00:25 +0200
Subjectdelay on windows when processing Pygame events
Message-ID<mailman.472.1347315918.27098.python-list@python.org>
Greetings,
I am writing a simple game for visually impaired in pygame. I use this
construction:

while running == True:
    for event in pygame.event.get():
        if event.type == blahblahblah, #processing various events
    blahblahblah, contiuing the code after events are analysed

I am looking mainly for keyboard events. I notice a quite nonnegligible
lag when running this under Windows XP, when compared to the same code
on Ubuntu 12.04.
Python and pygame version should be the same:
Python 2.7.3
pygame 1.9.1
Can anyone please help me?
Thank you,
Vojta

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web