Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

RE: Got a Quad Core? Here's how to speed up WITP:AE

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> War in the Pacific: Admiral's Edition >> Tech Support >> RE: Got a Quad Core? Here's how to speed up WITP:AE Page: <<   < prev  1 [2] 3   next >   >>
Login
Message << Older Topic   Newer Topic >>
RE: Got a Quad Core? Here's how to speed up WITP:AE - 7/29/2009 5:43:26 PM   
fbs

 

Posts: 1048
Joined: 12/25/2008
Status: offline

Hmm.. I have a Dual Core processor, and I didn't use the tool. I use the -dual option, and when I check the processor affinity of the running game, it already has it set for CPU0 and CPU1.

So I guess that the utility is needed only for quad cores or dual cores with hyperthreading.

Cheers
fbs

(in reply to RyanCrierie)
Post #: 31
RE: Got a Quad Core? Here's how to speed up WITP:AE - 7/29/2009 6:04:16 PM   
Iridium


Posts: 932
Joined: 4/1/2005
From: Jersey
Status: offline
Yeah, upon viewing the affinity of AE it has both boxes for my dual core checked already. Running Vista 64 with a dual core Conroe chip.

_____________________________

Yamato, IMO the best looking Battleship.

"Hey, a packet of googly eyes! I'm so taking these." Hank Venture

(in reply to fbs)
Post #: 32
RE: Got a Quad Core? Here's how to speed up WITP:AE - 7/29/2009 6:06:16 PM   
Erik Rutins

 

Posts: 37503
Joined: 3/28/2000
From: Vermont, USA
Status: offline
Actually, if you're experiencing lag you don't want it set to both CPUs, you want it set to just one (CPU 0).

_____________________________

Erik Rutins
CEO, Matrix Games LLC




For official support, please use our Help Desk: http://www.matrixgames.com/helpdesk/

Freedom is not Free.

(in reply to Iridium)
Post #: 33
RE: Got a Quad Core? Here's how to speed up WITP:AE - 7/29/2009 6:44:30 PM   
USSAmerica


Posts: 18715
Joined: 10/28/2002
From: Graham, NC, USA
Status: offline
Can anyone tell us what the -dual flag actually does for the game on multi core systems?

_____________________________

Mike

"Good times will set you free" - Jimmy Buffett

"They need more rum punch" - Me


Artwork by The Amazing Dixie

(in reply to Erik Rutins)
Post #: 34
RE: Got a Quad Core? Here's how to speed up WITP:AE - 7/29/2009 7:09:22 PM   
mikemike

 

Posts: 501
Joined: 6/3/2004
From: a maze of twisty little passages, all different
Status: offline

quote:

ORIGINAL: michaelm


quote:

ORIGINAL: treespider


quote:

ORIGINAL: Dixie

Hmmm. Has this worked properly?





I received the same "Unable to update...." line and I did not see a noticeable change in Loading Speed.


I suspect the "Unable to update" means that it couldn't write the information back into the EXE, so there would not be any change how the EXE uses the CPU.
I don't suppose there is some sort of ownership/privileges issue why it can't write back


As someone has mentioned DOS - have you checked if the EXE has the READONLY attribute set? This can happen if you copied the original EXE from a CD - e.g. if you installed the game from a CD. Open the WitP directory in the Explorer, right-click on the EXE and select PROPERTIES in the popup. The attributes are at the bottom; if READONLY is checked (it may be called write protect - I use a German-language XP where it is called "Schreibgeschützt") uncheck it and click OK, then try the imagecfg thing again.

You may find that the checkbox has a gray background and that you can't uncheck it. In that case go up one directory level in the Explorer, right-click the WITP directory and select Properties again. Uncheck the Readonly attribute and click on OK; you will then be asked to confirm the operation with a choice of applying the attribute change to all subdirectories and files contained in the directory; select this option and click OK again. This will remove the offending attribute on the EXE.

_____________________________

DON´T PANIC - IT´S ALL JUST ONES AND ZEROES!

(in reply to michaelm75au)
Post #: 35
RE: Got a Quad Core? Here's how to speed up WITP:AE - 7/29/2009 7:19:16 PM   
Dixie


Posts: 10303
Joined: 3/10/2006
From: UK
Status: offline

quote:

ORIGINAL: RyanCrierie

This program was written by Intel; when they first began to get serious about hyperthreading, etc, which meant that instead of just one CPU being visible to the OS and it's programs, there would be multiple.

Normally, you could set the core affinity by hitting CTRL ALT DEL and right mouse clicking on the thread you want to set the affinity for:

The problem is, you have to do that each time you start up the program.

What IMGCFG does is writes a little flag into the executable that "locks" it to that core affinity, so you don't have to keep doing it over and over.





It works the manual way you've just posted, in fact it flies through the load process now. Still no luck with the programme though. Using an Intel CPU on Vista 64, tried disabling the virus protection and made sure WitP is set to read only off.

_____________________________



Bigger boys stole my sig

(in reply to RyanCrierie)
Post #: 36
RE: Got a Dual/Quad Core? Here's how to speed up WITP:AE - 7/29/2009 7:48:08 PM   
LarryP


Posts: 3783
Joined: 5/15/2005
From: Carson City, NV
Status: offline
I did this for a MultiThread single CPU and the game loads almost instantly. I'm amazed.

(in reply to RyanCrierie)
Post #: 37
RE: Got a Quad Core? Here's how to speed up WITP:AE - 7/29/2009 10:19:28 PM   
sanch

 

Posts: 421
Joined: 10/30/2004
Status: offline
Bingo! It was taking 4-8 seconds to open up a base on my dual-core Dell Vostro 200, and windowed mode was hanging. Great tip - thanks!

(in reply to RyanCrierie)
Post #: 38
RE: Got a Quad Core? Here's how to speed up WITP:AE - 7/29/2009 10:35:31 PM   
fbs

 

Posts: 1048
Joined: 12/25/2008
Status: offline

quote:

ORIGINAL: Erik Rutins

Actually, if you're experiencing lag you don't want it set to both CPUs, you want it set to just one (CPU 0).


Oh, that's fantastic -- it actually loads faster when it has affinity for a single CPU. Quite an unexpected result.

But, will that disable the -dual flag that I'm using? I guess that flag enables something on a dual processor, and if the program is now forced to run against a single processor, then the flag will have no effect, right?

Cheers
fbs

(in reply to Erik Rutins)
Post #: 39
RE: Got a Quad Core? Here's how to speed up WITP:AE - 7/29/2009 11:37:02 PM   
aztez

 

Posts: 4031
Joined: 2/26/2005
From: Finland
Status: offline
Damn teeth still hurts after dentist.

Here is an link to Microsoft Vista forums. You can actually setup Set Affinity on your shortcut icon.

http://www.vistax64.com/gaming/197915-setting-processor-affinity-made-easy.html

Just copy and paste on to your shortcut icon and you are set to go.

I tried with my dual core AMD Turion processor (Vista Home Premius 32) and seems to have made the run much smoother.

(in reply to fbs)
Post #: 40
RE: Got a Quad Core? Here's how to speed up WITP:AE - 7/30/2009 12:16:22 AM   
jazman

 

Posts: 369
Joined: 1/20/2007
From: Crush Depth
Status: offline
The problem with a program that is not specifically written for multi-core CPUs (or multi-CPU machines), but that churn a lot of CPU continuously, is that the OS tries to balance the load across the CPUs, and so with WITP-AE MS Windows is switching the exe between the two cores constantly. That is a performance hit, in this case a major one, I remember seeing it with IL-2 way back.

Binding it to a CPU means it will run on that core and only on that core. You cut out the OS switching the exe back and forth between the cores, so there goes the overhead, overboard.

If you right-click on the windows taskbar and select "Task Manager" and look at the "Performance" tab (and I think on XP you select a check box to show CPUs independently), you can see the difference. Before: the CPU load is balanced across the two cores (or four, as applicable). After: one CPU is pegged. This is good (and assumes nothing else is eating CPU).

Also, it ought to work for AMD CPUs, since setting the affinity is an OS kernel-level activity, not CPU chip related. Thus, the executable is probably inserting some Windows-specific junk to make this work. After all, you can manually do this, as shown earlier, by right-clicking the process and setting it. It's all OS, not CPU.

I think.

(in reply to aztez)
Post #: 41
RE: Got a Quad Core? Here's how to speed up WITP:AE - 7/30/2009 12:35:30 AM   
jazman

 

Posts: 369
Joined: 1/20/2007
From: Crush Depth
Status: offline
It's possible that Windows has Intel-specific codepaths for making this work, so AMDers may be out of luck. Worth a try. I would, except my gaming box is off, trying to keep the heat down (in Seattle, it is all-time record heat today). If no one else posts about AMD later tonight, I'll give it a whirl.

(in reply to jazman)
Post #: 42
RE: Got a Quad Core? Here's how to speed up WITP:AE - 7/30/2009 12:43:42 AM   
OldCoot

 

Posts: 262
Joined: 12/26/2008
Status: offline

quote:

ORIGINAL: aztez

Damn teeth still hurts after dentist.

Here is an link to Microsoft Vista forums. You can actually setup Set Affinity on your shortcut icon.

http://www.vistax64.com/gaming/197915-setting-processor-affinity-made-easy.html

Just copy and paste on to your shortcut icon and you are set to go.

I tried with my dual core AMD Turion processor (Vista Home Premius 32) and seems to have made the run much smoother.


I tried that, but it doesn't go. Here's what I have as the shortcut properties target. Am I missing something?

C:\Windows\System32\cmd.exe /C START "War in the Pacific Admiral Edition" /high/affinity 1"C:\Matrix Games\War in the Pacific Admiral's Edition\War in the Pacific Admiral Edition.exe"

(in reply to aztez)
Post #: 43
RE: Got a Quad Core? Here's how to speed up WITP:AE - 7/30/2009 12:58:03 AM   
Erik Rutins

 

Posts: 37503
Joined: 3/28/2000
From: Vermont, USA
Status: offline

quote:

ORIGINAL: OldCoot
I tried that, but it doesn't go. Here's what I have as the shortcut properties target. Am I missing something?

C:\Windows\System32\cmd.exe /C START "War in the Pacific Admiral Edition" /high/affinity 1"C:\Matrix Games\War in the Pacific Admiral's Edition\War in the Pacific Admiral Edition.exe"


Add some spaces between high and affinity and 1 and "C:\, should be:

C:\Windows\System32\cmd.exe /C START "War in the Pacific Admiral Edition" /high /affinity 1 "C:\Matrix Games\War in the Pacific Admiral's Edition\War in the Pacific Admiral Edition.exe"

_____________________________

Erik Rutins
CEO, Matrix Games LLC




For official support, please use our Help Desk: http://www.matrixgames.com/helpdesk/

Freedom is not Free.

(in reply to OldCoot)
Post #: 44
RE: Got a Quad Core? Here's how to speed up WITP:AE - 7/30/2009 1:12:18 AM   
OldCoot

 

Posts: 262
Joined: 12/26/2008
Status: offline
Thanks Eric - worked like a charm!

(in reply to Erik Rutins)
Post #: 45
RE: Got a Quad Core? Here's how to speed up WITP:AE - 7/30/2009 2:56:54 AM   
jrcar

 

Posts: 3613
Joined: 4/19/2002
From: Seymour, Australia
Status: offline
Woeked a treat on my Laptop, Dell M6300!

Cheers

Rob

(in reply to OldCoot)
Post #: 46
RE: Got a Quad Core? Here's how to speed up WITP:AE - 7/30/2009 4:16:13 AM   
fcam1387

 

Posts: 397
Joined: 5/17/2006
Status: offline
Nah, makes no difference for me. But for some reason when I copy and paste Erik's target, the "high / affinity" part disappears.

Still reckon its a graphics problem.

Does anyone here use an NVIDIA 9600M GT card?

(in reply to jrcar)
Post #: 47
RE: Got a Quad Core? Here's how to speed up WITP:AE - 7/30/2009 4:18:17 AM   
fcam1387

 

Posts: 397
Joined: 5/17/2006
Status: offline
Is there a fast way to temporarily disable your graphics card in Vista and revert to the default factory installed vga chip? It's pretty last ditch but it worked for me when I uninstalled my drivers last time.

(in reply to fcam1387)
Post #: 48
RE: Got a Quad Core? Here's how to speed up WITP:AE - 7/30/2009 4:33:12 AM   
Toddr22_slith

 

Posts: 167
Joined: 7/27/2005
Status: offline
Should this make the turns run faster?

(in reply to fcam1387)
Post #: 49
RE: Got a Quad Core? Here's how to speed up WITP:AE - 7/30/2009 4:36:24 AM   
Erik Rutins

 

Posts: 37503
Joined: 3/28/2000
From: Vermont, USA
Status: offline
The other fix that seems to work on some systems is to run DxDiag and turn off DirectDraw acceleration.

_____________________________

Erik Rutins
CEO, Matrix Games LLC




For official support, please use our Help Desk: http://www.matrixgames.com/helpdesk/

Freedom is not Free.

(in reply to Toddr22_slith)
Post #: 50
RE: Got a Quad Core? Here's how to speed up WITP:AE - 7/30/2009 5:36:52 AM   
fcam1387

 

Posts: 397
Joined: 5/17/2006
Status: offline
Erik,

Yeah, but my only problem is that for some bizarre reason I cannot turn of my video acceleration in display settings or dxdiag because it says: "your current display driver does not allow changes to be made to hardware acceleration settings". I think a few other users have this issue as well.

Sorry to consume your time with this, but the game really isn't playable for me. It's a damn shame too!

(in reply to Erik Rutins)
Post #: 51
RE: Got a Quad Core? Here's how to speed up WITP:AE - 7/30/2009 5:51:19 AM   
jazman

 

Posts: 369
Joined: 1/20/2007
From: Crush Depth
Status: offline
Ach, I get the same error:

"IMAGECFG: Unable to update configuration information in image."

AMD Dual-core CPU. I have AMD's Dual-Core Optimizer running, too.

Looks like it's Intel-only. I'll try the exact same thing on my laptop at work tomorrow, it's Intel dual-core.

(Running on Windows XP x64)

When I start WitP-AE, and manually set the affinity in Task Manager (once WitP-AE is running), I can see the expected effect. In Windowed mode, screen refresh is downright snappy!



< Message edited by jazman -- 7/30/2009 5:57:00 AM >

(in reply to fcam1387)
Post #: 52
RE: Got a Quad Core? Here's how to speed up WITP:AE - 7/30/2009 6:09:08 AM   
jazman

 

Posts: 369
Joined: 1/20/2007
From: Crush Depth
Status: offline
Sorry for the number of posts, I'm trying to work through this completely.

For AMD users with Windows XP, it's worth manually setting the affinity in the Task Manager, once it's running. Here's a pic of the CPU usage once I've set affinity. CPU 0 is doing little, and CPU 1 is doing AE work. It's very quick and snappy, it's worth the 15-30 seconds it takes to set it.

I Googled setting processor affinity with AMD, and didn't come up with much where I could pass in command-line options (like -w -altFont).

Found later:

Users can use the cmd.exe hack mentioned earlier. That works on XP, too (at least on mine, which is 64-bit XP Pro). If you want it in windowed mode, add the -w AFTER the "witp.exe" chunk, outside the double quotes. Thusly:

cmd /C START "WITP AE" /high /affinity 2 "C:\Program Files (x86)\Matrix Games\War in the Pacific Admiral's Edition\War in the Pacific Admiral Edition.exe" -w -altFont

I may just do the latter. Either way, the performance gain in-game is worth it.






Attachment (1)

(in reply to jazman)
Post #: 53
RE: Got a Quad Core? Here's how to speed up WITP:AE - 7/30/2009 6:24:30 AM   
Chad Harrison


Posts: 1395
Joined: 4/2/2003
From: Boise, ID - USA
Status: offline
I will admit up front: I am not a computer hardware guy. Some of this stuff is over my head. So let me be specific as to what I have:

My new Alienware just showed up and it has a Intel Core i7-920, which is a quad core on Vista Home Premium 64-bit.

Questions:
1. Has anyone else ran AE on a similar, if not the same, rig?
2. Is it worth going through the trouble to get it to use multi-cores?
3. Can doing this screw up anything else? I know that's a loaded question, but again, I don't mess with my computer much.
4. Are there any problems with running AE on Vista?

Thanks in advance!

Chad

(in reply to jazman)
Post #: 54
RE: Got a Quad Core? Here's how to speed up WITP:AE - 7/30/2009 6:30:11 AM   
jazman

 

Posts: 369
Joined: 1/20/2007
From: Crush Depth
Status: offline
Here's a batch script I put together to make this work easily. Modify to suit your flavor. You'll probably want to modify the WITP_HOME path.

HOME_DRIVE is the install drive; I am using the C: drive
WITP_HOME uses the HOME_DRIVE, I'm not using the default, so buyer beware!
WITP_EXE here is the default exe name
WITP_OPTIONS for windowed and altFont are given; I like windowed mode, and the altFont
USE_CPU is to use the second core here; if you set this to 1 it'll use the first core
CPU_PRIORITY is to make it high priority. WitP AE will pretty much take over the CPU core.

Save the text that follows this line to a file with a .bat extension (say, on your desktop), then you can double-click it to run; I've also included this as a text file attachment:

set HOME_DRIVE=C:
set WITP_HOME="%HOME_DRIVE%\Program Files (x86)\Matrix Games\War in the Pacific Admiral's Edition"
set WITP_EXE="War in the Pacific Admiral Edition.exe"
set WITP_OPTIONS=-w -altFont
set USE_CPU=2
set CPU_PRIORITY=/high

%HOME_DRIVE%
cd %WITP_HOME%
cmd.exe /C START "WITP AE" %CPU_PRIORITY% /affinity %USE_CPU% %WITP_EXE% %WITP_OPTIONS%


Attachment (1)

(in reply to jazman)
Post #: 55
RE: Got a Quad Core? Here's how to speed up WITP:AE - 7/30/2009 6:41:30 AM   
jazman

 

Posts: 369
Joined: 1/20/2007
From: Crush Depth
Status: offline

quote:

ORIGINAL: Chad Harrison

I will admit up front: I am not a computer hardware guy. Some of this stuff is over my head. So let me be specific as to what I have:

My new Alienware just showed up and it has a Intel Core i7-920, which is a quad core on Vista Home Premium 64-bit.

Questions:
1. Has anyone else ran AE on a similar, if not the same, rig?
2. Is it worth going through the trouble to get it to use multi-cores?

Chad


I have a dual-core AMD system, it's WinXP x64.

Once you've seen it go fast, you can never go back. I'll even hold your hand to help you get it working. But you can try out the two approaches already described here: the imagecfg hack (which looks easier), or the batch script I just put up (which may be just as easy, now that I've done it for you). Either one should work for you. My script you may need to modify, as I've stated.

(in reply to Chad Harrison)
Post #: 56
RE: Got a Quad Core? Here's how to speed up WITP:AE - 7/30/2009 8:26:11 AM   
wdolson

 

Posts: 10398
Joined: 6/28/2006
From: Near Portland, OR
Status: offline

quote:

ORIGINAL: fcam1387

Erik,

Yeah, but my only problem is that for some bizarre reason I cannot turn of my video acceleration in display settings or dxdiag because it says: "your current display driver does not allow changes to be made to hardware acceleration settings". I think a few other users have this issue as well.

Sorry to consume your time with this, but the game really isn't playable for me. It's a damn shame too!


This may be due to a permissions issue. If you don't have administrator privileges, I don't think you can change the settings.

Bill

_____________________________

WitP AE - Test team lead, programmer

(in reply to fcam1387)
Post #: 57
RE: Got a Quad Core? Here's how to speed up WITP:AE - 7/30/2009 8:31:50 AM   
fcam1387

 

Posts: 397
Joined: 5/17/2006
Status: offline
Nah, unfortunately, that's not the case because I'm running it as an administrator. I think some graphics cards prevent changing these settings (especially on Vista).

(in reply to wdolson)
Post #: 58
RE: Got a Quad Core? Here's how to speed up WITP:AE - 7/30/2009 2:16:26 PM   
Erik Rutins

 

Posts: 37503
Joined: 3/28/2000
From: Vermont, USA
Status: offline
Some additional possible suggestions here:

http://www.hardforum.com/showpost.php?p=1028607262&postcount=1

_____________________________

Erik Rutins
CEO, Matrix Games LLC




For official support, please use our Help Desk: http://www.matrixgames.com/helpdesk/

Freedom is not Free.

(in reply to fcam1387)
Post #: 59
RE: Got a Dual/Quad Core? Here's how to speed up WITP:AE - 7/30/2009 2:24:53 PM   
myros

 

Posts: 289
Joined: 7/1/2004
Status: offline
For some reason using the CMD options or even the bat file suggested doesnt work for me. The command box flashes up then vanishes with no game starting. This is on XP home edition (regular 32 bit).

So I went ahead and downloaded that little tool and hacked the original game .exe file. What a difference it makes ... startup took about 2 seconds, compared to about 15 normaly. I guess AE doesnt like to use multiple cores to much.

Nice job on finding this tweek.

(in reply to RyanCrierie)
Post #: 60
Page:   <<   < prev  1 [2] 3   next >   >>
All Forums >> [New Releases from Matrix Games] >> War in the Pacific: Admiral's Edition >> Tech Support >> RE: Got a Quad Core? Here's how to speed up WITP:AE Page: <<   < prev  1 [2] 3   next >   >>
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

1.330