Follow Slashdot blog updates by subscribing to our blog RSS feed

 



Forgot your password?
typodupeerror
×
PC Games (Games) Entertainment Games

How Flight Sims Deal With Lag 13

mnemonic writes "How are hundreds of air, ground and sea units simulated in a multiplayer flight simulation with high fidelity, all the while maintaining a smooth framerate for dialup users? Two network protocols, a hybrid server-client peer to peer architecture (the latter of which is reportedly used by Doom 3) are only some of what it takes to keep Falcon 4.0, a beast of a game, playable online."
This discussion has been archived. No new comments can be posted.

How Flight Sims Deal With Lag

Comments Filter:
  • HalfLife (Score:5, Informative)

    by irc.goatse.cx troll ( 593289 ) on Monday July 14, 2003 @03:34AM (#6432597) Journal
    HalfLife has a nice feature to deal with lag called 'unlag'. The server has a setting (sv_maxunlag) for how long it should remember positions, default of 250ms.

    When you fire a shot, the server checks your ping and looks up where everything was when you fired, so if you shot someones head right before they ran behind a corner and you have 250ms ping, they'd make it behind the corner behind unlag kicks in and they die.

    • Re:HalfLife (Score:2, Interesting)

      Of course, it could be as much as 500ms before that person dies, too (if both players have 250ms ping). The default for maxunlag used to be higher, too, which caused some really big problems (ie imagine 400ms + your ping between the time you duck behind the corner and the time you die).

      It's a good idea in theory, but in practice it tends to just irritate players that have good connections (even though it really has the worst effect on the people that have pings closest to the maxunlag).

      The biggest problem
      • Re:HalfLife (Score:5, Interesting)

        by irc.goatse.cx troll ( 593289 ) on Monday July 14, 2003 @07:00AM (#6433138) Journal
        Which is why its optional (One of the few things Valve still lets admins control, bleh.)

        Most people I've personaly seen complain about unlag don't understand it and are just trying to make an excuse for why my friend(who used to be on dialup) could ace their entire team. (obviously not refering to you, just most people I remember). Personaly I dont mind the occasionaly unlag kill so much as i hate when people have high choke and look like theyre flickering around, you just have to spray and pray while they can stop and aim.

        The obvious solution to all of this is to lan, but overall I'd say halflife offers the best experience to dialup users.
        • Re:HalfLife (Score:4, Informative)

          by PainKilleR-CE ( 597083 ) on Monday July 14, 2003 @09:31AM (#6433770)
          Which is why its optional

          heh, it's nice that Valve put in the option, but the simple fact is that finding a server that doesn't use it is nearly impossible, and it's required in most competition configs (though the actual value tends to be different between leagues).

          People complaining about lag or unlag in game are generally just making excuses. If it's that bad, they would've left to find a better server. However, with unlag you have a situation where the player is forced to deal with an artificial component of the game for which they can not compensate. Those of us that started playing online FPS games with Quake, or even earlier, on dial-up (at a time when an LPB was someone under 400ms) learned at that time to compensate for our latency with various techniques to predict the opponent's movements and shots (basically doing the compensation in our heads that Valve is using server-side code to do now). When people complained about lag, they were told to learn to deal with it by other players, or find another server. Now the developers have taken it into their own hands to enforce lag on players that have paid to reduce it, or on players that have learned to compensate for it themselves.

          Overall, the option given to players is either to allow the server to compensate for their shots and movements, or not allow the server to compensate. The players have no control over the 'shooting around walls' effect except to try to find the rare server that has turned off unlag completely, or the choice to prevent their own shots from doing it to others (which essentially means taking away something from yourself that every other player is given).

          Half-life already had some of the best network code available before they added in the unlag feature, and they did this by reducing the amount of traffic to nearly a bare minimum, and implementing things similar to what is mentioned in the article about Falcon's netcode, things like retransmission and ordering of UDP packets with significantly less overhead than TCP packets (and there are options in Half-life's console commands to control how many resends you will receive (if any) and things of that nature).

          Things like getting shot around corners were already standard for people with high ping anyway, and they actually happen to these people more often under the unlag code than before, but they're also the least likely to notice the change, except when it's in their favor. The people that tended to notice the change the most were those that had gotten high-speed connections to counter this problem, and the unlag code just brought it back to them.

          Fortunately, though, I no longer play the game, so I don't really have to deal with it any more. I've considered going back to it a few times, but Valve's tendency to mess with what's right (the network code, and a few other issues specific to TFC, like grenade loadouts and effects, class speed, etc), and not fix what's wrong (have they killed the 'running around with your screen tilted sideways at 0 health' bug yet? That one was in HL at launch 4 years ago), not to mention not finishing and releasing a game they promised to us 4 years ago as a mod/patch/seperate game (TF2), has led me to looking for better things to spend my time on.
          • The reason I said the thing about it being optional like that is if you've noticed, Valve likes to enforce their new changes. Most league gamers would much rather cs be more like beta7, or atleast 1.0, but instead you're stuck dealing with the features that most hate (delay in jumping, awp to the leg not killing, pistols being practicly worthless in air, etc).

            You actually broke your halflife addiction? You should make a 12 step program so I can join-- Playing counterstrike is like being in an abusive relat
            • The reason I said the thing about it being optional like that is if you've noticed, Valve likes to enforce their new changes. Most league gamers would much rather cs be more like beta7, or atleast 1.0, but instead you're stuck dealing with the features that most hate (delay in jumping, awp to the leg not killing, pistols being practicly worthless in air, etc).

              Yeah, I pretty much figured that was your point, as Valve is just as notorious on the TFC side for changing things without giving people any option
              • Yeah, I figured the TFC players would be just as upset, I recently watched the movie Open_Your_Mind.avi which shows some tfc trick jumps, and I had no idea TFC actually had real concs before switching to those puny things it uses now. (I'm originaly a qw/TF player).

                You lost me at step 11, sigh. a girlfriend would make a much more enjoyable timesink, but theyre not nearly as easy to find.

                Yeah, I feel the same way about those long standing bugs. In counterstrike (and I assume other halflife modes) if you d
                • Re:HalfLife (Score:2, Interesting)

                  heh, before VAC came out, one of my CD keys (I have 3 for various reasons, primarily because Sierra gives free games to message board moderators, or at least they used to) was banned with no explanation. I think it might be because it was being used by someone else (I'm guessing a CD key generator got it right), and I eventually went into the registry and changed my key (to one of my other keys) because it was in use so often during clan matches and practices. Anyway, I reinstalled HL and accidentally used
    • What happens if someone fires a shot, then dies because they were killed 250ms ago? Does the shot still fire?
  • Cool and (Score:3, Informative)

    by coday ( 628350 ) on Monday July 14, 2003 @03:35AM (#6432598)
    It is certainely and interesting read but to be quite honest the solution is not ground breaking, it is just a well thought out design. my 2 cents.
  • by C0deJunkie ( 309293 ) on Monday July 14, 2003 @05:06AM (#6432816) Homepage Journal
    The guys who are developing the great Armagetron [sourceforge.net] are dealing with this, as you can see in their Network Subsystem Documentation [sourceforge.net].
    The main issue covered seems to be the need to "level" the different users (in terms of their "ping times"), expecially when one of them is hosting the multiplayer game.
  • by breon.halling ( 235909 ) on Monday July 14, 2003 @09:08AM (#6433593)

    They simply employ this [feelbest.com] =).

    Thank you, thank you. I'll be here all week. Try the veal.

You know you've landed gear-up when it takes full power to taxi.

Working...