How to limit the number of frames ?

So i need to limit the max number of frames in java3d to 30 then measure the amount of time i have left (in a second) to do other things.

Is there any easy way to do this ? With just a couple of lines of code ?

If this isn’t possible then if it is possible to measure in average the time it takes for a frame to complete (average of frames per seconds) it would do the trick I hope.

View#setMinimumFrameCycleTime(33)

But only works well with 1.3.1! Due to a bug, kills your CPU with 1.3.

It worked fine for me before 1.3.1 on OpenGL.

On many different machines as well.

I could walk around in 3D with CPU using ½ power. I have not noticed any difference since 1.3.1 in this regard.

Maybe this bug was a DirectX bug…

Regards
Nikolai

Ok, I thought of this:

http://developer.java.sun.com/developer/bugParade/bugs/4807209.html

Great. Thanks.

[quote]Ok, I thought of this:

http://developer.java.sun.com/developer/bugParade/bugs/4807209.html
[/quote]
I know, but I am just saying that maybe this error only occurs in special circumstances, since it has always worked for us.