[java] Increasing Animation performance

Started by
15 comments, last by prophecy 23 years, 1 month ago
We have a FAQ entry on the timing resolution issue...

http://games.cpbinc.com/faq/theory.asp#t2
Advertisement
Mmmm... I ain''t keen on any of the alternatives mentioned in the FAQ, I want to keep it pure Java, which rules out all the alternatives except for the JFM, and it is debatable if the JFM is more pure Java than any of the others.

I reckon that what I''ve got in mind should work fine, I tried it on my machine, hard-coding a value for the time increment for each frame and it worked very well, I just need to write a piece of code that is going to calculate and correct this value on the fly so that it is uniform across different machines, shouldn''t be too difficult.

Dewi.
quote:
We have a FAQ entry on the timing resolution issue...

http://games.cpbinc.com/faq/theory.asp#t2


Hey! That quote you start that section in the FAQ with is from me, not Jacob Marner.

http://www.gamedev.net/community/forums/topic.asp?topic_id=31877

You of course have my permission to use it... Could you just straighten out the crediting?
Corrected : )
Thanks. =)
I''ve said this before and I think someone else has noticed this too: The JMF timers are no better than the System.currtimeMillis() function. The resolution is unfortunately the same.
-Pasi Keranen
I implemented the method I described in a previous post and it has worked very well as a work-around to the low resoulution of the timer. Although the complexity of each level varied, on any given level the frame rate was stable enough for me to be able to do what I described with quite astounding effect. I found that the best kind of time-frame to use was something in the region of 4-5 seconds with sampling the frame rate once a second, the game would run slightly faster than it should do sometimes due to a low frame-rate in the previous second but using a time-frame of 4-5 seconds would overcome this.

I don''t mind but I could write a short piece about this if there was an interest??

Dewi Williams.

This topic is closed to new replies.

Advertisement