Go Back   RunUO - Ultima Online Emulation > RunUO > Core Modifications > Other

Other Cant find a category above, use this one! Core mods not listed above go here!

Reply
 
Thread Tools Display Modes
Old 10-13-2007, 06:44 PM   #1 (permalink)
Account Terminated
 
Join Date: Sep 2007
Age: 38
Posts: 39
Default 50% cpu usage issue

For those who are not updating with the SVNs, here is an article to fix the cpu usage issue that occures on multi core/cpu machines:

Age of Valor :: View topic - Fixing CPU hog issue in RunUO2 RC1 with dual cpu/core

Even if you are on single cpu I would recommend doing this change to avoid future headaches. Not fixed, this causes your server to support little to no players as it eats up the whole cpu (its equivalent to 100% cpu usage on single core)

The fix is very easy to do, in theory, your changing a 0 with a 1. That's it.
osi_layer8 is offline   Reply With Quote
Old 10-13-2007, 10:50 PM   #2 (permalink)
Forum Expert
 
Courageous's Avatar
 
Join Date: Nov 2005
Location: San Diego, CA
Posts: 1,824
Default

Quote:
Originally Posted by osi_layer8 View Post
For those who are not updating with the SVNs, here is an article to fix the cpu usage issue that occures on multi core/cpu machines:

Age of Valor :: View topic - Fixing CPU hog issue in RunUO2 RC1 with dual cpu/core

Even if you are on single cpu I would recommend doing this change to avoid future headaches. Not fixed, this causes your server to support little to no players as it eats up the whole cpu (its equivalent to 100% cpu usage on single core)

The fix is very easy to do, in theory, your changing a 0 with a 1. That's it.
Found that "bug" a long time ago. Agree it's an easy and harmless fix. On my system, I believe I set the sleep interval to some fractional less than millisecond thing and it still drops CPU utilization to nil.

Like this:

Code:
                TimeSpan multiCoreSleep = new TimeSpan( 10000 );
                TimeSpan singleCoreSleep = new TimeSpan( 1000000 );

                while ( !m_Closing ) {
                    Thread.Sleep( m_MultiProcessor ? multiCoreSleep : singleCoreSleep );
Joe.
Courageous is offline   Reply With Quote
Old 10-24-2007, 05:46 AM   #3 (permalink)
Forum Expert
 
Alex21's Avatar
 
Join Date: Jul 2007
Location: Australia, Queensland, Sunshine Coast
Age: 16
Posts: 1,162
Send a message via MSN to Alex21
Default

this is fixed in RC2 right?
__________________
Advertise Your Server On JoinUO!
JoinUO @ - joinuo.com
Alex21 is offline   Reply With Quote
Old 10-24-2007, 08:10 AM   #4 (permalink)
Forum Novice
 
Dereckson's Avatar
 
Join Date: Dec 2005
Location: Belgium
Age: 25
Posts: 260
Send a message via Skype™ to Dereckson
Default

Yep, as you can see on http://svn.runuo.com/repos/runuo/devel/Server/Main.cs
__________________
La connaissance s'accroît quand on la partage.
Share your knowledge, you'll increase it.

Utopia. Votre Monde.
Dereckson is offline   Reply With Quote
Old 10-25-2007, 12:24 AM   #5 (permalink)
Forum Expert
 
Alex21's Avatar
 
Join Date: Jul 2007
Location: Australia, Queensland, Sunshine Coast
Age: 16
Posts: 1,162
Send a message via MSN to Alex21
Default

lol they said it would be out by the end of what month?
__________________
Advertise Your Server On JoinUO!
JoinUO @ - joinuo.com
Alex21 is offline   Reply With Quote
Old 11-01-2007, 06:20 PM   #6 (permalink)
Newbie
 
Join Date: Jul 2003
Posts: 17
Send a message via Yahoo to rsharp
Default a fix

does anyone actually have this already fixed. someone tried to help me with the directions on HOW to edit and recompile, but i just cant get it im sorry. im not a programer and when it comes to figuring out how to edit and compile, im just not good at it. thanks
rsharp is offline   Reply With Quote
Old 11-02-2007, 05:26 AM   #7 (permalink)
Forum Novice
 
Dereckson's Avatar
 
Join Date: Dec 2005
Location: Belgium
Age: 25
Posts: 260
Send a message via Skype™ to Dereckson
Default

Hi,

Here the RC1 core recompiled with only this modification:

RunUO-RC1-multicpufix.exe (x86)

Use it at your own risk. I don't warrant it runs, it won't cause the loss of all your data, a thermonuclear war.
__________________
La connaissance s'accroît quand on la partage.
Share your knowledge, you'll increase it.

Utopia. Votre Monde.
Dereckson is offline   Reply With Quote
Old 11-02-2007, 04:29 PM   #8 (permalink)
Newbie
 
Join Date: Jul 2003
Posts: 17
Send a message via Yahoo to rsharp
Default multi cpus

thank you very much for this file, but its still using 50%+ of bolth my cpus'
here is a system spec:
------------------
System Information
------------------
Time of this report: 11/2/2007, 16:15:50
Machine name:
Operating System: Windows XP Professional (5.1, Build 2600) Service Pack 2 (2600.xpsp_sp2_gdr.070227-2254)
Language: English (Regional Setting: English)
System Manufacturer: Foxconn
System Model: OEM
BIOS: Phoenix - AwardBIOS v6.00PG
Processor: Intel(R) Pentium(R) D CPU 3.40GHz (2 CPUs)
Memory: 2046MB RAM
Page File: 251MB used, 3688MB available
Windows Dir: D:\WINDOWS
DirectX Version: DirectX 9.0c (4.09.0000.0904)
DX Setup Parameters: Not found
DxDiag Version: 5.03.2600.2180 32bit Unicode

---------------
Display Devices
---------------
Card name: NVIDIA GeForce 8500 GT
Manufacturer: NVIDIA
Chip type: GeForce 8500 GT
DAC type: Integrated RAMDAC
Device Key: Enum\PCI\VEN_10DE&DEV_0421&SUBSYS_C7403842&REV_A1
Display Memory: 512.0 MB
Current Mode: 1680 x 1050 (32 bit) (60Hz)
Monitor: ViewSonic VX2035wm SERIES
Monitor Max Res: 1680,1050
Driver Name: nv4_disp.dll
Driver Version: 6.14.0011.6371 (English)
DDI Version: 9 (or higher)
Driver Attributes: Final Retail
Driver Date/Size: 9/17/2007 01:07:00, 5783040 bytes
WHQL Logo'd: Yes

-------------
Sound Devices
-------------
Description: Realtek HD Audio output
Default Sound Playback: Yes
Default Voice Playback: Yes
Hardware ID: HDAUDIO\FUNC_01&VEN_10EC&DEV_0883&SUBSYS_105B0C87& REV_1000
Manufacturer ID: 1
Product ID: 100
Type: WDM
Driver Name: RtkHDAud.sys
Driver Version: 5.10.0000.5397 (English)
Driver Attributes: Final Retail
WHQL Logo'd: Yes
Date and Size: 4/10/2007 19:04:40, 4397568 bytes
Other Files:
Driver Provider: Realtek Semiconductor Corp.
HW Accel Level: Full
Cap Flags: 0xF5F
Min/Max Sample Rate: 8000, 192000
Static/Strm HW Mix Bufs: 33, 32
Static/Strm HW 3D Bufs: 33, 32
HW Memory: 0
Voice Management: No
EAX(tm) 2.0 Listen/Src: Yes, Yes
I3DL2(tm) Listen/Src: Yes, Yes
Sensaura(tm) ZoomFX(tm): No
Registry: OK

Last edited by rsharp; 11-02-2007 at 05:23 PM.
rsharp is offline   Reply With Quote
Old 05-07-2008, 03:39 PM   #9 (permalink)
Forum Novice
 
GhostRiderGrey's Avatar
 
Join Date: Nov 2007
Posts: 155
Default

Does anyone have the pre-compiled RC1 exe fix linked above by Dereckson? [link is dead]. If so could they reupload it here, or perhaps send it to me?

Thanks much!!
-GhostRiderGrey


Edit: Got the RC1 source files and will try and compile the fix.

Last edited by GhostRiderGrey; 05-07-2008 at 05:10 PM. Reason: Change of status
GhostRiderGrey 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