[squeak-dev] Delay on Linux

Eliot Miranda eliot.miranda at gmail.com
Fri Feb 8 17:46:26 UTC 2013


On Fri, Feb 8, 2013 at 3:25 AM, Bob Arning <arning315 at comcast.net> wrote:

>  It's mostly 2 and occasionally 3 on a Mac. FWIW.
>
>  On 2/8/13 3:41 AM, Stéphane Rollandin wrote:
>
> Yes, the effect is much more evident on Linux than on Windows, where
> a delay of "2 ms" might be perhaps 15 ms or so in actual duration:
>
> Time millisecondsToRun: [(Delay forMilliseconds: 2) wait] ==> 16
>
>
> This is very bad ! This makes squeak unusable for real-time animation or
> music. Can it be fixed ?
>
>
Yes.  I believe the issue is the linux kernel version.  Upgrade to a 2.6
kernel.

e.g. using Cog on a Linux redacted 2.6.9-42.ELsmp #1 SMP Wed Jul 12
23:27:17 EDT 2006 i686 athlon i386 GNU/Linux:

(1 to: 20) collect: [:i| [(Delay forMilliseconds: 1) wait] timeToRun] #(3 3
3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3)
(1 to: 20) collect: [:i| [(Delay forMilliseconds: i) wait] timeToRun] #(3 3
3 6 6 9 9 9 12 12 12 15 15 15 18 18 18 21 21 21)

>  Stef
>
> --
best,
Eliot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20130208/410a40f4/attachment.htm


More information about the Squeak-dev mailing list