- Idle time

From: Douglas G. Danforth <"Douglas>
Date: Thu, 28 Apr 2005 12:44:09 -0400

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

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-1372563802_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"

e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwIEZvbGtzICYgV29qdGVrLFxwYXINClxwYXINCkxv
b2tpbmcgaW50byB0aGUgc291cmNlIGNvZGUgb2YgQkIxLjViZXRhIEkgZmluZCB0aGF0IHRoZSBi
YXNpYyBccGFyDQpwcm9jZXNzaW5nIHRpbWUgb2YgQmxhY2tCb3ggaXMgdGllZC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hcg0KXHBhcg0KLS0tIEJsYWNrQm94XHBh
cg0KLS0tIHNlbmQgc3ViamVjdCBIRUxQIG9yIFVOU1VCU0NSSUJFIHRvIGJsYWNrYm94QG9iZXJv
bi5jaH19AGhlIHByb2JsZW0=


----boundary-LibPST-iamunique-1372563802_-_---
Received on Thu Apr 28 2005 - 18:44:09 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:28:15 UTC