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

Re: [pygame] game freezes on start up with 1.2



Pete Shinners writes:
 > here's the problem:
 > when you create the FpsClock instance, it is calling 
 > pygame.time.get_ticks(). this functrion returns the number of 
 > milliseconds since pygame was initialized. since pygame has not 
 > initialized when you call this, it seems to be returning garbage. 
 > (apparantly on linux it does not return garbage).

In fact it does return garbage, it's just _negative_ garbage, so
delaying by that amount doesn't actually pause the game :)

David Clark

-- 
You see I used to think that I'd get over everything
But everything just got over me

____________________________________
pygame mailing list
pygame-users@seul.org
http://pygame.seul.org