Interesting. I'm testing it on Window though. You're using Linux? Maybe the scheduling is different.
> seems something is wrong with either your time sampling or performance,No, it was always smooth for me. But I only tried it on 64-bit machines
> because I get rather jerky movement when playing the breakout or the
> chase demo. did you notice that too?
and only with ghc-6.10.2.
The breakout example has a zero threadDelay in its main loop, because
> at what rate are you sampling? if you are sampling at a lower rate as the
> video vsync, you might want to perform interpolation between two "logical
> frames" as jules bean did in his own reactive planets demo.
that apparently causes a break with the length of a scheduler tick,
essentially giving an 50 Hz sampling rate. The chase example has no
delay added at all, and it goes over 2500 fps for me.
--
http://www.fastmail.fm - Accessible with your email software
or over the web
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe