[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[pygame] Clock Tickings



In the pygame docs it heavily implies that, having a loop like:

clock=pygame.Clock()
while(True):
    clock.tick(1000/X)

Will let you control the framerate, X being the FPS (I know, dependant on a few other things). However, I'm getting the opposite effect - a low value of X gives me a high frame rate, and visa versa. Anyone have a handle on what's happening here?

Chris