- Problem solved again

From: Martin, Marc <"Martin,>
Date: Tue, 5 Sep 2006 16:03:04 -0700

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

>> So, previously, f.Input could be called a thousand times
>> per second and not slow the program down.
>
>This got me interested. How come 1000 per second? The main
>BB loop by default runs 20 times per second.

Before today, I didn't realize that I was calling f.Input
so frequently! I was just calling it every so often
based on trajectory calculations, not a timer. This code
was originally written in 1995 when I was using a 75mhz
computer. Now that I'm using a 4ghz computer, it's being
called a lot more frequently that it was originally!

The only reason I'm calling f.Input is so that the user
has the possiblity of terminating a long-running command.
So I check to see if the user has pressed a button, and
if so, the command terminates.

Marc

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



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

e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwID4+IFNvLCBwcmV2aW91c2x5LCBmLklucHV0IGNv
dWxkIGJlIGNhbGxlZCBhIHRob3VzYW5kIHRpbWVzXHBhcg0KPj4gcGVyIHNlY29uZCBhbmQgbm90
IHNsb3cgdGhlIHByb2dyYW0gZG93bi5ccGFyDQo+XHBhcg0KPlRoaXMgZ290IG1lIGludGVyZXN0
ZWQuIEhvdyBjb21lIDEwMDAgcGVyIHNlY29uZD8gVGhlIG1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received on Wed Sep 06 2006 - 01:03:04 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:27:48 UTC