www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: Disastorm on November 05, 2010, 09:35:32 AM

Title: Sync speeds?
Post by: Disastorm on November 05, 2010, 09:35:32 AM
Hello, what is the best way to synchronize speed of an application on 2 diferent computers.  When I use a while loop to do stuff like the movements, key reading, render, etc, it runs alot faster like almost a fast forward mode on my really good computer when compared to my older one.
Title: Re: Sync speeds?
Post by: EgonOlsen on November 05, 2010, 07:59:44 PM
Either base the advances in your game world on time or on ticks (which is nothing more than a simplified time based approach). I prefer ticks. The advanced example in the wiki should actually contain some rough code that shows the basics.
Title: Re: Sync speeds?
Post by: Disastorm on November 08, 2010, 10:00:58 AM
Thanks that worked.