Mail Archives: djgpp/1998/02/19/10:29:18
I am currently writing a game that i intend to be played over a network.
I am concerned however that the game may run at different speeds on
different computers. thus giving the person with the faster computer an
unfair advantage since he may be able to move faster than the others.
I was wondering how i could possibly get the game to run at the same
speed on all computers. I am using allegro to code the game.
The solution that i had thought of was to assign a certain time to
complete each 'cycle' and if the computer finished in less time, then
get it to wait for the remaining cycle time. but then the problem i have
with that is then the people with higher computers with have a lower
framerate than is potentially possible, which could possibly make the
game less enjoyable.
does anyone have a better solution? possibly one that will not lower
framerates.
Thanks in advance,
Dino Miniutti
- Raw text -