IPB

Welcome Guest ( Log In | Register )


Welcome to the nsMod Community Forum (formerly modNS) - please have a look around.
Its recommended that you create a member account so you can access all the features available to members.
Forum activity / posting rewards you with many privileges. Registration is free and only takes a few moments to complete.

3 Pages V  < 1 2 3 >  
Reply to this topicStart new topic
> CPU Stat, Show server CPU use in game
Sandman
post Feb 29 2004, 01:32 AM
Post #11
  


Plugin Support
Group Icon

Group: Developer / ServerOp
Member No.: 284
Joined: 27-February 04

Posts: 172
Posts per day: 0.07
Topics Started: 5
Skin: SubBlackS&L

User's local time:
Sep 5 2010, 11:48 AM
From: Philadelphia, PA
Windows or Linux ?: Win


 
 
I have tried this in the following NS versions on WON.... (/me still don't like steam)

1.04 /w MM 1.16.2 Working
2.01 /w MM 1.17 Working
3.0 beta3 /w MM 1.17a Not working

It seems NS 3.0 is the only version it doesn't work in.
 
Go to the top of the page
PM  
+Quote Post
 
Head crab
post Feb 29 2004, 01:50 AM
Post #12
  


Xurotcan
Group Icon

Group: Inactive

Member No.: 184
Joined: 20-January 04

Posts: 237
Posts per day: 0.10
Topics Started: 9
Skin: Full Metal Blue

User's local time:
Sep 5 2010, 11:48 AM
Windows or Linux ?: Win


 
 
I used it in NS 3.0 Beta 3 with Steam and it worked...

I added the following in server.cfg:

cpustat_freq 6
cpustat_numcpu 1
cpustat_display 0
cpustat_passwd modns

Then in-game, I typed the following in console with rcon:

rcon cpustat 1 1

for: cpustat <userid> <switch>
where <userid> is your ID on the server, if you're the first to join the server, you get 1, if you're second, you get 2, if you're the 2345th to join, you get 2345, etc...

Type "status" in console to get it... after you've typed the cpustat command, it should work. It will display randomly for a few seconds...

And as I said, cl_autohelp must be set to 1
 
Go to the top of the page
PM  
+Quote Post
 
Bever
post Feb 29 2004, 02:30 PM
Post #13
  


Hatchling
Group Icon

Group: Inactive

Member No.: 252
Joined: 14-February 04

Posts: 12
Posts per day: 0.01
Topics Started: 0
Skin: Full Metal Blue

User's local time:
Sep 5 2010, 04:48 PM


 
 
Thanks, its working when i use it the way you said. (IMG:http://www.nsmod.org/forums/style_emoticons/default/rolleyes.gif)
 
Go to the top of the page
PM  
+Quote Post
 
prodigy
post Feb 2 2005, 10:03 PM
Post #14
  


Krahntnal
Group Icon

Group: V.I.P.
Member No.: 1
Joined: 28-August 03

Posts: 63
Posts per day: 0.02
Topics Started: 25
Skin: Full Metal Blue

User's local time:
No Information
From: Vancouver, B.C. Canada
Windows or Linux ?: Win


 
 
Does anyone have any bugs to report for this plugin, I'm available to hack some code for the next few days and would like to take care of any if they exist.
 
Go to the top of the page
PM  
+Quote Post
 
Brackhar
post Mar 7 2005, 10:48 AM
Post #15
  


Omnisoroth
Group Icon

Group: Inactive

Member No.: 498
Joined: 23-June 04

Posts: 29
Posts per day: 0.01
Topics Started: 0
Skin: Full Metal Blue

User's local time:
Sep 5 2010, 07:48 AM


 
 
The current version of this plugin seems incompatible with the latest version of Metamod and NS 3.0 Final. It crashes the server as soon as I try to get statistics.

-Brackhar
 
Go to the top of the page
PM  
+Quote Post
 
Depot
post Mar 9 2005, 12:03 AM
Post #16
  


The Elder Administrator
Group Icon

Group: Admin
Member No.: 84
Joined: 11-October 03

Posts: 6,939
Posts per day: 2.75
Topics Started: 409
Skin: Avalon

User's local time:
Sep 5 2010, 10:48 AM
From: NE Florida USA
Windows or Linux ?: Win


 
 
I was successful in getting this to work on a win32 hlds BUT I don't have it set up correctly: CPU in Use: 100% Entity Count: 231 Server FPS: 90

Any clue what I need to do?
 
Go to the top of the page
PM  
+Quote Post
 
LordSkitch
post Mar 9 2005, 06:27 AM
Post #17
  


Plugin Support
Group Icon

Group: Developers
Member No.: 718
Joined: 23-September 04

Posts: 268
Posts per day: 0.12
Topics Started: 8
Skin: Full Metal Blue

User's local time:
Sep 5 2010, 10:48 AM
From: Alvin, TX
Windows or Linux ?: Win


 
 
Workin on mine.. I don't have my bots enabled at the moment cause everyone kept complaining.

CPU in Use: 5% Entity Count 275 Server FPS 94

With the new server I'm building tomorrow, those FPS better be in the triple digits.

sys_ticrate 1000

'Why would you want more than 100 fps, Skitchy?' you ask.

Simple formula, 1000 / fps = added ping in ms

At 100 fps, no matter what you do, the server will be adding a 10 ping to everyone, because it's polling frames 100 times a second. At 300 fps, there's a 3ms lag, at 1000 fps, its 1ms. When you start dropping into the 30s, as most servers seem to do, it's adding 33ms to all the pings. A while back my server was getting SEVEN frames a sec, which added 143ms to everyone.

BUT.. there's a caveat. You need a program to force your OS into using a high-res timer instead of the low one it commonly uses. So, just open Media Player or something similar, and watch your fps bop up to unprecedented levels, and your pings drop like rocks.

There's another.. I've heard scuttlebutt that some Intels and some AMDs don't support a full 1000fps and you might only get 100... something to look into.

(IMG:http://www.the-coming.com/images/fps.jpg) (IMG:http://www.nsmod.org/forums/style_emoticons/default/blink.gif) (IMG:http://www.nsmod.org/forums/style_emoticons/default/blink.gif) (IMG:http://www.nsmod.org/forums/style_emoticons/default/blink.gif)
 
Go to the top of the page
PM  
+Quote Post
 
Depot
post Mar 9 2005, 12:34 PM
Post #18
  


The Elder Administrator
Group Icon

Group: Admin
Member No.: 84
Joined: 11-October 03

Posts: 6,939
Posts per day: 2.75
Topics Started: 409
Skin: Avalon

User's local time:
Sep 5 2010, 10:48 AM
From: NE Florida USA
Windows or Linux ?: Win


 
 
Very interesting. First off, let's try to figure out why mine is showing 100% constantly. Are you on a Windows or Linux server? If Windows, did you install the p4_opitomized cpustat_ns_mm.dll or the normal one? Would the p4_opitomized cpustat_ns_mm.dll work on an AMD machine? edit Tried p4_opitomized version, no change.
I am also ignorant on FPS, although I am somewhat aware of it's importance. Is my FPS of 90 good or bad? If bad how can I improve it?

Thanks for all your help, and patience.

This post has been edited by depot: Mar 9 2005, 02:21 PM
 
Go to the top of the page
PM  
+Quote Post
 
LordSkitch
post Mar 10 2005, 06:19 AM
Post #19
  


Plugin Support
Group Icon

Group: Developers
Member No.: 718
Joined: 23-September 04

Posts: 268
Posts per day: 0.12
Topics Started: 8
Skin: Full Metal Blue

User's local time:
Sep 5 2010, 10:48 AM
From: Alvin, TX
Windows or Linux ?: Win


 
 
My hands are all cut to hell so Ima keep it short..

I'm runnin a Win2k3 Enterprise server, Athlon TBird 1.33ghz, it's usin the win32 addons/cpustat/dlls/cpustat_ns_mm.dll line in metamod's plugins, Keep in mind the plugin, as far as I can tell... just reads total CPU usage, not NS's usage, so if you have other processes using CPU time it'll register on the plugin... (I think)

And at 90 FPS,

1000 / 90 = 11.1 ms added, which to ME is fine.. but people get cranky about their pings, so if you wanna boost it, just do like sys_ticrate 200 or what have you.. if it doesn't go up, open up media player and shrink it...
 
Go to the top of the page
PM  
+Quote Post
 
Depot
post Mar 10 2005, 12:36 PM
Post #20
  


The Elder Administrator
Group Icon

Group: Admin
Member No.: 84
Joined: 11-October 03

Posts: 6,939
Posts per day: 2.75
Topics Started: 409
Skin: Avalon

User's local time:
Sep 5 2010, 10:48 AM
From: NE Florida USA
Windows or Linux ?: Win


 
 
I dont hear any complaining about pings or latencies, and I don't understand sys_ticrate and what it does, so I'll leave well enough alone there.

I still don't see why it's measuring cpu usage at a constant 100%.
 
Go to the top of the page
PM  
+Quote Post
 

3 Pages V  < 1 2 3 >
Reply to this topicStart new topic

 

RSS Lo-Fi Version Time is now: 5th September 2010 - 03:48 PM
Skin Design By: ___T_H_E_G_A_M_E___ for Dream-Skins.Net