SRCDS Steam group


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[RESOLVED] Very unstable HLDS FPS
#1
Big Grin 
Hi there!
So recently I bought a computer to run HLDS and SRCDS. Mainly HLDS though. When running the SRCDS the FPS is awesome and it works great, but the HLDS has terribly unstable FPS. Here's a sample of the stats command :

Code:
CPU   In    Out   Uptime  Users   FPS    Players
0.80  0.00  0.00       0     0   50.26       0
stats
CPU   In    Out   Uptime  Users   FPS    Players
0.80  0.00  0.00       0     0   50.22       0
stats
CPU   In    Out   Uptime  Users   FPS    Players
1.00  0.00  0.00       0     0   50.18       0
stats
CPU   In    Out   Uptime  Users   FPS    Players
1.00  0.00  0.00       0     0   99.55       0
stats
CPU   In    Out   Uptime  Users   FPS    Players
1.00  0.00  0.00       0     0   98.90       0
stats
CPU   In    Out   Uptime  Users   FPS    Players
1.00  0.00  0.00       0     0   99.24       0
stats
CPU   In    Out   Uptime  Users   FPS    Players
1.00  0.00  0.00       0     0   99.23       0
stats
CPU   In    Out   Uptime  Users   FPS    Players
1.00  0.00  0.00       0     0   50.24       0
stats
CPU   In    Out   Uptime  Users   FPS    Players
1.00  0.00  0.00       0     0   50.24       0
stats
CPU   In    Out   Uptime  Users   FPS    Players
0.50  0.00  0.00       0     0   50.28       0

OS: Ubuntu Server, newest version.
Hardware:
CPU: AMD Athlon™ 64 X2 4450e 2,30GHz.
RAM: 3 072 GB, 800MHz.
HDD: 320GB, 7200 RPM.
Connection: 30/30Mbit


HLDS Commandline:
Code:
./hlds_run -game cstrike -autoupdate +maxplayers 10 +map de_nuke +ip 192.168.1.51 -port 27015 -secure
I also tried with -pingboost 1,2 and 3, but it didn't change anything.

server.cfg:
Code:
mp_autokick 0
mp_autocrosshair 0
mp_autoteambalance 0
mp_buytime .25
mp_consistency 1
mp_c4timer 35
mp_fadetoblack 0
mp_flashlight 1
mp_forcechasecam 2
mp_forcecamera 2
mp_footsteps 1
mp_freezetime 2
mp_friendlyfire 0
mp_hostagepenalty 0
mp_limitteams 6
mp_maxrounds 0
mp_playerid 0
mp_roundtime 1.75
mp_timelimit 999
mp_tkpunish 0
mp_startmoney 16000

sv_maxrate 25000
sv_minrate 0
sv_maxupdaterate 100
sv_minupdaterate 30
sv_unlag 1
sv_maxunlag .5
sv_unlagsamples 1
sv_unlagpush 0
sv_voiceenable 1
sv_aim 0
sv_allowdownload 0
sv_allowupload 0
sv_alltalk 0
sv_proxies 2
sv_cheats 0
sv_clienttrace 1.0
sv_clipmode 0
sv_friction 4
sv_gravity 800
sv_maxspeed 320
sv_airaccelerate 10
sv_airmove 1
sv_send_logos 1
sv_send_resources 1
sv_stepsize 18
sv_stopspeed 75
sv_timeout 65

allow_spectators 0
decalfrequency 60
edgefriction 2
host_framerate 0
pausable

fps__max 100
sys_ticrate 100

Note that CPU usage during the stats sample was 0-1% !!!!

The kernel is unmodded 100hz.
PLEASE HELP ME! :O
If you need any more info, please say.

Thanks is advance,
DoGGy.
Reply
#2
Trying to solve this by compiling the latest linux kernel at 1000hz. I also have problems compiling the kernel...

I made a thread in the ubuntu forums: http://ubuntuforums.org/showthread.php?p=7020247#post7020247

I'd apprecciate help for that too!
Reply
#3
Bump!!! Come on guys I really need some advice!!

Edit: I just finnished installing my new 1000hz kernel and it works fine, I use sys_ticrate 1000 and fps_max 1000 and -pingboost 3. It has 5-6% CPU usage when only I am playing, is that too high?
Also I can't get the FPS to reach 1000, it stays at 700~800 FPS. Any way to get it to 1000? I think my CPU can handle it.
Reply
#4
Nah should be fine, with 5 - 6% CPU usage.

Windows Vista(CS1,6):
Code:
] stats
CPU   In    Out   Uptime  Users   FPS    Players
1.56  0.00  0.00       1     0 1000.00       0
] stats
CPU   In    Out   Uptime  Users   FPS    Players
1.56  0.00  0.00       1     0  249.16       0
] stats
CPU   In    Out   Uptime  Users   FPS    Players
0.78  0.00  0.00       1     0  502.25       0
] stats
CPU   In    Out   Uptime  Users   FPS    Players
1.04  0.00  0.00       1     0 1000.00       0

Yes it's possible.(I think!)..

First of all try with fps_max 0

And you will need some sort of new kernel to give it above that FPS, don't ask where to find it. I have seen some of them at these forums. Not sure.
Reply
#5
Thanks.
I tried with fps_max 0 but that wasn't enough.
So I put sys_ticrate to 1100 and it's superstable at 1000 now. Smile
But then again I have another question, will hitbox/gameplay suffer from sys_ticrate 1100?
Reply
#6
A little.

But also the -tickrate.

1000FPS & 100tick is the best you can get. More(+1000) FPS will make the server precalculate stuff and if it's wrong, there will be spikes.
Reply
#7
Then how can I get the fps to a stable 1000 when using fps_max 0 and sys_ticrate 1000? :/


Edit;
I will test later how SRCDS works with the 1000hz kernel, I'm pretty sure it is gonna work better than HLDS for some reason.

Also I think I will install Debian. I think it's better. I will also try to optimize my kernel according to this :http://wiki.fragaholics.de/index.php/EN:Linux_Kernel_Optimization
Reply
#8
doggy93 Wrote:Then how can I get the fps to a stable 1000 when using fps_max 0 and sys_ticrate 1000? :/

Not quite sure on that Smile
Reply
#9
Hehe. Smile
I'll just play around with kernel configuration and other distro's. Maybe I'll have some improvement. ^^
I'll definately post here when I've tested Debian + the wiki.fragaholics guide.

Brb debian
Reply
#10
Ok cool Smile
Reply
#11
Finally it's done, I've had to recompile 2 kernels, but in the end it was worth it. Smile
When following the Wiki.Fragaholics.De Linux Kernel Optimization guide I discovered that the newest kernel version and patch version really were unstable. (2.6.29.1-rt4)
The HLDS FPS jumped wildly from 1000fps to 300fps, and people had awful pings. However, I decided not to give up. I downloaded, patched and installed an older version of the kernel and RT patch. (2.6.26.8-rt16)
Now the FPS was alot more stable even though it regularly jumped to 600~700 fps. This was of course not good enough for me Big Grin . So I googled such keywords as "HLDS Pingboost" and "Ping booster", and ended up here: HLDS Linux PingBooster

I downloaded it and guess what. It helped. My FPS is now stable at 970~1000 and I never lagg. I haven't tested it with other players yet though. Anyway, I really reccomend the UDPSoft HLDS Ping boost and the Linux Kernel Optimization guide.

Links:
Linux Kernel Optimization Guide
HLDS Linux PingBooster
Reply
#12
Sweet! Thanks for sharing Smile
Reply
#13
No problem! Big Grin

Also, I'd like to add a little demonstration of how powerful the little idler tool from Kernel Optimization Guide really is; I used Idler on the second line. Smile


.   idler_f (Size: 75.37 KB / Downloads: 150)
Click to view full-size
Reply
#14
Little update here;
I figured out how that Pingbooster works, a big disappointment to be honest. Toungue
All it really does is setting +sys_ticrate to 10000.
Yes, you read it right. Not 1000, but 10000. Big Grin
So, having the +sys_ticrate at 10 000 is recommended. To me it turned out to be ALOT more stable than +sys_ticrate 1 000!!!

But then again, everyone have different kernels and patches and server settings, so we all have to spend some hours just testing out different settings and all that. Smile
Reply
#15
(04-09-2009, 05:17 AM)doggy93 Wrote:  Little update here;
I figured out how that Pingbooster works, a big disappointment to be honest. Toungue
All it really does is setting +sys_ticrate to 10000.
Yes, you read it right. Not 1000, but 10000. Big Grin
So, having the +sys_ticrate at 10 000 is recommended. To me it turned out to be ALOT more stable than +sys_ticrate 1 000!!!

But then again, everyone have different kernels and patches and server settings, so we all have to spend some hours just testing out different settings and all that. Smile

The booster link is dead :/ Kan we get an update? Big Grin
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)