Go Back   RunUO - Ultima Online Emulation > RunUO > Server Support on Windows

Server Support on Windows Get (and give) support on general questions related to the RunUO server itself.

Reply
 
Thread Tools Display Modes
Old 07-09-2003, 12:04 AM   #1 (permalink)
I won?!?
 
Cyberspud's Avatar
 
Join Date: Sep 2002
Location: Sandusky, Ohio
Age: 32
Posts: 164
Default Looking for advice: Reducing CPU Utilization (Beta33)

I am looking for a little friendly advice on reducing CPU usage...

I upgraded my shard to Beta33 and my processor utilization has gone from an average of 3% (with Beta32) to a constant 95% with Beta33 as well as using almost 100 more MB of RAM. The lag is very annoying (like every 3 steps, a few seconds of lag, 3 steps, a few seconds of lag, wash rinse repeat...).

I poked around the forums and tried a few things (like making sure the NPC "idle" mode was enabled) and it hasn't helped. I did disable the new pathfinding and that did bring the utilization down a tad, but not enough.

I am figuring I didn't update something correctly, but I just wanted to check with the experts first. For now, I reverted back to Beta32 (ahh, backups are good).

Thank you very much for your time. It is appreicated (honestly).

8)
__________________
Cyberspud
"You don't have to attend every argument you are invited to."
New Sosaria: The Second Coming
RunUOXBox
Cyberspud is offline   Reply With Quote
Old 07-09-2003, 07:08 AM   #2 (permalink)
Newbie
 
Join Date: Jun 2003
Age: 30
Posts: 29
Default can you tell me which pachts do u use?

the xp server paches
or for the win9x?
yoyu007 is offline   Reply With Quote
Old 07-09-2003, 12:11 PM   #3 (permalink)
Forum Expert
 
Join Date: Nov 2002
Posts: 630
Default

Make sure your playersensitive is true. I know when you upgrade the shards will by default load everything and cause your usage to skyrocket. I turn on sectors so it uses only whats needed.

Try basecreature.cs and look for PlayerSensitive

make it true and see what you get.
Static Loader is offline   Reply With Quote
Old 07-09-2003, 12:52 PM   #4 (permalink)
I won?!?
 
Cyberspud's Avatar
 
Join Date: Sep 2002
Location: Sandusky, Ohio
Age: 32
Posts: 164
Default

Thanks for the replies :P

Yoyu007, I'm running it on a fully patched Windows Server 2003 (Web Edition) ... which I kind of doubt is the problem as nothing changed OS-wise between b32 and b33.

I *thought* I checked that, Static Loader, but I will definitely double check it when I get home tonight. That is surely what it seems like...like all of a sudden all the NPC's are being processed. I'll let you know either way. Like I said, I am sure it is user error...

Again, thanks for the replies...the help is much appreciated!
__________________
Cyberspud
"You don't have to attend every argument you are invited to."
New Sosaria: The Second Coming
RunUOXBox
Cyberspud is offline   Reply With Quote
Old 07-09-2003, 10:21 PM   #5 (permalink)
I won?!?
 
Cyberspud's Avatar
 
Join Date: Sep 2002
Location: Sandusky, Ohio
Age: 32
Posts: 164
Default

ops: Sigh ops:

I must have overwritten my custom BaseCreature with the default one ... the PlayerRange setting was indeed set to false.

Made that change and everything is just as it should be.

Like I said ... user error.

Thank you very much, Static Loader, for the help.

*Sulks in the corner*
__________________
Cyberspud
"You don't have to attend every argument you are invited to."
New Sosaria: The Second Coming
RunUOXBox
Cyberspud is offline   Reply With Quote
Old 07-09-2003, 10:44 PM   #6 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

Cyber you need/want a C# community :-)

* I need good people to help the new guys * :-)

Your past experience is invaluable :-)

Might expand it :-)
Phantom is offline   Reply With Quote
Old 07-10-2003, 06:29 AM   #7 (permalink)
Lost User
Guest
 
Posts: n/a
Default

Hmm.. what does the disable new pathfinding and enabling the npc idle thingy do?

Does it increase the server performance? cause eversince I upgraded to beta33 its bringing my dual p3 server to a crawl...

I tried doing a search thru the forums and can't seem to find any info...
  Reply With Quote
Old 07-10-2003, 11:45 AM   #8 (permalink)
I won?!?
 
Cyberspud's Avatar
 
Join Date: Sep 2002
Location: Sandusky, Ohio
Age: 32
Posts: 164
Default

Quote:
Originally Posted by Phantom
Cyber you need/want a C# community :-)

* I need good people to help the new guys * :-)

Your past experience is invaluable :-)

Might expand it :-)
Heh, Phantom, I'm not sure if that is a compliment, or if you are busting on my newbieness. I am really starting to dig this community ... to be honest, I never thought I would find the same kind of camaraderie over here that I felt on UOXC, but I am constantly blown away at the help I receive (and I need alot). Kudos to all you guys for making these forums an enjoyable place to visit (even if I am doing it at work :twisted: ).

Shinji, if you do what Static Loader describes above, it puts the NPC's in "idle" mode ... basically, the only NPC's that are "processed" are the ones that are around the player. This really helps cut down on lag...this is how most emus do it (I think). As for turning off the pathfinding, I re-enabled it because after the Idle thing, I was back down to 3% CPU.
__________________
Cyberspud
"You don't have to attend every argument you are invited to."
New Sosaria: The Second Coming
RunUOXBox
Cyberspud is offline   Reply With Quote
Old 07-10-2003, 02:32 PM   #9 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

Cyber little of both

Your new to C# but your past experience will make you useful :-) Hell you might learn a thing or two :-)

I just need good programers :-) to hang around.
Phantom is offline   Reply With Quote
Old 07-11-2003, 04:42 PM   #10 (permalink)
Lost User
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by Cyberspud

Heh, Phantom, I'm not sure if that is a compliment, or if you are busting on my newbieness. I am really starting to dig this community ... to be honest, I never thought I would find the same kind of camaraderie over here that I felt on UOXC, but I am constantly blown away at the help I receive (and I need alot). Kudos to all you guys for making these forums an enjoyable place to visit (even if I am doing it at work :twisted: ).

Shinji, if you do what Static Loader describes above, it puts the NPC's in "idle" mode ... basically, the only NPC's that are "processed" are the ones that are around the player. This really helps cut down on lag...this is how most emus do it (I think). As for turning off the pathfinding, I re-enabled it because after the Idle thing, I was back down to 3% CPU.
Cyberspud don't mind telling me which files and lines to edit to disable path finding?

Thanks in advance.
  Reply With Quote
Old 07-11-2003, 08:15 PM   #11 (permalink)
I won?!?
 
Cyberspud's Avatar
 
Join Date: Sep 2002
Location: Sandusky, Ohio
Age: 32
Posts: 164
Default

Open up your \RunUO\Scripts\Engines\Pathing\PathFollower.cs and look right near the top ... you should see this line:
[code:1]
private static bool Enabled = true;
[/code:1]
Change it to this:
[code:1]
private static bool Enabled = false;
[/code:1]
I believe this will disable the pathfinding.

...

To be honest, I wouldn't suggest it. This new pathfinding is great. :!:
__________________
Cyberspud
"You don't have to attend every argument you are invited to."
New Sosaria: The Second Coming
RunUOXBox
Cyberspud is offline   Reply With Quote
Old 07-11-2003, 09:57 PM   #12 (permalink)
Forum Expert
 
Join Date: Nov 2002
Posts: 630
Default

btw cyber, me = sherkborg from uoxc.
Static Loader is offline   Reply With Quote
Old 07-12-2003, 01:26 AM   #13 (permalink)
Lost User
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by Cyberspud
Open up your \RunUO\Scripts\Engines\Pathing\PathFollower.cs and look right near the top ... you should see this line:
[code:1]
private static bool Enabled = true;
[/code:1]
Change it to this:
[code:1]
private static bool Enabled = false;
[/code:1]
I believe this will disable the pathfinding.

...

To be honest, I wouldn't suggest it. This new pathfinding is great. :!:
Hmm, but does disabling the pathfinding help significantly in increasing the system performance?
  Reply With Quote
Old 07-20-2003, 10:10 PM   #14 (permalink)
Forum Expert
 
Join Date: Jun 2003
Location: around
Posts: 1,376
Send a message via ICQ to bean56 Send a message via AIM to bean56
Default

[code:1]public virtual bool PlayerRangeSensitive{ get{ return false; } }

public override void OnSectorDeactivate()
{
if ( PlayerRangeSensitive && m_AI != null )
m_AI.Deactivate();
[/code:1]
is that what u are talkign about making to true cause mines been on false and ive been fine although i do have a p4 2.4ghz 512 ddr, and just starting server so not really any players.
bean56 is offline   Reply With Quote
Old 07-21-2003, 06:30 AM   #15 (permalink)
Krazy_zack
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by bean56
[code:1]public virtual bool PlayerRangeSensitive{ get{ return false; } }

public override void OnSectorDeactivate()
{
if ( PlayerRangeSensitive && m_AI != null )
m_AI.Deactivate();
[/code:1]
is that what u are talkign about making to true cause mines been on false and ive been fine although i do have a p4 2.4ghz 512 ddr, and just starting server so not really any players.

Set it to true and see the performance difference!

Oh and leave pathfinding ON as it doesn't effect server CPU usage THAT much but it is an excellent 'anti player cheet' !
  Reply With Quote
Old 07-21-2003, 08:52 AM   #16 (permalink)
Forum Expert
 
Join Date: Feb 2003
Age: 30
Posts: 515
Default

What does the PlayerRangeSensitive do?
And if it makes performance better why is default set to false? :?
Just curious because im on a 4-5 year old machine and it takes a beating sometimes and anything that will help performance IM INTERESTED

Had 5 people on my server today and im running the server and client on the same pc and it got a little laggy on us sometimes, and after about a hour or 2 RunUO crashed after spawning and beating on a few doom boss's

Im on a 650mhz with 128 SDRAM :evil: :shock:



*Is dying for a new PC*
habitat85 is offline   Reply With Quote
Old 07-21-2003, 08:55 AM   #17 (permalink)
psz
UO Gamers: Demise Administrator
 
psz's Avatar
 
Join Date: Oct 2002
Location: Swamp
Age: 29
Posts: 10,819
Default

IT makes it so that NPCs "stop" if no players are around, thus reducing CPU and RAM usage.

The reason it's not set by default is that it has it's own problems.

Example:


You go to Destard. You fight an Ancient Wyrm. The AW follows you to the entrance, but you run and leave. With PlayerSensitivity set, when you come back to Destard a WEEK later (assuming no one else has), the AW will STILL be by the entrace. With it set to the default, the AW would walk back to where it was.
__________________
psz
Demise' Creator (Retired)
The RunUO.com Forum Moderator Team
Former Official RunUO Scripter (Retired)
Websites:
My 360 Blog
My Gaming Site(Old Link)
My Gaming Site(New Link)
psz is offline   Reply With Quote
Old 07-21-2003, 08:58 AM   #18 (permalink)
Forum Expert
 
Join Date: Feb 2003
Age: 30
Posts: 515
Default

ahh ok I see, but what if the spawner range you run the AW off of is set to 1 for example, it wont go back to the 1 tile radius from the spawner with the sensitive turned to true?
habitat85 is offline   Reply With Quote
Old 07-21-2003, 09:01 AM   #19 (permalink)
psz
UO Gamers: Demise Administrator
 
psz's Avatar
 
Join Date: Oct 2002
Location: Swamp
Age: 29
Posts: 10,819
Default

It will attempt to walk back to the spawner. You can test this in Green Acres.


Create a spawner with homerange 1.

Teleport the creature to someplace just outside of the homerange.


It'll walk back (usually)
__________________
psz
Demise' Creator (Retired)
The RunUO.com Forum Moderator Team
Former Official RunUO Scripter (Retired)
Websites:
My 360 Blog
My Gaming Site(Old Link)
My Gaming Site(New Link)
psz is offline   Reply With Quote
Old 07-22-2003, 05:52 PM   #20 (permalink)
 
Join Date: Jun 2003
Posts: 463
Send a message via ICQ to CraZy_NooB Send a message via AIM to CraZy_NooB
Default

lol...it will attempt to get that far...but with it set to false once the player is out of range it will stop moving...so if you were to test this you should tele it away and then tele away urself, then come back later and see where it is...

btw i can't figure out this quote thing all my quotes look like this...

Quote:
har
and everyone elses has posters name...etc!!!

*is confused*
...
or just stupid
[/quote]
CraZy_NooB is offline   Reply With Quote
Old 07-22-2003, 06:34 PM   #21 (permalink)
Forum Expert
 
Join Date: Feb 2003
Age: 30
Posts: 515
Default

Quote:
Originally Posted by CraZy_NooB
btw i can't figure out this quote thing all my quotes look like this...

Quote:
har
and everyone elses has posters name...etc!!!

*is confused*
...
or just stupid
When you click the quote button on someones post it will default the users name in it

(quote="CraZy_NooB")*is confused*(/quote)
Quote:
Originally Posted by CraZy_NooB
*is confused*
habitat85 is offline   Reply With Quote
Old 07-22-2003, 06:50 PM   #22 (permalink)
 
Join Date: Jun 2003
Posts: 463
Send a message via ICQ to CraZy_NooB Send a message via AIM to CraZy_NooB
Default

har i see thats cool =)

wonder who came up with it

lol[/quote]
CraZy_NooB is offline   Reply With Quote
Old 07-22-2003, 07:14 PM   #23 (permalink)
Forum Expert
 
Join Date: Feb 2003
Age: 30
Posts: 515
Default

lol...
habitat85 is offline   Reply With Quote
Old 07-23-2003, 08:25 PM   #24 (permalink)
 
Join Date: Jul 2003
Posts: 3
Default

I tried setting the playerRange setting to true and re-running the server, but i see no improvement. My cpu usage is stll at 100%. I tried walking away from all NPC and no change.
Vampster is offline   Reply With Quote
Old 08-26-2003, 02:38 PM   #25 (permalink)
 
Join Date: Aug 2003
Posts: 255
Send a message via ICQ to Ali Baba
Default

DO you guys play the 3d client at the same time??

so runuo in the background and at the same time play UO in the foreground??
Ali Baba is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5