Author Topic: MAX_PACKET_CMDS  (Read 6121 times)

Oblivion

  • Posts: 410
  • Turrets: +27/-22
    • Gamez-Host.com
MAX_PACKET_CMDS
« on: August 28, 2007, 12:25:17 am »
Could someone help me out with this and tell me what the problem is.  I got a demo of it doing this to me, hmm it does it alot now, but in the past it did not.

http://www.filefactory.com/file/2d49bf/
World Wide Server Host

/dev/humancontroller

  • Posts: 1033
  • Turrets: +1002/-383
Re: MAX_PACKET_CMDS
« Reply #1 on: August 28, 2007, 11:15:40 am »
The demo doesn't show anything out of ordinary.

MAX_PACKET_CMDS is a constant (on both server and client) that limits how many usercmds you can send in one packet. This is an informational error message, indicating that some usercmds were thrown away.

This may happen if you have a combination of a very high framerate, a high cl_packetdup, and a low cl_maxpackets value.
- Each frame the client generates a usercmd that is queued for sending. Higher framerates generate more in time.
- cl_maxpackets sets how many packets you can send in one second. The lesser the value, the more time will the client wait before generating a packet. It is used to decrease bandwidth usage by saving headers and adding more delta compression. Sending a packet every frame is used on LAN.
- To defeat the effects caused by packet loss, cl_packetdup is used. It sets how many times each usercmd is resent in the next packets, so that even if several packets are dropped in a row, all usercmds will make it to the server.

next_ghost

  • Posts: 892
  • Turrets: +3/-6
MAX_PACKET_CMDS
« Reply #2 on: August 28, 2007, 12:16:52 pm »
Set com_maxfps to some reasonable value, like 125.
If my answer to your problem doesn't seem helpful, it means I won't help you until you show some effort to fix your problem yourself!
1.2.0 release's been delayed for 5:48:00 already because of stupid questions.

Caveman

  • Guest
MAX_PACKET_CMDS
« Reply #3 on: August 28, 2007, 01:52:04 pm »
wasn't that 76 or 143 to take advantage of the rounding issue?

kevlarman

  • Posts: 2737
  • Turrets: +291/-295
MAX_PACKET_CMDS
« Reply #4 on: August 28, 2007, 04:47:56 pm »
Quote from: "Caveman"
wasn't that 76 or 143 to take advantage of the rounding issue?
25,43,76,125,333 (another one at about 450 and another at 800ish for people with overflow's rig).
Quote from: Asvarox link=topic=8622.msg169333#msg169333
Ok let's plan it out. Asva, you are nub, go sit on rets, I will build, you two go feed like hell, you go pwn their asses, and everyone else camp in the hallway, roger?
the dretch bites.
-----
|..d| #
|.@.-##
-----

Oblivion

  • Posts: 410
  • Turrets: +27/-22
    • Gamez-Host.com
MAX_PACKET_CMDS
« Reply #5 on: August 28, 2007, 10:21:57 pm »
Quote from: "next_ghost"
Set com_maxfps to some reasonable value, like 125.

Well my max FPS is 700 but my FPS stays in the area of 450 to 500.
World Wide Server Host

/dev/humancontroller

  • Posts: 1033
  • Turrets: +1002/-383
MAX_PACKET_CMDS
« Reply #6 on: August 29, 2007, 04:18:23 am »
- Set cl_packetdup to 0.
- Set your com_maxfps to a value which you can constantly achieve (that is, if your framerate goes well below 450 when you see a lot of shit around you, use 333).
- Essentially, set cl_maxpackets as high as possible, until your ping starts going up (your upload speed is too low) instead of down.

If you have annoying packetloss with cl_packetdup 0, then you should set it to 1, but that requires a higher cl_maxpackets value.

There's nothing wrong with settings that are just below the MAX_PACKET_CMDS limit.

next_ghost

  • Posts: 892
  • Turrets: +3/-6
MAX_PACKET_CMDS
« Reply #7 on: August 29, 2007, 10:34:14 am »
Quote from: "Oblivion"
Well my max FPS is 700 but my FPS stays in the area of 450 to 500.


Each rendered frame generates client commands. MAX_PACKET_CMDS is enough for about 200 fps, not for 500 fps!
If my answer to your problem doesn't seem helpful, it means I won't help you until you show some effort to fix your problem yourself!
1.2.0 release's been delayed for 5:48:00 already because of stupid questions.

/dev/humancontroller

  • Posts: 1033
  • Turrets: +1002/-383
MAX_PACKET_CMDS
« Reply #8 on: August 29, 2007, 04:15:49 pm »
Quote from: "next_ghost"
Quote from: "Oblivion"
Well my max FPS is 700 but my FPS stays in the area of 450 to 500.


Each rendered frame generates client commands. MAX_PACKET_CMDS is enough for about 200 fps, not for 500 fps!


No, MAX_PACKET_CMDS is enough. Just enough. It's only to disallow packets with thousands of usercmds that require a lot of processing power and cause server hitches.
The default settings may be enough for 200 fps, but there's nothing wrong with 800 FPS, it just generates more bandwidth (and you have to tweak your packet settings along with the maxfps). Pro gamers have ubercomps and ubernets.

next_ghost

  • Posts: 892
  • Turrets: +3/-6
MAX_PACKET_CMDS
« Reply #9 on: August 29, 2007, 06:10:01 pm »
Yeah, there's nothing wrong with 800 fps, except that human eye can't see any difference above 60 fps and the best CRT monitors can't show more than about 200 fps anyway (I've never seen a CRT monitor with vertical frequency above 200Hz). LCD screens can barely show 125 fps so far. :roll:

So if you want to stroke your ego by having 500+ fps, don't complain that the game doesn't like that and keeps complaining.
If my answer to your problem doesn't seem helpful, it means I won't help you until you show some effort to fix your problem yourself!
1.2.0 release's been delayed for 5:48:00 already because of stupid questions.

kevlarman

  • Posts: 2737
  • Turrets: +291/-295
MAX_PACKET_CMDS
« Reply #10 on: August 29, 2007, 09:40:01 pm »
Quote from: "next_ghost"
Yeah, there's nothing wrong with 800 fps, except that human eye can't see any difference above 60 fps and the best CRT monitors can't show more than about 200 fps anyway (I've never seen a CRT monitor with vertical frequency above 200Hz). LCD screens can barely show 125 fps so far. :roll:

So if you want to stroke your ego by having 500+ fps, don't complain that the game doesn't like that and keeps complaining.
and the pmove logic behaves differently depending on your fps...
Quote from: Asvarox link=topic=8622.msg169333#msg169333
Ok let's plan it out. Asva, you are nub, go sit on rets, I will build, you two go feed like hell, you go pwn their asses, and everyone else camp in the hallway, roger?
the dretch bites.
-----
|..d| #
|.@.-##
-----

next_ghost

  • Posts: 892
  • Turrets: +3/-6
MAX_PACKET_CMDS
« Reply #11 on: August 29, 2007, 09:49:50 pm »
Quote from: "kevlarman"
and the pmove logic behaves differently depending on your fps...


... because of a bug which can be fixed and HAS been fixed in the past, for example in ETPro. That bug doesn't really matter in Tremulous anyway because there's no real advantage or disadvantage from it as opposed to Enemy Territory or Quake 3.
If my answer to your problem doesn't seem helpful, it means I won't help you until you show some effort to fix your problem yourself!
1.2.0 release's been delayed for 5:48:00 already because of stupid questions.