SRCDS Steam group


happy x-mas: more than 1000 fps :-)
#31
(08-05-2010, 08:32 PM)BehaartesEtwas Wrote:  you probably need to do that in /etc/init.d/N1-GAMING-CSS-WAR1
can you show us the file?

Ok Smile

I use the script presented here =>
http://forums.srcds.com/viewtopic/2630

Code:
#!/bin/sh
#############################################
## SRCDS SERVER STARTUP SCRIPT V1.0        ##
## [10.10.2005]                            ##
## Created by:                             ##
## Ole Christian Rynning <oc@rynning.no>   ##
## jce #norge.css @ quakenet               ##
#############################################

#############################################
## CUSTOMIZE THESE VARIABLES TO YOUR NEEDS ##
#############################################

###
# SCRDS_NAME is the name of the instance
# for example customer_css, clanwarserver,
# and so on.
# Default: css
SRCDS_NAME="css"
###
# SCRDS_BIN is the binary used to run the
# server, for srcds linux, it is commonly
# ''srcds_run''
#
# The reason it is prefixed by ./ is that
# the script by default changes dir to the
# SRCDS_PATH directory before running the
# binary
SRCDS_BIN="./srcds_run"
###
# SRCDS_PATH defines the physical location
# where srcds is installed;
# for instance:
# ''/home/customer/srcds/''
SRCDS_PATH="."
###
# SRCDS_PIDFILE lets you specify a pidfile.
# if you want the pidfile in another location
# than the base dir of $SRCDS_PATH, you need
# to specify the full path;
# for instance:
# ''/home/customer/tmp/warserver.pid''
SRCDS_PIDFILE="${SRCDS_NAME}.pid"
###
# SRCDS_OPTS is all the default start options
# for the server that you cannot set in the
# server config files. Options such as tickrate,
# ip, port and max_fps are set here
SRCDS_OPTS="-game cstrike -console \
    -autoupdate -pidfile ${SRDCS_PIDFILE} \
    -tickrate 100 +maxplayers 12 +map de_dust2 \
    -ip 217.78.96.31 -port 27015 +fps_max 600"

#############################################
##  DO NOT EDIT ANYTHING BELOW THIS LINE!  ##
#############################################
usage() {
    echo "Usage: ${SRCDS_NAME} (stop|start|restart)"
    exit 2
}

if [ -z $1 ]; then
    usage
fi

srcds_start() {
    OWD=`pwd`
    cd $SRCDS_PATH
    screen -AmdS ${SRCDS_NAME} ${SRCDS_BIN} ${SRCDS_OPTS}
    cd $OWD
}

srcds_stop() {
    screen -dr ${SRCDS_NAME} -X quit
}

srcds_restart() {
    srcds_stop
    srcds_start
}

    
case $1 in
    stop)
        srcds_stop
    ;;
    start)
        srcds_start
    ;;
    restart)
        srcds_restart
    ;;
    *)
        usage
esac
        
exit 0
Reply
#32
ah it is still using screen. then simply add into /etc/screenrc at the end a line like this:
Code:
setenv LD_PRELOAD '/path/to/your/libBEpingboost.so.1.0.1'

and of course adjust the path accordingly...

beware this will preload the lib to everything you run inside a screen. if that is not what you want you should make a copy of the screenrc file, modify that copy with the setenv command and run screen with the "-c /path/to/the/screenrc" option in your run script.
http://www.fpsmeter.org
http://wiki.fragaholics.de/index.php/EN:Linux_Optimization_Guide (Linux Kernel HOWTO!)
Do not ask technical questions via PM!
Reply
#33
(08-06-2010, 07:53 PM)BehaartesEtwas Wrote:  ah it is still using screen. then simply add into /etc/screenrc at the end a line like this:
Code:
setenv LD_PRELOAD '/path/to/your/libBEpingboost.so.1.0.1'

and of course adjust the path accordingly...

beware this will preload the lib to everything you run inside a screen. if that is not what you want you should make a copy of the screenrc file, modify that copy with the setenv command and run screen with the "-c /path/to/the/screenrc" option in your run script.

I'm sorry, I'm a bit newbee into Linux things so, I understand the manipulation of the screenrc, I added the line
Code:
setenv LD_PRELOAD '/path/to/your/libBEpingboost.so.1.0.1'
as last line, but now I must do what with my init ? :s

Code:
LD_PRELOAD=/home/wolwx/SERVERS/CSS/libBEpingboost.so.1.0.1 FPS=2500

I tried to restart them but without change ...

Perhaps I need to restart my Debian ?

And in case if I try to use a copy paste of the etc/screenrc file, how I call it differently than the original one into my init script ?
Reply
#34
hi,
can it works with hlds ? even its speed up ?
Reply
#35
hlds will run with accelerated game play when it runs with more than 1000 fps. the lib can do that, but it doesn't make much sense... (note that hlds will never display higher fps than 1000 in stats command, you need to run host_speeds 1 directly at server console, not via rcon, for this to be seen).
http://www.fpsmeter.org
http://wiki.fragaholics.de/index.php/EN:Linux_Optimization_Guide (Linux Kernel HOWTO!)
Do not ask technical questions via PM!
Reply
#36
sh-3.2$ cd /home/hlds/orangebox
sh-3.2$ LD_PRELOAD=/home/hlds/Desktop/Downloads/libBEpingboost.so.1.0.1 FPS=10000 ./srcds_run -game cstrike -maxplayers 11 -ip 192.168.0.4 -port 27015 +map de_dust2 +fps_max 10000000000
Auto detecting CPU
Using default binary: ./srcds_linux
Server will auto-restart if there is a crash.
Using breakpad minidump system
Using breakpad crash handler

Console initialized.
Game.dll loaded for "Counter-Strike: Source"
Setting breakpad minidump AppID = 240
Forcing breakpad minidump interfaces to load
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Installing breakpad exception handler for appid(240)/version(4421)
maxplayers set to 11
Unknown command "r_decal_cullsize"
Network: IP 192.168.0.4, mode MP, dedicated Yes, ports 27016 SV / 27006 CL
ConVarRef room_type doesn't point to an existing ConVar
Executing dedicated server config file
[S_API FAIL] SteamAPI_Init() failed; unable to update local steamclient.dll. Continuing with current version anyway.
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Failed to load Steam ServiceServiceStart: failed to startexec: couldn't exec server.cfg
Connection to Steam servers successful.
VAC secure mode is activated.
**********************************************************************
BEpingboost Copyright © 2009 BehaartesEtwas@fragaholics.de
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions.
Released under GPLv3 license.

Version: 2009-12-22/1
Initialized with 10000 fps nominal
**********************************************************************
get only 1000FPS
wtf?
Reply
#37
Read the Readme and you will see what you are doing wrong. Anyway fps_max 70 would be enough for your server.
Interactive web based config creator for CS, CSS, TF2 and DODS
Creates server and client configs in an explained dialog.

You`ll also find precompiled debian gameserver kernels for download
Reply
#38
you need to use fps_max 0
I think that part is missing in the readme... But Terror is right, 66 fps are the most preferable fps to have for cs:s now... (more precise: run orangebox servers with fps matching their tickrate)
http://www.fpsmeter.org
http://wiki.fragaholics.de/index.php/EN:Linux_Optimization_Guide (Linux Kernel HOWTO!)
Do not ask technical questions via PM!
Reply
#39
I have error:
ERROR: ld.so: object '/root/server/libBEpingboost.so.1.0.1' from LD_PRELOAD cannot be preloaded: ignored.
Reply
#40
pretty normal on 64 bit systems. ignore that message.

EDIT: I am thinking of taking this lib down. There is really no use in it, especially since also CS:S got updated to the oragen box. Run your server with 66 fps (or whatever your tickrate is), everything else is bullshit!
http://www.fpsmeter.org
http://wiki.fragaholics.de/index.php/EN:Linux_Optimization_Guide (Linux Kernel HOWTO!)
Do not ask technical questions via PM!
Reply
#41
(01-04-2011, 08:18 PM)BehaartesEtwas Wrote:  pretty normal on 64 bit systems. ignore that message.

EDIT: I am thinking of taking this lib down. There is really no use in it, especially since also CS:S got updated to the oragen box. Run your server with 66 fps (or whatever your tickrate is), everything else is bullshit!

hey, i don't see any thread explaining it but could you help explain why 66 fps is the best for the server and why everything else is useless.

Thank You
Reply
#42
We discussed this a couple of times. Many of us made larger (blind) tests. With that result.
Also read this:
http://forums.srcds.com/viewpost/93672#pid93672

Compare it with filming a tv with a high speed camera. Where tickrate is like 25 (on PAL system) and fps is the highspeed camera you are using. You can take 1000 pictures but only will get 25 different pictures.
With servers fps are more or less like network operations per second.
Interactive web based config creator for CS, CSS, TF2 and DODS
Creates server and client configs in an explained dialog.

You`ll also find precompiled debian gameserver kernels for download
Reply
#43
more precisely: since the orangebox, servers use a dedicated thread for receiving network packets. before, the only reason for having higher fps than the tickrate was, that only during frame processing the server could receive network packets. in between packets had to wait until the next frame, thus adding an unknown and varying additional latency (e.g. 0-10ms for 100fps). that reduced the precision of the lag/latency compensation (as the latency cannot be compensated if unknown). now this effect is gone, so there is no reason to have higher fps. as terrorkarotte said, the additional frames do not change anything (but increase the cpu load of course).
http://www.fpsmeter.org
http://wiki.fragaholics.de/index.php/EN:Linux_Optimization_Guide (Linux Kernel HOWTO!)
Do not ask technical questions via PM!
Reply
#44
i use a script which produce 1000 or else fps on my system, but only on intel system. does have someone an idea why is amd and intel complete different? when i want 1000fps on intel machines > no problems. when i start the same lib on amd ones i will get 2000-3000fps. i think its the timer or something else, but tsc e.g. is the same. any ideas?

-p
Reply
#45
idea: don't use the lib and use fps_max 70 Toungue

I think nobody can help without the source code or at least specific details on the implementation.
http://www.fpsmeter.org
http://wiki.fragaholics.de/index.php/EN:Linux_Optimization_Guide (Linux Kernel HOWTO!)
Do not ask technical questions via PM!
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)