PDA

View Full Version : Explanation of lag... - By a good helper...


SSJKarma
09-08-2002, 03:18 PM
What is lag ?
the answer isn't easy, but i will try my best to make you understand it !

i will use this image as a visual effect, to help you understand what i will say.

http://membres.lycos.fr/SSJKarma/XMvsSF/XMvsSF_Forum/lag.gif

i will also use computer TERMs, so i will put the definition of each WORD !
NETWORK = multiple computers connected to each others
PACKETS = data that is send over the internet
SYNCHRONIZATION = when 2 or more machines have the exact same thing at the exact same time.
ISP = internet service provider (your internet company)

Time to tell you the big secret of the LAG and how it is created !

lets say there is 4 players that connect to the game (see IMG1). P1 challenge P2, the game synchronize and the game start. now P1 gives a jab. the KEY input is transformed into data, then sended over to the server, who send it to the P2 computer. now this would be the best route, but it isn't that easy. the best route is determined by the packet. he checks to see what route he can take to reach the destination. but believe it or not, it will never be the straight line ! once he finds the best course of action, he follows it, hoping there will not be any problems on the way. the packet, who started at new-york, will go to Hong-Kong then continues to Japan, then to paris, followed by moncton in canada, then goes back to hongkong, to finally arrives at new-jersey. where the server will receive the packet and read it, then send it back to P1. what caused the route to literaly make a world tour, is the fact that he isn't the only packet traveling in that network. lots of thing can make the path less and less accurate. Phone line interferences, lots of people on the internet, ISP modem over loaded with data, old cables, all those can diminish the speed of the packet, causing him to take more time to find the best way around. once the packet has reach his destination, he is read and destroyed then another packet his send as an answer.

LAG = time the packet takes to reach his final destination

What happen in this game ?
the packet goes like this...
P1 ---> server ---> P2
then it comes back like this...
P2 ---> server ---> P1
now, if we put the LAG that has over internet on this, you get this...
P1 ---> .5 seconds lag ---> server ---> .5 seconds lag ---> P2
so P2 see what P1 did about 1 second later. the .5 second LAG is The packet trying to reach his destination. the result of this lag are seen as a lifebar not going down, super bar getting up real fast or super getting chained together. but there is actually no way to reduce that LAG, cause it is all based on INTERNET and there is nothing we can actually do to diminish that LAG.

now that explained why you see your opponent getting pummeled to oblivion and the next second he is pummeling you like mad !

other things that enter into play, are the machines we are using to play the game. the best example of this would be this one... P1 is using an AMD 500mhz processor with 64mb of ram combined with a 56k phone modem. P2 has a P4 1.6ghz with 256mb of ram combined with a modem cable. P1 have a really less powerfull computer, so the computer has a hard time to follow with packet sending process !

now this LAG we can do something about it !
reducing the screen sizes make the computer needing less power to keep up with the images and that power is saved for more important things. same goes with the sound, having no sound in the game cause your computer to saved more power for later. there is lots of thing in your computer that you don't need to have to play the game.

conclusion:
there is 2 LAG that affect the game we are all playing.
- INTERNET based
- MACHINE based

this is the end of my thread and i do hope you will all take the time to read it !
hope it helped some of you to understand the LAG that we have in the game. if you don't
understand certain things in my text, you are welcome to tell me and i will clarify it
for you. don't flame about this thing cause i putted it only for understanding purpose !

now i hope to have reply to that text !

VIRUS
09-08-2002, 03:47 PM
Good Job Karma


Although I think this is a subject that no matter how simple you put it there will always be a thousand questions.

PARADISE-X
09-08-2002, 04:01 PM
Damn...thats a long poste...

DARKPICCOLO
09-08-2002, 04:13 PM
good old Karma our local computer expert ;) thanks bud now maybe i can stop some of this lag.

Dan Hibiki
09-08-2002, 04:32 PM
SSJKarma, would that helper be me, perchance? I posted an explanation of lag of similar length many a month ago, using my almighty Cisco networking knowledge gained in Cisco class. TMyApp called me Mr. Lag, I believe.

Lancer Px
09-08-2002, 07:56 PM
What is lag ?
the answer isn't easy, but i will try my best to make you understand it !

i will use this image as a visual effect, to help you understand what i will say.

http://membres.lycos.fr/SSJKarma/XMvsSF/XMvsSF_Forum/lag.gif

i will also use computer TERMs, so i will put the definition of each WORD !
NETWORK = multiple computers connected to each others
PACKETS = data that is send over the internet
SYNCHRONIZATION = when 2 or more machines have the exact same thing at the exact same time.
ISP = internet service provider (your internet company)

Time to tell you the big secret of the LAG and how it is created !

lets say there is 4 players that connect to the game (see IMG1). P1 challenge P2, the game synchronize and the game start. now P1 gives a jab. the KEY input is transformed into data, then sended over to the server, who send it to the P2 computer. now this would be the best route, but it isn't that easy. the best route is determined by the packet. he checks to see what route he can take to reach the destination. but believe it or not, it will never be the straight line ! once he finds the best course of action, he follows it, hoping there will not be any problems on the way. the packet, who started at new-york, will go to Hong-Kong then continues to Japan, then to paris, followed by moncton in canada, then goes back to hongkong, to finally arrives at new-jersey. where the server will receive the packet and read it, then send it back to P1. what caused the route to literaly make a world tour, is the fact that he isn't the only packet traveling in that network. lots of thing can make the path less and less accurate. Phone line interferences, lots of people on the internet, ISP modem over loaded with data, old cables, all those can diminish the speed of the packet, causing him to take more time to find the best way around. once the packet has reach his destination, he is read and destroyed then another packet his send as an answer.

LAG = time the packet takes to reach his final destination

What happen in this game ?
the packet goes like this...
P1 ---> server ---> P2
then it comes back like this...
P2 ---> server ---> P1
now, if we put the LAG that has over internet on this, you get this...
P1 ---> .5 seconds lag ---> server ---> .5 seconds lag ---> P2
so P2 see what P1 did about 1 second later. the .5 second LAG is The packet trying to reach his destination. the result of this lag are seen as a lifebar not going down, super bar getting up real fast or super getting chained together. but there is actually no way to reduce that LAG, cause it is all based on INTERNET and there is nothing we can actually do to diminish that LAG.

now that explained why you see your opponent getting pummeled to oblivion and the next second he is pummeling you like mad !

other things that enter into play, are the machines we are using to play the game. the best example of this would be this one... P1 is using an AMD 500mhz processor with 64mb of ram combined with a 56k phone modem. P2 has a P4 1.6ghz with 256mb of ram combined with a modem cable. P1 have a really less powerfull computer, so the computer has a hard time to follow with packet sending process !

now this LAG we can do something about it !
reducing the screen sizes make the computer needing less power to keep up with the images and that power is saved for more important things. same goes with the sound, having no sound in the game cause your computer to saved more power for later. there is lots of thing in your computer that you don't need to have to play the game.

conclusion:
there is 2 LAG that affect the game we are all playing.
- INTERNET based
- MACHINE based

this is the end of my thread and i do hope you will all take the time to read it !
hope it helped some of you to understand the LAG that we have in the game. if you don't
understand certain things in my text, you are welcome to tell me and i will clarify it
for you. don't flame about this thing cause i putted it only for understanding purpose !

now i hope to have reply to that text !
uh what?

and can u explain that in elementary terms please?

i dont think the new comers will understand this

09-08-2002, 08:34 PM
too much to read man.. :0

SSJKarma
09-08-2002, 08:35 PM
glad to know that it was usefull to some people !

DanHibiki: i didn't copy any of what i typed !

you made the cisco class ?
that must have been expensive. :D
but if you followed that class then you probably know it all better than me !
the only class i had about all that was 240 hours of networking + 60 hours of internet !

anyway... it gives people lots more interest in the game to know that people can try and reduce their lag !

Lancer PX: never quote a text that long !
i really don't see how i could explain it better...
but...

by reducing graphics and sounds, you can actually reduce the lag on your system, but there will always be the internet lag who is explained above !

its what it means with a little more precise explanation.
and it explain why people see different thing on their end !

TMyApp
09-09-2002, 10:12 AM
fantastic explanation !! ... WOW.. diagram .. detail... the works...

the only problem is that it is WRONG... (ok ok... most/all of what he said about "packets" and "lag" is right.... just ignore the diagram... it is not even close)

... i wont' bother to get into detail... i've flamed SSJKarma enough in this other thread (under "new features")... :biggrin:

SSJKarma
09-09-2002, 11:03 AM
what do you mean, wrong ?

all i said is true tmyapp !
i know i never made the game so i cannot say that it is like that. but i'm pretty sure it is and it is really helping to know that at least we can do a little to help you get rid of the lag ! :D

PARADISE-X
09-09-2002, 04:32 PM
The great TMyApp as spoken we muss follow his order...u [B]suck ssj Karma[B] J/k :p