2024-11-21, 18:36 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
Pages: 1 [2]
  Print  
Author Topic: Why do I bitch at lag? ((for those wondering))  (Read 16065 times)
0 Members and 1 Guest are viewing this topic.
DD_133
 
Imp
**
Posts: 28

« Reply #20 on: 2005-08-20, 14:52 »

What would be appropiate settings for maximizing a 56k connection, I wonder. >_>
Logged
Phoenix
Bird of Fire
 

Team Member
Elite (7.5k+)
*********
Posts: 8814

WWW
« Reply #21 on: 2005-08-20, 15:36 »

That information I have in the FAQ.  I used to have a 26.6 connection for a very long time on which Quake 2 was completely unplayable, so I learned what the "worst case settings" are.
Logged


I fly into the night, on wings of fire burning bright...
Tabun
Pixel Procrastinator
 

Team Member
Elite (3k+)
******
Posts: 3330

WWW
« Reply #22 on: 2005-08-20, 16:11 »

Here's where Pho and I are totally in disagreement I guess.
As long as you ping lower than 80 to a server, and your bandwidth exceeds that of 56k dialup cl_maxpackets 125 is nearly always optimal. Rate 10000 is rather on the low end of the spectrum, 25000 is recommended by pretty much all the professional quake players (and tweakers) for (Dutch) ADSL and upwards. Thus, a stable connection with 256+ kbps upload and a half-decent link to the server would be underused with anything below maxpackets 100+ / rate 20000+.

You can easily use the lagometer to test if your settings are killing the connection. A lot of yellow triangles (mind, something is wrong with the server or link to the Euro server causing hitches, so don't confuse that with a client problem!) indicate that something is amiss, and the easiest way to test this is to change your settings to the bare mininum and see if that makes them disappear. Then gradually increase the values (synchronizing them), until you see yellow or red spikes in your lagometer. If the settings don't show any such effects, you can safely use them.
Using settings on the lower end of the spectrum will always have the effect of making the game more choppy, decreasing the window in which you can hit as well as in which you can be hit, generally turning the game into more of a gamble-run. It may be my personal opinion, but I think one should generally try to avoid that if at all possible.

Futhermore, low FPS (or a strongly, rapidly varying amount of FPS) causes hitches and chops. I know this, but not the specifics - I have to rely on more fervent tweakers for details and hints about how the net system works as disclosed by those in the know.
It also makes sense when you keep in mind that the net load is affected by your FPS, and that local prediction affects the game aswell - a higher FPS rate demands more data, and then receives the data during a time when less FPS can be drawn, causing the system to get clogged. Next, a lower rate of data is 'negotiated', after which the local renderer suddenly has a lack of network information to display its frames correctly. At such times you will see great shards of yellow (or even red) spikes in your lagometer.

Concerning Kingu's connection, I know that his choppy apearance on the server has remained unchanged. He teleported all over the place during the times he used the bare mininum default settings in Quake 3, aswell as after he tried the settings I recommended, and possibly values in between - if he tried them. Since his latency is low and doesn't spike badly, the only non internet-routing related cause I can think of is FPS-problems, especially since it is known that he does 'suffer' from a low and strongly varying framerate.


I think I'm going to run some tests with Alucard later, loading CPU-limiters to drop my FPS and make him record demos me doing of a repeated run through a long hallway. That could probably clear some things up as to what might cause gappy appearance in-game. And, hopefully, what best to do about it.
« Last Edit: 2005-08-20, 16:14 by Tabun » Logged

Tabun ?Morituri Nolumus Mori?
Phoenix
Bird of Fire
 

Team Member
Elite (7.5k+)
*********
Posts: 8814

WWW
« Reply #23 on: 2005-08-20, 17:44 »

Disagreement indeed, on some points.  Yes, FPS affects outgoing network traffic because it affects the client's command rate to the server.  STABILITY is what is most important, not just raw speed.  An FPS of 60 that is STEADY is preferrable to a maxFPS setting of 125 that dips down to 40.  Also, setting a com_maxfps setting absurdely high, like 300 (even if your system can handle it) means you're going to be dumping more data down the pipe than is sane.  Remember that each packet sent to the server has to handle all the client commands dumped into it.

Cl_maxpackets affects outgoing network traffic.  Cl_maxpackets is how many times per second the client sends commands to the server.  If set to 125 (the max), it will send commands every 8 milliseconds, provided the framerate keeps up.  A lot of commands sent to the server are already duplicate commands owing to how the Pmove module works on the client.  Unless you have a PERFECT 125 FPS, you're just going to be dumping duplicate commands down the pipe, which is wasting network traffic, so optimally, cl_maxpackets should match your highest STABLE FPS provided your upstream handles it, but should not exceed it.

Rate is outgoing from SERVER, not client, so it affects incoming network traffic on the client.  Sorry, I'm used to people lagging idlebot and I mixed it up earlier.  This affects downstream, not upstream.  Keep in mind it makes no difference whatsoever if the server's sv_maxpackets is set lower than your rate setting.

This is the most important part, something everyone seems to forget.  Outside of having a crappy ISP, network conditions between you and the server are the biggest bottleneck factor in gaming.  If you have 15 hops to get to a server, that means 15 different computers that handle your data.  That means 15 chances for packets to get lost, damaged, or piled up.  I will never, ever recommend running extremely aggressive network settings unless you're sitting right next door to the server for this reason.  Not everyone has the privelege of Dutch ADSL or upstreams of 256KB/s or higher.  If I make network recommendations, it's on the following assumptions:

1)  The upstream is limited by the ISP
2)  The downstream is limited by hops between the server and client
3)  There are bottlenecks and problems in the network SOMEWHERE
4)  There's software running in the background that utilize network traffic to some degree

This is why I suggest people start with conservative settings and work up to what is stable.  Running a rate of 20,000 and cl_maxpackets of 125 may be great if the network is clean, but more often than not, it's not clean.  I don't care what "pros" and "tweakers" say if it's not in line with realistic network conditions.  What's good for a LAN is NOT necessarily good for the net, and I'd like to think Id kind of knew what they were doing when they developed certain network settings for Q3 based on connection type.   Cl_maxpackets 125 wasn't even an option until 2002 according to the source log.  

Now as for personal experience, I tried cl_maxpackets 125 to Central, and even at a steady 125FPS my shots felt sluggish, I constantly missed, and my movements felt delayed.  Compare that to cl_maxpackets of 30, and I had a much cleaner game.  I tried 125 on Euro, and I experienced actual hitches during play.  This last game on Euro (thursday), I did not experience hitches or freezes, just the usual delay associated with ping.  This is because I DO have a very limited upstream.  It's not just me, either, I don't know how many times I've had people complain of lag or spikes and I ask them "what's your rate?" and they say "25,000".  I say "try lowering that to 10,000" and viola, problem fixed, no more lag, spikes, or chop.

Tab, I realize you want everyone to have a "perfect clean game" in which everyone never skips, chops, or lags.  Believe me, I'd like it too, but that's just not a reality outside of a LAN with all identical machines.  I'm not saying everyone must use certain network settings because Pho says so, all I'm saying is that if you have problems, ease back and test it out, and work with it until you find out what works best for you.  Everyone's connect and hardware is different.  There is no "one-size-fits-all" connection solution.  I just like to give a "here's something I know works for everyone" value as a reference point.
Logged


I fly into the night, on wings of fire burning bright...
Kingu
 

Archvile
*****
Posts: 143

« Reply #24 on: 2005-08-20, 17:45 »

That spikes yelow and red, are showing no mater what rate and maxpockets are.
 And from my side game runs normaly i don't see any choppy view, other than the others see.
 
On todays game i'll limit to 60 fps and rate, max_packets that phoenix sugested.
 Propably some help would be more ram but last time i tried to add they didn't worked with my mainboard.
Logged
Tabun
Pixel Procrastinator
 

Team Member
Elite (3k+)
******
Posts: 3330

WWW
« Reply #25 on: 2005-08-20, 19:23 »

I fully agree that my personal preferred settings will only work for relatively clean and fast connections - I wouldn't recommend someone with, say, 64 kbps upstream to use high settings, but neither would I recommend settings that are well below what is better all-round, shying away from nerdish tweakage :]

The opinions of "experts" (as you scare quote it) does reflect on ordinary net connections aswell, and I do try to keep that in account. Of course there's always the handful of dorks that can't resist making bold claims like "playing with(out) mouse acceleration is the only way to win!" etc. - those aren't the people whose word I take seriously.

I simply have the idea that a good deal of the players (Euro, at least) have a fairly decent connection, and are generally underusing it in an almost criminal manner. They can definitely make some improvements, or at least learn a bit and play around with the settings discussed. It seems like a waste to me to say: "just stick to worst case scenario values" instead of "try and see what can be improved".
I'm also playing the role of devil's advocate, as usual, so the optimum will undoubtedly lie in the middle. If you're running at 125, try 60 and see if it works for you, if you're running at 30, try 60 too. After that try the other extreme and do some educated guesstesting ;]
Logged

Tabun ?Morituri Nolumus Mori?
Phoenix
Bird of Fire
 

Team Member
Elite (7.5k+)
*********
Posts: 8814

WWW
« Reply #26 on: 2005-08-20, 20:06 »

The problem I encounter most often is when someone finds something that works for them they often assume it automatically works for everyone else.  Not saying that's what you're doing, but there's also the flip-side, which I do worry about people doing; that is, when someone reads what works great for someone else, they assume it will work for them just as well - especially when the person who recommends it has a reputation of pounding the snot out of everyone else on the server on a regular basis.  I just try to take that human tendency of "I want to be like [insert name here] so I'll do what he/she does" into consideration.
« Last Edit: 2005-08-20, 20:07 by Phoenix » Logged


I fly into the night, on wings of fire burning bright...
DD_133
 
Imp
**
Posts: 28

« Reply #27 on: 2005-08-23, 21:26 »

Ah ok, hopefully I didnt reignite a strife between you 2 developers. I did alot of guessing on some settings and finally got my ping to about 200-220. Thanks for the help, BOTH of you. XD
Logged
Phoenix
Bird of Fire
 

Team Member
Elite (7.5k+)
*********
Posts: 8814

WWW
« Reply #28 on: 2005-08-24, 01:53 »

Oh, no worries there.  Tab and I can be very opinionated and still work together just fine.
Logged


I fly into the night, on wings of fire burning bright...
Pages: 1 [2]
  Print  
 
Jump to: