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


Groups > comp.lang.python > #28863

delay on windows when processing Pygame events

Date 2012-09-11 00:25 +0200
From Vojtěch Polášek <krecoun@gmail.com>
Subject delay on windows when processing Pygame events
Newsgroups comp.lang.python
Message-ID <mailman.472.1347315918.27098.python-list@python.org> (permalink)

Show all headers | View raw


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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web