You're making an integer division, thus on very fast machines it may result in 0 (zero). You should change to 1000.0, so you'll have a double precision division.
Cheers, Florin -----Ursprüngliche Nachricht----- Von: Discussion list for Java 3D API [mailto:[EMAIL PROTECTED] Auftrag von Ben Moxon Gesendet: Dienstag, 25. Januar 2005 15:12 An: JAVA3D-INTEREST@JAVA.SUN.COM Betreff: [JAVA3D] J3DTimer doesn't seem to work as expected Here is the code I used to find how much the model should move each frame in the J3d tutorial I wrote a couple of years back. Code: public double getStep() { long echo = J3DTimer.getValue(); double wrongun= ((echo-oldTime)/1000); wrongun = wrongun*step; oldTime=echo; return wrongun; } Basically it just finds how long it is since the method was last called and muliplies that by a standard step size. That worked fine between my PC at the time and other slower ones I tried but now that i've upgraded my processor and motherboard the model seems to fly around the place ridiculously fast again. Can anyone suggest why this should be and how I can get around it? Many thanks for your time, -ben =========================================================================== 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". =========================================================================== 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".