www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/02/19/10:29:18

From: Dino Miniutti <dmin AT dynamite DOT com DOT au>
Newsgroups: comp.os.msdos.djgpp
Subject: Speed Question
Date: Thu, 19 Feb 1998 13:12:04 +1100
Organization: Dynamite Internet http://www.dynamite.com.au/
Lines: 22
Message-ID: <34EB94F4.2BA7@dynamite.com.au>
Reply-To: dmin AT dynamite DOT com DOT au
NNTP-Posting-Host: dialup74.dynamite.com.au
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019