Sync speeds?

Started by Disastorm, November 05, 2010, 09:35:32 AM

Previous topic - Next topic

Disastorm

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.

EgonOlsen

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.

Disastorm

#2
Thanks that worked.