ex:
./srcds_run -console -game cstrike -ip 202.172.112.196 -port 27015 -maxplayers 24 -tickrate 100 -pingboost 3 -fps_max 500 +map
de_dust -debug
pingboost 為硬體加速參數,有1,2,3 三種設定
All the pingboost modes attempt to reduce the latency caused by theserver. The default implementation adds around 20msec to each playersping (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 thefirst test we did!) and it hangs please speak up
Mode "3" minimises the latency to the minimum possible level byprocessing a frame EVERY time a packet arrives. This causes the lowestpossible latency, but can also cause extreme CPU usages (it does acomplete frame for every packet, with each player sending lots ofpackets per second and 30 players this adds up to insane amounts offrames). Use this mode at your own risk, it will consume all availableCPU, don't complain that cstrike uses too much CPU if you use this modeIn a future release this mode will be tweaked to let the admin balancelatencies agains CPU usage (by processing a frame every N packets). |