NoGripRacing.com

Go Back   NoGripRacing Forums > General Discussion > Computech

Reply
 
Thread Tools
Old 8 May 10, 21:43   #1
redi
Superator
 
redi's Avatar
 
Join Date: Oct 2006
Location: On a thin crust covering a huge ball of hot molten stone whizzing through space
Age: 40
Lightbulb Great little tool for setting CPU affinity

http://www.nogripracing.com/details.php?filenr=27320

There are some tools around that allow you to start a game with affinity to all CPU cores, but none of those I found works so nicely as this one.

Games that may benefit from this tool:
- GT Legends
- GTR2
- Power and Glory mod
- rFactor (though it also has a command line switch itself to use all cores)
- Richard Burns Rally
- any race sim/game older than the ones above

Games that already use all cores:
- GTR Evo/STCC/Race On
- DiRT2
- NFS:Shift


CPU Affinity Explanation
Most older race sims (and games in general) were not optimized for CPUs with multiple cores, and hence they run on one core by default. Some games, however, will get better/smoother performance if run on multiple cores even though they were not programmed with multiple cores in mind.

Usually this involves ALT-TABbing from the game back to the desktop, starting Task Manager and setting the CPU affinity of the game's process, exiting Task Manager and switching back to the game. This is a bit of a chore to do each time, and some games don't like or even don't allow ALT-TABbing to the desktop (e.g. GTR2 on my PC).

Hence, programs like RunAff will start up your game and set the processor affinity immediately, either by starting the game from inside the tool or, in this case, by creating a shortcut that starts the game through the tool. The latter I find easier to work with because starting the game then only involves double-clicking the shortcut like how you usually start a game, instead of first starting the affinity tool

I believe the tool also unloads itself from memory when the game has started and the CPU affinity set, so will not even take CPU resources. A nice little gimmick is that it also lets you know clearly whether the affinity setting was successful or not.
redi is offline   Reply With Quote
Old 9 May 10, 10:25   #2
SwiftyOne
 
SwiftyOne's Avatar
 
Join Date: Aug 2006
Location: Norwich (England)
Age: 56
Default

OK, Was going to try this with GTRevo.....But, found out (bit slow on the up take ) what most people "May" know already, that, this programe is "not" needed in Evo as Evo "already" sets all four cores when you start the game.....I never knew "that"

Thanks tho

Swifty
SwiftyOne is offline   Reply With Quote
Old 9 May 10, 10:33   #3
redi
Superator
 
redi's Avatar
 
Join Date: Oct 2006
Location: On a thin crust covering a huge ball of hot molten stone whizzing through space
Age: 40
Default

Yes, GTR Evo is recent enough to use all cores Maybe I should jot down a list of race sims that benefit from this tool
redi is offline   Reply With Quote
Old 9 May 10, 11:01   #4
BernL
 
BernL's Avatar
 
Join Date: Jul 2006
Location: Ottawa
Default

I suspect these changes reflect the value of this program?

CPURATING=5
SYSTEMRAM=2047
VIDEORAM=1127
OBJDETAIL=3
TEXDETAIL=3

versus before application values

CPURATING=1
SYSTEMRAM=0
VIDEORAM=0
OBJDETAIL=1
TEXDETAIL=1

a noticeble improvement.......windows XP
BernL is offline   Reply With Quote
Old 10 May 10, 10:01   #5
redi
Superator
 
redi's Avatar
 
Join Date: Oct 2006
Location: On a thin crust covering a huge ball of hot molten stone whizzing through space
Age: 40
Default

Quote:
Originally Posted by BernL View Post
I suspect these changes reflect the value of this program?

CPURATING=5
SYSTEMRAM=2047
VIDEORAM=1127
OBJDETAIL=3
TEXDETAIL=3

versus before application values

CPURATING=1
SYSTEMRAM=0
VIDEORAM=0
OBJDETAIL=1
TEXDETAIL=1

a noticeble improvement.......windows XP
Not sure how that could be related to using the tool The 'before' values are obviously wrong, no idea how that could have happened in XP (in 64-bit Vista the whole determination of these parameters seems to go wrong). Are you using 64-bit XP?

Anyway, it seems to have sorted itself now, maybe keep an eye on those settings for a while
redi is offline   Reply With Quote
Old 10 May 10, 22:48   #6
DucFreak
 
DucFreak's Avatar
 
Join Date: Mar 2006
Location: Lisboa, Portugal www.gtlw.co.uk
Age: 37
Default

Cool little program this!
Seems to be working as advertised.
DucFreak is online now   Reply With Quote
Old 1 July 10, 18:12   #7
zome
 
zome's Avatar
 
Join Date: May 2010
Location: Belgrade, Serbia
Age: 26
Default

This app is just what I need. I downloaded it and don't know how to use it. I read instruction but I still don't have a clue how to utilise it.

Any help, someone
zome is offline   Reply With Quote
Old 3 July 10, 02:47   #8
dartguy
 
dartguy's Avatar
 
Join Date: Jan 2008
Location: Louisville
Age: 42
Default

"E:\Program Files\RunAff\RunAff.exe" E:\GTR2ALMS\GTR2.exe E:\GTR2ALMS 0123 15 -trace=100

zome,

This is what my line looks like when I look at the shortcut properties. This is a great tool.
dartguy is offline   Reply With Quote
Old 3 July 10, 09:20   #9
zome
 
zome's Avatar
 
Join Date: May 2010
Location: Belgrade, Serbia
Age: 26
Default

I still don't get it..

Here's what I done. Created shortcut of the program RunAff.exe, placed it into GTR2 folder and renamed it to "GTR2 RunAff.exe". Than I edited its target line with this command:
D:\Programi\RunAff\RunAff.exe E:\Igrice\gtr2\GTR2.exe E:\Igrice\gtr2 01 0

I can't set " " on "D:\Programi\RunAff\RunAff.exe", because it wanishes after apllying changes.

After statring that shortcut, game runs, but I get this error:

Line 3484 (File "D:\Programi\RunAff\RunAff.exe"):
Error: Variable used without being declared.

My original RunAff program is located at D:\Programi\RunAff\RunAff.exe

I really do feel stupid, because this appeard very simple to me, at first atleast. It confuses me that, I have 2 programs and where and in witch shortcut should target be edited?

please, help
zome is offline   Reply With Quote
Old 3 July 10, 10:28   #10
gazman
Banned
 
Join Date: Sep 2006
Location: canberra Australia
Default

you don't need a 3rd party app
just start e.g. GTR2 hit ctrl,alt,delete . find GTR2 in the processes , right click on it set affinity and tick your cpu boxes. you can also set higher priority as well
Attached Images
File Type: gif ScreenHunter_01 Jul. 03 20.26.gif (21.3 KB, 120 views)
File Type: gif ScreenHunter_02 Jul. 03 20.27.gif (16.2 KB, 122 views)
gazman is offline   Reply With Quote
Old 3 July 10, 10:37   #11
Supra4
Banned
 
Join Date: Sep 2007
Default

I use "CPU control".

Simply tell it what cores to use for which game or program and let it start on system startup. It works based on the process name, so as soon as you boot it it'll automatically assign it to your preferred cores even if you have multiple installs of your game.
Supra4 is offline   Reply With Quote
Old 3 July 10, 11:19   #12
zome
 
zome's Avatar
 
Join Date: May 2010
Location: Belgrade, Serbia
Age: 26
Default

Quote:
Originally Posted by gazman View Post
you don't need a 3rd party app
just start e.g. GTR2 hit ctrl,alt,delete . find GTR2 in the processes , right click on it set affinity and tick your cpu boxes. you can also set higher priority as well
Thanks mate, but I already doo that every time i start game. This tool is usefull and makes it much easier, so I wanted to try it.
zome is offline   Reply With Quote
Old 3 July 10, 11:23   #13
zome
 
zome's Avatar
 
Join Date: May 2010
Location: Belgrade, Serbia
Age: 26
Default

Quote:
Originally Posted by Supra4 View Post
I use "CPU control".
Thank you, I'll try it
zome is offline   Reply With Quote
Old 28 November 10, 23:47   #14
Derek Speare
Donated
 
Derek Speare's Avatar
 
Join Date: Aug 2010
Location: St Pete, Florida USA
Age: 45
Default

This program works perfectly. You just have to make sure you get your command line syntax just right. If you have DOS experience or are an experienced windows user, then you'll have no issues with it. I love the thing!

As far as alt+tabbing to the Task Manager is regarded, I'd say doing that each time you run the game is tedious and cumbersome. RunAff will set the CPU affinities each time you run it and does so seamlessly. I have a shortcut on my desktop, and I even use the GTR2 logo for it!



If there are spaces in the path in your command line properties, you MUST enclose the path with quotation marks. I have a 6 core cpu and have verified that GTR2 is assigned all 6 when it runs.

Just my two cents.

Derek

EDIT -
Quote:
Originally Posted by redi View Post
Yes, GTR Evo is recent enough to use all cores Maybe I should jot down a list of race sims that benefit from this tool
QFT - Hi Redi,

These are the ones I know which will use multiple cores:

F1 2010
Dirt2
GTR Evo and its progeny

rFactor will with the +fullproc switch.

I am sure that NKP and iRacing will, that they are very new makes me feel this way. I'd guess that LFS will as well. I will check when I have time. I would also guess that GT Legends does not, and that one may benefit from RunAff. I don't have that sim so I cannot check it.

Last edited by DeeMoNay; 28 November 10 at 23:58.
Derek Speare is offline   Reply With Quote
Old 29 November 10, 00:03   #15
davehenrie
 
davehenrie's Avatar
 
Join Date: Dec 2006
Location: Post Falls Idaho, in a house so new Google can't find it.
Default

Quote:
Originally Posted by gazman View Post
you don't need a 3rd party app
just start e.g. GTR2 hit ctrl,alt,delete . find GTR2 in the processes , right click on it set affinity and tick your cpu boxes. you can also set higher priority as well
If I remember correctly, you can't alt tab and then set the affinity with Vista. You CAN alt tab out, you CAN bring up the task manager to set the core affinity, but nothing happens, the checkbox won't get checked. I have used your method with XP, but it did not work on my wife's Vista box.

dh
davehenrie is offline   Reply With Quote
Old 29 November 10, 00:07   #16
Siggs
 
Siggs's Avatar
 
Join Date: Jun 2008
Location: Coventry
Age: 22
Default

Don't use Vista for gaming then
Siggs is offline   Reply With Quote
Old 29 November 10, 00:10   #17
davehenrie
 
davehenrie's Avatar
 
Join Date: Dec 2006
Location: Post Falls Idaho, in a house so new Google can't find it.
Default

Quote:
Originally Posted by Siggs View Post
Don't use Vista for gaming then
Hence my XP computer, but there are probably plenty of users who are stuck with Vista until they can afford an upgrade.

On another note, I just took a look at the CPU Control program, I may be missing a command somewhere, but it only seems to address programs or processes on the Boot C drive. I have GTR2 over on a 2nd HD. Is there some way to get CPU Ctrl to access other locations?

dh
davehenrie is offline   Reply With Quote
Old 29 November 10, 02:55   #18
dartguy
 
dartguy's Avatar
 
Join Date: Jan 2008
Location: Louisville
Age: 42
Default

Alt-Tab and Task Manager work fine in Win 7. But RunAff is much easier. Plus my game likes to crash once in a while when alt-tabbing. I have 4 GTR2 installs all using the RunAff with no problems.
dartguy is offline   Reply With Quote
Old 29 November 10, 03:48   #19
davehenrie
 
davehenrie's Avatar
 
Join Date: Dec 2006
Location: Post Falls Idaho, in a house so new Google can't find it.
Default

I had this running back when the thread first started, seemed to have lost track of it. I re-did the shortcut and got it to load GTR2, but when I alt-tabbed out from the main menu, the affinity was only shown as core 1 of my core 2 duo.
davehenrie is offline   Reply With Quote
Old 29 November 10, 07:36   #20
redi
Superator
 
redi's Avatar
 
Join Date: Oct 2006
Location: On a thin crust covering a huge ball of hot molten stone whizzing through space
Age: 40
Default

Quote:
Originally Posted by davehenrie View Post
If I remember correctly, you can't alt tab and then set the affinity with Vista. You CAN alt tab out, you CAN bring up the task manager to set the core affinity, but nothing happens, the checkbox won't get checked. I have used your method with XP, but it did not work on my wife's Vista box.

dh
Strange, running Vista x64 here and setting affinity works fine in Task Manager

Quote:
Originally Posted by davehenrie View Post
I had this running back when the thread first started, seemed to have lost track of it. I re-did the shortcut and got it to load GTR2, but when I alt-tabbed out from the main menu, the affinity was only shown as core 1 of my core 2 duo.
Do you get the "Processor Affinities Assigned Successfully" message?

Here's my GTR2 shortcut for comparison:

...\RunAff\RunAff.exe GTR2.exe D:\games\GTR2 01 5
redi is offline   Reply With Quote
Old 10 March 11, 14:36   #21
JJC1
Donated
 
JJC1's Avatar
 
Join Date: Apr 2008
Default

Quote:
Originally Posted by zome View Post
I still don't get it..

Here's what I done. Created shortcut of the program RunAff.exe, placed it into GTR2 folder and renamed it to "GTR2 RunAff.exe". Than I edited its target line with this command:
D:\Programi\RunAff\RunAff.exe E:\Igrice\gtr2\GTR2.exe E:\Igrice\gtr2 01 0
....
After statring that shortcut, game runs, but I get this error:

Line 3484 (File "D:\Programi\RunAff\RunAff.exe"):
Error: Variable used without being declared.
A bit late this replay but I only just stumbled over it today

Crap error message I know (will fix next release)

The problem is the zero delay (last parameter)
GTR2 will not start instantly, set the delay to 5 seconds
JJC1 is offline   Reply With Quote
Old 10 March 11, 15:51   #22
redi
Superator
 
redi's Avatar
 
Join Date: Oct 2006
Location: On a thin crust covering a huge ball of hot molten stone whizzing through space
Age: 40
Default

Has the tool been tested on Win7 x64? I tried to use it on my new PC but got some serious error messages/crashes so I stopped using it. Worked well on Vista x64 though...
redi is offline   Reply With Quote
Old 10 March 11, 23:34   #23
dartguy
 
dartguy's Avatar
 
Join Date: Jan 2008
Location: Louisville
Age: 42
Default

Quote:
Originally Posted by redi View Post
Has the tool been tested on Win7 x64? I tried to use it on my new PC but got some serious error messages/crashes so I stopped using it. Worked well on Vista x64 though...
Works just fine.
dartguy is offline   Reply With Quote
Old 10 March 11, 23:40   #24
DucFreak
 
DucFreak's Avatar
 
Join Date: Mar 2006
Location: Lisboa, Portugal www.gtlw.co.uk
Age: 37
Default

Quote:
Quote:
Originally Posted by redi View Post
Has the tool been tested on Win7 x64? I tried to use it on my new PC but got some serious error messages/crashes so I stopped using it. Worked well on Vista x64 though...
Quote:
Originally Posted by dartguy View Post
Works just fine.
Yep, working fine here with Win7 64bit as well!
DucFreak is online now   Reply With Quote
Old 11 March 11, 00:24   #25
DurgeDriven
 
DurgeDriven's Avatar
 
Join Date: Jan 2011
Default

Concur

Any image or fresh drive I copy over a backed up runaff folder to Program Files (x86) and then use same drive letter for SIMS partition on all drives so shortcuts do not change.
DurgeDriven is offline   Reply With Quote
Old 11 March 11, 08:20   #26
redi
Superator
 
redi's Avatar
 
Join Date: Oct 2006
Location: On a thin crust covering a huge ball of hot molten stone whizzing through space
Age: 40
Default

Retried the tool with GTL and it works fine now. I guess it was part of the instability issues caused by the SSD not being able to cope with Win7's hibernation mode.
redi is offline   Reply With Quote
Old 23 June 11, 22:48   #27
frapp
 
Join Date: Nov 2006
Default

Syntax, Syntax, Syntax...

I could not get this thing to work for the life of me. I had a long, extremely detailed post written up explaining everything. When I got to the part where I wrote Start in box reads:, I copied and pasted the line, before I hit "Post Quick Reply", I checked it against post #8 (Dartguy) and found an extra space that didn't belong in command line. Hit back space and drum roll... voila - Turbo Time!!

Three thoughts:

#1 Thank you for making us aware of this great tool

#2 Thank you Mr Dart Guy

#3 Maybe it is a good idea when working in tight boxes to copy and paste your
command line on a seperate doc to check/edit - especially if you're a member of the
Slowsky Clan.


Thank you Guys


FraPP!!!
frapp is offline   Reply With Quote
Old 18 August 11, 16:38   #28
jason_peters
Uploader
 
Join Date: Nov 2006
Default

hi

anyway to get this working with the weather patch which runs a file called GTR2wx.exe

tried a few things but can't get it to run gtr2 with all afinity
jason_peters is offline   Reply With Quote
Old 18 August 11, 16:45   #29
pjj1180
 
pjj1180's Avatar
 
Join Date: Oct 2006
Location: Orlando, Florida
Default

I don't have this, but maybe you could write a .bat file to start both and link to that.
pjj1180 is offline   Reply With Quote
Old 14 April 12, 21:27   #30
Tkrau
 
Tkrau's Avatar
 
Join Date: Jun 2011
Location: Central California
Default

Waking this up to ask...

Using Win7 HP 64-bit...my usual .exe for both GTL and GTR2 is their respective no-CD modded.exe and tagged with the 4 gig patch hack; is there a way to use this app along with the no-CD .exe? Each uses a dedicated .exe apparently, and I can't figure a way to combine them into a single launcher.
Tkrau is offline   Reply With Quote
Old 19 May 12, 12:42   #31
psyfungi
Donated
 
psyfungi's Avatar
 
Join Date: Jan 2005
Location: London
Default

That RunAff is really good! I like it. Now, does it actually improve performance of GTL or GTR2, or F1 2011... need some benchmarking....
psyfungi is offline   Reply With Quote
Old 19 May 12, 13:55   #32
Malcolm Reynolds
Donated
 
Malcolm Reynolds's Avatar
 
Join Date: Jul 2006
Location: U.K.
Age: 45
Default

I use RunAff for both GTL and P&G and it's very handy, and yes it does improve frames on my system - on a lot of tracks I can have shadows set to high without any drop below 60FPS with vertical sync on.
Malcolm Reynolds is offline   Reply With Quote
Old 19 May 12, 15:46   #33
redi
Superator
 
redi's Avatar
 
Join Date: Oct 2006
Location: On a thin crust covering a huge ball of hot molten stone whizzing through space
Age: 40
Default

Quote:
Originally Posted by psyfungi View Post
That RunAff is really good! I like it. Now, does it actually improve performance of GTL or GTR2, or F1 2011... need some benchmarking....
That really depends on the particularities of your system. Old games like GTL and GTR2 are in no way optimized for multiple cores, so in principle it should do nothing. However, if your system is choking with the game running on one core, it could help for the system to be able to switch the load of the program to another core.
redi is offline   Reply With Quote
Old 22 August 12, 19:28   #34
nikbear
 
nikbear's Avatar
 
Join Date: Jun 2003
Location: United Kingdom
Default

http://www.ntcore.com/4gb_patch.php Or http://www.ntcore.com/exsuite.php
Do both these do a similar thing,or can you use both together?? Confused :-\
nikbear is offline   Reply With Quote
Old 22 August 12, 23:06   #35
DucFreak
 
DucFreak's Avatar
 
Join Date: Mar 2006
Location: Lisboa, Portugal www.gtlw.co.uk
Age: 37
Default

Quote:
Originally Posted by nikbear View Post
http://www.ntcore.com/4gb_patch.php Or http://www.ntcore.com/exsuite.php
Do both these do a similar thing,or can you use both together?? Confused :-\
Both do same thing, but the 4gb_patch simplifies the process (the other has other features besides the mentioned one).
DucFreak is online now   Reply With Quote
Old 22 August 12, 23:54   #36
nikbear
 
nikbear's Avatar
 
Join Date: Jun 2003
Location: United Kingdom
Default

Ahhh,thank you!
nikbear is offline   Reply With Quote
Reply

Thread Tools

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

Forum Jump


All times are GMT. The time now is 13:56.


Powered by vBulletin® Version 3.8.7 - Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

www.nogripracing.com 2003 - 2013
Page generated in 0.17365 seconds with 11 queries