From: Vitaly V. B. <vit...@us...> - 2004-09-04 21:47:57
|
Hello, On 04 Sep 2004 15:16:17 -0300 Duilio Javier Protti <dp...@fc...> wrote: > I have implemented visual_time_usleep(), so now > we can start working on timed morph. Just note please that 2.4 and 2.6 kernels behave differently here. 2.4 kernel can wakeup only 50 times a second while 2.6 500 times, I beleive. In other words while(1){ /* do nothing */ usleep(1); calculate_fps(); } will (well, should ;) result in 50 FPS on 2.4 kernel. Not sure if select() will work correctly, probably not. To implement precise usleep() gettimeofday() should be used, imo. -- Vitaly GPG Key ID: F95A23B9 |