Animator Threads issues

Hey all. I’ve got a question regarding a Thread and an Animator.

An animator is going to try and use 100 precent of the cpu in order to update the screen, right?

So I have created a Timer Thread that will basically be the system time for my app. Based off this time, events will spawn.

So here is where I am having problems. I use an animator to update graphics. I have a thread that continuously runs updating events and such (Timer). Well, nothing ever gets drawn on the screen meaning the display(GL gl…) method never gets called.

Would you guys have any idea why this is happening? Is it that the thread in the animator’s priority is much lower then my “Timer” thread; therefore the animator is being starved? Or is it something else?

Thanks

An update to the Timer situation …

I have to start the animator thread before the Timer thread. If i do it the other way, then nothing gets done.

Another wierd issue is that the refernce to my Timer thread disapears. I have never seen this in Java anywhere. And no, the only time I set the refernce to the Timer is when I instantiate it.

This is important because later on in the program I need to turn off the timer. Well, since the refernce is disgarded I can’t. I know the object is still there because its continually updating the time (calls an update Method in my renderer).

Any clues?