How do I get 1000fps on my HL1/Source/Orangebox server?

Ask questions about dedicated servers here and we and other users will do our best to answer them. Please also refer to the self-help section for tutorials and answers to the most commonly asked questions.
Post Reply
User avatar
Edge100x
Founder
Founder
Posts: 12945
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

How do I get 1000fps on my HL1/Source/Orangebox server?

Post by Edge100x »

1. You could run the server on Windows 2008, with "srcdsfpsboost.exe" running in the background, and enable HPET under the "advanced options" section of the "Server control" page in your control panel. This is the easiest solution.

2. You could run the server on our Gentoo Linux install, using the kernel we provide. (The CentOS install's kernel won't work as well.) To achieve a stable 950 to 1000fps, start your HL1 server with a command line that looks like this:

Code: Select all

chrt -r 20 ./hlds_run -game xxxxx +ip xxx.xxx.xxx.xxx +maxplayers xx -pingboost 2
Or your Source/Orangebox server with a command line like this:

Code: Select all

chrt -r 20 ./srcds_run -game xxxxx -ip xxx.xxx.xxx.xxx +maxplayers xx
The "chrt" bit of this tells the kernel to run the process as "real-time", and removes the slack on its timers, allowing for a higher sustained FPS (the numerical RT priority that you use does not make a noticeable difference here).

Whichever method you use, make sure to check the FPS remotely with "rcon stats", rather than typing it directly into the server's console. Typed directly there, "stats" gives erroneous output.

Additionally, make sure that your "server.cfg" file specifies:

- A sys_ticrate of 0 (unlimited) or 2000+, for HL1-based games
- A fps_max of 0 (unlimited) or or 2000+, if you're running a Source or Orangebox-based game
User avatar
Edge100x
Founder
Founder
Posts: 12945
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: How do I get 1000fps on my HL1/Source/Orangebox server?

Post by Edge100x »

For HL1-based games, you could also use -pingboost 3 for what looks like a constant 1000fps. In this case, you will also need to specify a lower sys_ticrate, of 1000 or so; if you go too high (especially >2000), the game will start running too fast. (The game is actually lying to you when it says 1000fps -- it reports that whenever it is at 1000fps or higher, as it can't handle the extra fps.)

Generally, we recommend sticking with -pingboost 2 for the most predictable performance.
maverick03191989
A regular
A regular
Posts: 37
Joined: Sat Dec 10, 2011 1:47 pm

Re: How do I get 1000fps on my HL1/Source/Orangebox server?

Post by maverick03191989 »

is "srcdsfpsboost.exe" what you guys run on managed VDSs?
Image
User avatar
Edge100x
Founder
Founder
Posts: 12945
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: How do I get 1000fps on my HL1/Source/Orangebox server?

Post by Edge100x »

We run something else (written in-house) but it has a similar effect.

This post was likely meant to be in the Knowledgebase.
ViRuSeS
A regular
A regular
Posts: 41
Joined: Thu Dec 04, 2014 6:25 am

Re: How do I get 1000fps on my HL1/Source/Orangebox server?

Post by ViRuSeS »

And if i want to run 2 hlds servers ? i use same number ? 20 ?
$atanic $pirit
This is my homepage
This is my homepage
Posts: 251
Joined: Tue Jan 28, 2014 5:32 am

Re: How do I get 1000fps on my HL1/Source/Orangebox server?

Post by $atanic $pirit »

chrt 20 will stay the same, as it sets the real time priority of that specific program.
Image
ViRuSeS
A regular
A regular
Posts: 41
Joined: Thu Dec 04, 2014 6:25 am

Re: How do I get 1000fps on my HL1/Source/Orangebox server?

Post by ViRuSeS »

I'm using this startup lines

Code: Select all

su steam -c 'cd /home/steam/steamcmd/27015 && ./hlds_run -game cstrike -master -secure -autoupdate -pingboost 2 +port 27015 +maxplayers 11 -noipx -sys_ticrate 1000 +sv_lan 0 +map de_dust2 &'
su steam -c 'cd /home/steam/steamcmd/27016 && ./hlds_run -game cstrike -master -secure -autoupdate -pingboost 2 +port 27016 +maxplayers 14 -noipx -sys_ticrate 1000 +sv_lan 0 +map de_dust2 &'
I auto-start 1.6 servers on centos 6.5 from nano /etc/rc.local, Can you tell me how the lines should be ?
Post Reply