At 10:54 AM 10/18/99 -0500, Andrew R. Thomas-Cramer wrote:
>>>>
Thanks for the response! By thrashing, I mean the application is using near 100% of
CPU time, only when KeyNavigator is used.
<<<<
Well, I subclassed KeyNavBehavior so I could do some stuff in the
processStimulus method to provide a heads-up display. I discovered that
whether or not you go near the keyboard, processStimulus gets called
many times per second (speculation: every 10 ms?). So what I did
was
int mCallCount = 0;
public void processStimulus(java.util.Enumeration criteria)
{
mCallCount++;
if ((mCallCount % 25) == 0)
{
mTG.getTransform(mTransform);
// and so on
and I got nice snappy updates on my heads-up.
Hmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm.......... -Tim
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".