PDA

View Full Version : processaffinitymask question


David198502
04-01-2011, 12:20 PM
hey guys!i wonder which value is the best in the conf.ini file for me considering the processaffinitymask section.
i have a dual core processor.

335th_GRAthos
04-01-2011, 12:46 PM
Put 2

Since I saw this question raised again, somebody posted this below, I kept his text but did not keep his name (sorry):


Look there ProcessAffinityMask option in section [rts]
Remove the sign ; in front of him.

And exposes its value in accordance with the number of cores a processor, namely:
2 cores - 3
3 core - 7
4 cores - 15
6 cores - 63
8 cores - 255

In my case (Core i5-750) 4 core - put 15. Conclusion: The uniform loading of all cores. In a game where everything is - friezes are but minor

Affinity mask settings

=1 - core 0
=2 - core 1
=3 - core 0+1
=4 - core 2
=5 - core 0+2
=6 - core 1+2
=7 - core 0+1+2
=8 - core 3
=9 - core 0 + 3
=10 - core 1 + 3
=11 - core 0 + 2 + 3
=12 - core 2 + 3
=13 - core 0 + 2 + 3
=14 - core 1 + 2 + 3
=15 - core 0 + 1 + 2 + 3

Feathered_IV
04-01-2011, 01:15 PM
Thanks! Testing now...

SEE
04-01-2011, 02:42 PM
Luthiers Technical FAQ states that the value 3 = 3rd core not 1 and 2.

Who is correct or have I misunderstood something...:confused:

I suppose I could just try it and see what happens.

Helrza
04-01-2011, 02:55 PM
I got mine set to =1, then i just run task manager in game, and set afinity on the launcher process, uncheck Core 0 and leave Core 1 running it ;) Runs good for me :)

etzi
04-01-2011, 03:07 PM
Doesn´t work!

IOM67
05-29-2011, 05:57 PM
hey guys!i wonder which value is the best in the conf.ini file for me considering the processaffinitymask section.
i have a dual core processor.
Hi
I think this is the thread you could be looking for ?

http://forum.1cpublishing.eu/showthread.php?t=22038&highlight=information+windows

JG5_emil
05-29-2011, 08:34 PM
according to that thread it says

I7s:

SET processAffinityMask "85"


I have an I7 4 core with 8 hyperthreads....should my entry in the config file look like this?

;ProcessAffinityMask=;

;ProcessAffinityMask=85

or this?

ProcessAffinityMask=85

322Sqn_Dusty
05-29-2011, 10:01 PM
ProcessAffinityMask=85

; is a command to ignore what's on the line after. Reads as comment.

Gamekeeper
05-29-2011, 10:29 PM
We spent forever doing the blasted true full screen mode. Back to that task now - no ETA quite yet.

We did unload a bunch more stuff into other cores already though. It will obviously only lead to performance improvement if you have more than two cores, and if you haven't manually set your processaffinity in the conf.ini.

From the above quote I would imagine it is best to leave this setting commented out or risk performance issues

JG5_emil
05-29-2011, 10:29 PM
Thanks mate.

Changed config to this and see zero difference to the way it was before.

Looked at task manager and 4 threads are definitely being utilised the other 4 much less so if at all. I don't know much about hyperthreading so this might be normal.

JG5_emil
05-29-2011, 10:31 PM
From the above quote I would imagine it is best to leave this setting commented out or risk performance issues

Think I'll put it back the way it was in that case.

One can always be hopeful of discovering something that will make a massive game changing improvement :p

Wolf_Rider
05-30-2011, 12:47 AM
its a binary system, so keep in mind that;

Core 0 (1st core) = binary 1
Core 1 (2nd core) = binary 2
Core 2 (3rd core) = binary 4
Core 3 (4th core) = binary 8
Core 4 (5th core) = binary 16
Core 5 (6th core) = binary 32


so basically you have a software dipswitch setting, so if you wanted to run your sim on all cores available, you would add up all the binary associated with those cores.

So to have your ProcessAffinityMask setting to use all four cores, you would addup the binary for cores 0 through 3, which is 1 + 2 + 4 + 8 equaling 15.

For all six cores (0 through 5) you would have 1 + 2 + 4 + 8 + 16 + 32 = 63.

Some say a four core processor is best when Core 0 is left for the Operating System and run the sim on Cores 1, 2 and 3 only, this would involve adding binary 2 + 4 + 8 eaqualing 14.

If the user wanted to run the sim on core 3 (4th Core) only, the PAM setting would be 8

Having said all that, it appears that the ProcessAffinityMask line has been removed from the latest Config file, which is fine because (at least on my machine and according to some others) the sim runs much better without the setting because the sim is utilising cores much better than it did when the sim was frst released.

TonyD
06-09-2011, 07:06 PM
... it appears that the ProcessAffinityMask line has been removed from the latest Config file, ...

I checked mine and found that it had been set to '14' after the last update. Disabling it or setting it to '15' seems to have no apparent effect on either performance or core-loading though.

Wolf_Rider
06-10-2011, 03:19 AM
I've just noticed and maybe someone could confirm [when game running: Task Manager/ Services Tab/ game.exe/ Set Affinity], the PAM process appears to see the (with hyperthreading enabled) virtual cores as real cores.
eg a 6 core (with HT enabled) presents as a 12 core, so I'm assuming a 4 core (with HT enabled) presents as an 8 core


Core 0 (1st core) = binary 1
Core 1 (2nd core) = binary 2
Core 2 (3rd core) = binary 4
Core 3 (4th core) = binary 8
Core 4 (5th core) = binary 16
Core 5 (6th core) = binary 32

Core 6 (7th core) = binary 64
Core 7 (8th core) = binary 128
Core 8 (9th core) = binary 256
Core 9 (10th core) = binary 512
Core 10 (11th core) = binary 1024
Core 11 (12th core) = binary 2048



@ TonyD...

are you running a fresh config file? ie the ones contained in the 1CSoftClub folder, located in the (Windows7) Documents folder of the desktop

dougandtoni
06-10-2011, 05:05 AM
@ TonyD...

are you running a fresh config file? ie the ones contained in the 1CSoftClub folder, located in the (Windows7) Documents folder of the desktop

Hi How do you go about getting a fresh config file ? Cheers

Wolf_Rider
06-10-2011, 06:12 AM
Delete the files in the 1cSoftClub folder and let the sim re-write them...

possibly may have to delete the same files in the Steam game folder, then do a Steam File Integrity Check and then let the sim re-write the deleted files in the softclub folder

Ataros
06-10-2011, 09:13 AM
Do not forget to save your controls settings (and info-windows positions if you wish too) in a separate file before deleting all config files or you would have to assign controls again.

TonyD
06-10-2011, 09:57 AM
...
@ TonyD...

are you running a fresh config file? ie the ones contained in the 1CSoftClub folder, located in the (Windows7) Documents folder of the desktop

I understood that one of the changes in the last update was to ‘refresh’ the config file when the update was applied. I have never changed it, apart from trying the PAM setting previously and setting it back to disabled on completion. I assumed that the update had resulted in this being generated with its current setting of 14.

Thanks for the explanation of the binary values, by the way – the numbers used now make sense.

dougandtoni
06-10-2011, 10:21 AM
Delete the files in the 1cSoftClub folder and let the sim re-write them...

possibly may have to delete the same files in the Steam game folder, then do a Steam File Integrity Check and then let the sim re-write the deleted files in the softclub folder

Do not forget to save your controls settings (and info-windows positions if you wish too) in a separate file before deleting all config files or you would have to assign controls again.

Thanks guys- all done and its all going great :grin: