delay on windows when processing Pygame events

Discussion in 'Python' started by Vojtěch Polášek, Sep 10, 2012.

  1. 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
    Vojtěch Polášek, Sep 10, 2012
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Kristoffer Arfvidson

    Delay in processing of aspx pages?

    Kristoffer Arfvidson, Jan 22, 2004, in forum: ASP .Net
    Replies:
    6
    Views:
    518
    Kristoffer Arfvidson
    Jan 24, 2004
  2. Replies:
    4
    Views:
    637
    Ben Sizer
    Aug 25, 2006
  3. Doogie
    Replies:
    8
    Views:
    332
  4. rantingrick

    [pygame-bug] Pygame.cdrom bug

    rantingrick, Jan 30, 2011, in forum: Python
    Replies:
    1
    Views:
    297
    Benjamin Kaplan
    Jan 30, 2011
  5. Chris

    Events Events Events Please Help

    Chris, Aug 30, 2005, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    341
    Chris
    Aug 30, 2005
Loading...

Share This Page