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

Re: [pygame] Frames per seconds



You can either trigger the image to start or generate a frame depending on the audio time or the other way around.
As perception sound is more prone to irregularities, you might want to slave the image to the audio ...


On May 2, 2011, at 19:48, Nathan BIAGINI wrote:

> Hi everyone,
> 
> I'm writing using twisted for the network then i would like to know the for getting the exact seconds to wait each loop to have 60 frames per seconds. Actually i have to specify a value in seconds. There is a way to know the time in seconds to wait depending of the computer proc to have exactly 60 frames per seconds?
> 
> Thanks.