- - Idle time

From: [at]} <skulski{>
Date: Thu, 28 Apr 2005 16:07:17 -0400 (EDT)

----boundary-LibPST-iamunique-1220226186_-_-
Content-type: text/plain

Doug:

  does this mean that one can simply set idlePeriod to 1 and get 1 ms
turnaround time? I cannot investigate timing right now because
I am way behind with preparing the experiments we are running
at the current timer rate. However, if increasing the speed
is as simple as changing one number, that would be great.

W

> Folks & Wojtek,
>
> Looking into the source code of BB1.5beta I find that the basic
> processing time of BlackBox is tied to 50 milliseconds. The module
> Menus specifies this time. actionHook.Loop is called in Menus and
> actionHook.Step is called in HostWindows.Idle.
>
> Menus
> idlePeriod = 50; (* ms *)
> HostWindows.Idle
> Services.actionHook.Loop
>
> HostWindows.Idle
> Services.actionHook.Step
>
> The idlePeriod is passed to USER32.SetTimer which operates at a minimum
> of 1 millisecond so the operating system (through this call) is placing
> a basic lower bound restriction on the time resolution.
>
> Hence to speed up Services.DoLater and not violate the rest of BlackBox
> it would be necessary to use a different timer within Menus. Whether
> this idea is valid requires extended study.
>
> -Doug

--- BlackBox
--- send subject HELP or UNSUBSCRIBE to blackbox{([at]})nowhere.xy



----boundary-LibPST-iamunique-1220226186_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"

e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwIERvdWc6XHBhcg0KXHBhcg0KICBkb2VzIHRoaXM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