SynacitX 发表于 2004-9-1 18:12:14

关于Linux的服务器FPS

大家测试一下在启动的时候家这个参数

-pingboost 1/2/3

有效果

kelle10309 发表于 2004-9-2 21:50:30

你测试没?

Post by SynacitX
大家测试一下在启动的时候家这个参数

pingbooster -3/-4/-5

有效果
老大这个参数应该加在什么地方?

SynacitX 发表于 2004-9-3 02:23:49

./hlds_run -pingboost 3 -game cstrike .................... -nomaster +map de_dust2.....................

Linux下有效,信不过我你可以去google搜索"pingboost"

Freebsd下面没效果。。。

awp46 发表于 2004-9-3 13:25:17

好用!!谢谢兄弟!!
不过服务器的PING只能提高到100
我想再高点,提高到200,但是没办法了

JonEsjeDi 发表于 2004-9-3 13:28:52

有点用,以前好像试过

kelle10309 发表于 2004-9-3 22:42:16

多谢搂主有所帮助!

Mr_0 发表于 2004-9-4 12:39:07

Post by awp46
好用!!谢谢兄弟!!
不过服务器的PING只能提高到100
我想再高点,提高到200,但是没办法了


原来还有人想提高服务器的PING的啊 :33:

SynacitX 发表于 2004-9-4 17:11:14

补充以下:
其实,这个参数配合server.cfg里面的sys_ticrate设置,可以更好的工作于linux系统

对于建立CS服务器,推荐使用最小的TEXT模式系统,收费的企业版本,免费的7.3比目前(只是目前)都比最后免费的的9.0版本好

hlds_l本身就是为linux打造的,如果用freeBSD开服务器,无非就是通过模拟方式运行,而任何模拟都会造成性能下降,所以不推荐使用FreeBSD来做CS服务器,当然,如果从所有网络应用层来说的话,FreeBSD比Linux优秀多了

在windows系统下面
sys_ticrate 设置200就可以获得100的FPS,而设置成为500就会稳定在256,最高可以设置成10000

当然,如果想多开几个服务器,介于300-500是最好的
请将服务器的sv_maxupdatarate 设置成100
Linux下面可以调整这个参数,Freebsd无效~

如果不需要其他的插件,最好不装载metamod,首选使用HLdsupdatetool从valve下载的Windows HLDS或者 使用./steam下载的 hlds_l 都是最干净的版本。

Linux1.6 的hlds_run自己可以通过pingboost参数来boost ping 或者在Windows下面修改sv_maxupdaterate 和 sys_ticrate 就不需要装载HL-booster或者Booster_mm了,后两者会产生一点点的choke(这是从软件作者的官方论坛自己说的话中得到的)~

chg 发表于 2004-9-5 02:39:52

哈,终于给有心人找到方法了。
不过还有个参数,是降低延迟的,具体是降低什么样的延迟我不清楚,照字面来看应该是降低服务端对客户端的反应。
1.5的要3.1.1.1e才有这个参数,也就是2615板服务端,这个参数只对linux有效,win系统不用加这个参数。
1.6的支持这个参数。
pingboost和我说的降低延迟的参数在官方发布的3.1.1.1e时,有个changelog上面说有,哪个地方都可以找到。有心人可以自己去找。
pingboost官方说明:
Pingboost in hlds

All the pingboost modes attempt to reduce the latency caused by the server. The default implementation adds around 20msec to each players ping (under linux).

Mode "1" reduces this by using a different wait method (a select() call). This method reduces the latency to 10msec.

Mode "2" uses a similar but slightly different method (and alarm() type call). Again, the result it 10msec worth of latency being added. NOTE that this method has the potential to hang a server in certain (terminal) situations. If anyone has used this mode recently (not the first test we did!) and it hangs please speak up

Mode "3" minimises the latency to the minimum possible level by processing a frame EVERY time a packet arrives. This causes the lowest possible latency, but can also cause extreme CPU usages (it does a complete frame for every packet, with each player sending lots of packets per second and 30 players this adds up to insane amounts of frames). Use this mode at your own risk, it will consume all available CPU, don't complain that cstrike uses too much CPU if you use this mode In a future release this mode will be tweaked to let the admin balance latencies agains CPU usage (by processing a frame every N packets).

OBS!! There is also an external modules called "pingbooster" by UDPSoft (or is it UDPSoftware?). They implement something like mode "3". As this is an external module, and was built for an older version of HL (1108) it may not work properly any longer, and future releases may (accidently) break it.

我对上面的英文理解是这样的:
-pingbooster 1降低客户端的ping 10ms
-pingbooster 2降20 ms
-pingbooster 3最快,就是客户端实际的ping是多少,就是多少,但会占用很多的cpu和内存。
1 2怎么理解呢?
意思就是cs服务器初始是不哪么快返回数据给客户端,假设服务器定义30ms才返回数据给客户端,如果你选1的话,就是20ms反回,如果你是2,就是10,如果你3,就延迟。
有些人可能会问,操,我用hlsw看才1x的ping,还能怎么降呀,我是这么认为的:
ping包很小的,如果你用ping这个去测试服务器,只是发送64字节的数据去测试,而正常玩家连到服务器,来往的数据可能会有1000-2000字节,ping就会比用64字节要大得多。
有理解不对的地方,请高手指正。

随便再说说sys_ticrate这个参数。
这个参数定义服务器运行的最高fps值,初始是100,设定越高占用cpu 越多。
win下的hlbooster会很变太的设定为10000,我觉得一般设为300-500就行了,再高没什么意义。

SynacitX 发表于 2004-9-5 09:39:37

en...
说了那么多...始终还没办法解决FreeBSD的问题
在UnitedAdmin的论坛,FreeBSD 5.2.1下面 HLDS_run的50 fps limit 问题顶置几天了,还没解决呢。。
页: [1] 2
查看完整版本: 关于Linux的服务器FPS