ProcessAffinityMask - =XIII=Shea - 29.11.2009
hi all i have a intel i7 920,with 8 core,s,i am just wondering what i should have my ProcessAffinityMask at in config?
tks
- Davis0079 - 29.11.2009
proccess affinity=15 (this is what I use with a quad, from evrything I've seen this makes it run on proccessor 0,1,2,3.)
as for a 8 core I dont think you will find a setting for that, but four out of eight proccessors is going to smoke this game. I can run the blackdeath track with vert sync at an average of 50 fps with a q6600 and SLI 9500's, so you sould be just fine with affinite 15 also.
PS. I'm taking donations of 2xxgt cards if anyone wants to give me a pair of them.
- crochebo - 29.11.2009
2xxgt :???:
- Fryslanboy - 29.11.2009
250GT, 235GT (the 2 xx are the numbers, there are various types of the graph cards) :wink:
- PA_Willy - 29.11.2009
Wrong information. EDITED.
For a complete ProcessAffinityMask table:
Value Core 1 Core 2 Core 3 Core 4 Core 5 Core 6 Core 7 Core 8
1 Yes No No No No No No No
2 No Yes No No No No No No
3 Yes Yes No No No No No No
4 No No Yes No No No No No
5 Yes No Yes No No No No No
6 No Yes Yes No No No No No
7 Yes Yes Yes No No No No No
8 No No No Yes No No No No
9 Yes No No Yes No No No No
10 No Yes No Yes No No No No
11 Yes Yes No Yes No No No No
12 No No Yes Yes No No No No
13 Yes No Yes Yes No No No No
14 No Yes Yes Yes No No No No
15 Yes Yes Yes Yes No No No No
16 No No No No Yes No No No
17 Yes No No No Yes No No No
18 No Yes No No Yes No No No
19 Yes Yes No No Yes No No No
20 No No Yes No Yes No No No
21 Yes No Yes No Yes No No No
22 No Yes Yes No Yes No No No
23 Yes Yes Yes No Yes No No No
24 No No No Yes Yes No No No
25 Yes No No Yes Yes No No No
26 No Yes No Yes Yes No No No
27 Yes Yes No Yes Yes No No No
28 No No Yes Yes Yes No No No
29 Yes No Yes Yes Yes No No No
30 No Yes Yes Yes Yes No No No
31 Yes Yes Yes Yes Yes No No No
32 No No No No No Yes No No
33 Yes No No No No Yes No No
34 No Yes No No No Yes No No
35 Yes Yes No No No Yes No No
36 No No Yes No No Yes No No
37 Yes No Yes No No Yes No No
38 No Yes Yes No No Yes No No
39 Yes Yes Yes No No Yes No No
40 No No No Yes No Yes No No
41 Yes No No Yes No Yes No No
42 No Yes No Yes No Yes No No
43 Yes Yes No Yes No Yes No No
44 No No Yes Yes No Yes No No
45 Yes No Yes Yes No Yes No No
46 No Yes Yes Yes No Yes No No
47 Yes Yes Yes Yes No Yes No No
48 No No No No Yes Yes No No
49 Yes No No No Yes Yes No No
50 No Yes No No Yes Yes No No
51 Yes Yes No No Yes Yes No No
52 No No Yes No Yes Yes No No
53 Yes No Yes No Yes Yes No No
54 No Yes Yes No Yes Yes No No
55 Yes Yes Yes No Yes Yes No No
56 No No No Yes Yes Yes No No
57 Yes No No Yes Yes Yes No No
58 No Yes No Yes Yes Yes No No
59 Yes Yes No Yes Yes Yes No No
60 No No Yes Yes Yes Yes No No
61 Yes No Yes Yes Yes Yes No No
62 No Yes Yes Yes Yes Yes No No
63 Yes Yes Yes Yes Yes Yes No No
64 No No No No No No Yes No
65 Yes No No No No No Yes No
66 No Yes No No No No Yes No
67 Yes Yes No No No No Yes No
68 No No Yes No No No Yes No
69 Yes No Yes No No No Yes No
70 No Yes Yes No No No Yes No
71 Yes Yes Yes No No No Yes No
72 No No No Yes No No Yes No
73 Yes No No Yes No No Yes No
74 No Yes No Yes No No Yes No
75 Yes Yes No Yes No No Yes No
76 No No Yes Yes No No Yes No
77 Yes No Yes Yes No No Yes No
78 No Yes Yes Yes No No Yes No
79 Yes Yes Yes Yes No No Yes No
80 No No No No Yes No Yes No
81 Yes No No No Yes No Yes No
82 No Yes No No Yes No Yes No
83 Yes Yes No No Yes No Yes No
84 No No Yes No Yes No Yes No
85 Yes No Yes No Yes No Yes No
86 No Yes Yes No Yes No Yes No
87 Yes Yes Yes No Yes No Yes No
88 No No No Yes Yes No Yes No
89 Yes No No Yes Yes No Yes No
90 No Yes No Yes Yes No Yes No
91 Yes Yes No Yes Yes No Yes No
92 No No Yes Yes Yes No Yes No
93 Yes No Yes Yes Yes No Yes No
94 No Yes Yes Yes Yes No Yes No
95 Yes Yes Yes Yes Yes No Yes No
96 No No No No No Yes Yes No
97 Yes No No No No Yes Yes No
98 No Yes No No No Yes Yes No
99 Yes Yes No No No Yes Yes No
100 No No Yes No No Yes Yes No
101 Yes No Yes No No Yes Yes No
102 No Yes Yes No No Yes Yes No
103 Yes Yes Yes No No Yes Yes No
104 No No No Yes No Yes Yes No
105 Yes No No Yes No Yes Yes No
106 No Yes No Yes No Yes Yes No
107 Yes Yes No Yes No Yes Yes No
108 No No Yes Yes No Yes Yes No
109 Yes No Yes Yes No Yes Yes No
110 No Yes Yes Yes No Yes Yes No
111 Yes Yes Yes Yes No Yes Yes No
112 No No No No Yes Yes Yes No
113 Yes No No No Yes Yes Yes No
114 No Yes No No Yes Yes Yes No
115 Yes Yes No No Yes Yes Yes No
116 No No Yes No Yes Yes Yes No
117 Yes No Yes No Yes Yes Yes No
118 No Yes Yes No Yes Yes Yes No
119 Yes Yes Yes No Yes Yes Yes No
120 No No No Yes Yes Yes Yes No
121 Yes No No Yes Yes Yes Yes No
122 No Yes No Yes Yes Yes Yes No
123 Yes Yes No Yes Yes Yes Yes No
124 No No Yes Yes Yes Yes Yes No
125 Yes No Yes Yes Yes Yes Yes No
126 No Yes Yes Yes Yes Yes Yes No
127 Yes Yes Yes Yes Yes Yes Yes No
128 No No No No No No No Yes
129 Yes No No No No No No Yes
130 No Yes No No No No No Yes
131 Yes Yes No No No No No Yes
132 No No Yes No No No No Yes
133 Yes No Yes No No No No Yes
134 No Yes Yes No No No No Yes
135 Yes Yes Yes No No No No Yes
136 No No No Yes No No No Yes
137 Yes No No Yes No No No Yes
138 No Yes No Yes No No No Yes
139 Yes Yes No Yes No No No Yes
140 No No Yes Yes No No No Yes
141 Yes No Yes Yes No No No Yes
142 No Yes Yes Yes No No No Yes
143 Yes Yes Yes Yes No No No Yes
144 No No No No Yes No No Yes
145 Yes No No No Yes No No Yes
146 No Yes No No Yes No No Yes
147 Yes Yes No No Yes No No Yes
148 No No Yes No Yes No No Yes
149 Yes No Yes No Yes No No Yes
150 No Yes Yes No Yes No No Yes
151 Yes Yes Yes No Yes No No Yes
152 No No No Yes Yes No No Yes
153 Yes No No Yes Yes No No Yes
154 No Yes No Yes Yes No No Yes
155 Yes Yes No Yes Yes No No Yes
156 No No Yes Yes Yes No No Yes
157 Yes No Yes Yes Yes No No Yes
158 No Yes Yes Yes Yes No No Yes
159 Yes Yes Yes Yes Yes No No Yes
160 No No No No No Yes No Yes
161 Yes No No No No Yes No Yes
162 No Yes No No No Yes No Yes
163 Yes Yes No No No Yes No Yes
164 No No Yes No No Yes No Yes
165 Yes No Yes No No Yes No Yes
166 No Yes Yes No No Yes No Yes
167 Yes Yes Yes No No Yes No Yes
168 No No No Yes No Yes No Yes
169 Yes No No Yes No Yes No Yes
170 No Yes No Yes No Yes No Yes
171 Yes Yes No Yes No Yes No Yes
172 No No Yes Yes No Yes No Yes
173 Yes No Yes Yes No Yes No Yes
174 No Yes Yes Yes No Yes No Yes
175 Yes Yes Yes Yes No Yes No Yes
176 No No No No Yes Yes No Yes
177 Yes No No No Yes Yes No Yes
178 No Yes No No Yes Yes No Yes
179 Yes Yes No No Yes Yes No Yes
180 No No Yes No Yes Yes No Yes
181 Yes No Yes No Yes Yes No Yes
182 No Yes Yes No Yes Yes No Yes
183 Yes Yes Yes No Yes Yes No Yes
184 No No No Yes Yes Yes No Yes
185 Yes No No Yes Yes Yes No Yes
186 No Yes No Yes Yes Yes No Yes
187 Yes Yes No Yes Yes Yes No Yes
188 No No Yes Yes Yes Yes No Yes
189 Yes No Yes Yes Yes Yes No Yes
190 No Yes Yes Yes Yes Yes No Yes
191 Yes Yes Yes Yes Yes Yes No Yes
192 No No No No No No Yes Yes
193 Yes No No No No No Yes Yes
194 No Yes No No No No Yes Yes
195 Yes Yes No No No No Yes Yes
196 No No Yes No No No Yes Yes
197 Yes No Yes No No No Yes Yes
198 No Yes Yes No No No Yes Yes
199 Yes Yes Yes No No No Yes Yes
200 No No No Yes No No Yes Yes
201 Yes No No Yes No No Yes Yes
202 No Yes No Yes No No Yes Yes
203 Yes Yes No Yes No No Yes Yes
204 No No Yes Yes No No Yes Yes
205 Yes No Yes Yes No No Yes Yes
206 No Yes Yes Yes No No Yes Yes
207 Yes Yes Yes Yes No No Yes Yes
208 No No No No Yes No Yes Yes
209 Yes No No No Yes No Yes Yes
210 No Yes No No Yes No Yes Yes
211 Yes Yes No No Yes No Yes Yes
212 No No Yes No Yes No Yes Yes
213 Yes No Yes No Yes No Yes Yes
214 No Yes Yes No Yes No Yes Yes
215 Yes Yes Yes No Yes No Yes Yes
216 No No No Yes Yes No Yes Yes
217 Yes No No Yes Yes No Yes Yes
218 No Yes No Yes Yes No Yes Yes
219 Yes Yes No Yes Yes No Yes Yes
220 No No Yes Yes Yes No Yes Yes
221 Yes No Yes Yes Yes No Yes Yes
222 No Yes Yes Yes Yes No Yes Yes
223 Yes Yes Yes Yes Yes No Yes Yes
224 No No No No No Yes Yes Yes
225 Yes No No No No Yes Yes Yes
226 No Yes No No No Yes Yes Yes
227 Yes Yes No No No Yes Yes Yes
228 No No Yes No No Yes Yes Yes
229 Yes No Yes No No Yes Yes Yes
230 No Yes Yes No No Yes Yes Yes
231 Yes Yes Yes No No Yes Yes Yes
232 No No No Yes No Yes Yes Yes
233 Yes No No Yes No Yes Yes Yes
234 No Yes No Yes No Yes Yes Yes
235 Yes Yes No Yes No Yes Yes Yes
236 No No Yes Yes No Yes Yes Yes
237 Yes No Yes Yes No Yes Yes Yes
238 No Yes Yes Yes No Yes Yes Yes
239 Yes Yes Yes Yes No Yes Yes Yes
240 No No No No Yes Yes Yes Yes
241 Yes No No No Yes Yes Yes Yes
242 No Yes No No Yes Yes Yes Yes
243 Yes Yes No No Yes Yes Yes Yes
244 No No Yes No Yes Yes Yes Yes
245 Yes No Yes No Yes Yes Yes Yes
246 No Yes Yes No Yes Yes Yes Yes
247 Yes Yes Yes No Yes Yes Yes Yes
248 No No No Yes Yes Yes Yes Yes
249 Yes No No Yes Yes Yes Yes Yes
250 No Yes No Yes Yes Yes Yes Yes
251 Yes Yes No Yes Yes Yes Yes Yes
252 No No Yes Yes Yes Yes Yes Yes
253 Yes No Yes Yes Yes Yes Yes Yes
254 No Yes Yes Yes Yes Yes Yes Yes
255 Yes Yes Yes Yes Yes Yes Yes Yes
According to that, with i7 CPU (upto 8 cores), with processAffinityMask=255 you will get all (8) cores running. Althought I'm pretty sure you won't get any improvement in performance.
Regards.
- crochebo - 30.11.2009
Ohh ok, but is the last gpu by Nvidia right now? :lol: On waiting the true new gpu the g300 fermie, wait for benchmark :-?
My pc crash on loading game at 30% after load coop with map ?
ok with 6
- agracier - 30.11.2009
This is certainly going to be a silly question, but how does one determine what the frame rate per second of the game is? Is there an in-game command that can be used or do you need a third-party utility?
tks all - =XIII=Shea - 30.11.2009
tks all 4 your responce and agracier you need a third-party utility :o
-
{HVY-E}Jinxx - 30.11.2009
Shea,
I posted a big segment on this a few months back.
This is the way the ProcessAffinityMask value works in IL2.
If it is commented out the OS will decide which cores to use. ie All cores.
"IL-2 is not a ,multithread application." True
IL-2 only uses 1 core" False.
so PAF....
=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
commented out - all cores
If a core is enabled, it does NOT mean that core will be performing 100% while the other cores that are not enabled do nothing.
The enabled core needs an active thread to perform,
The disabled cores will be assigned tasks by the OS if needed.
There is only one way to switch off cores - the power switch - meaning all or nothing lol.
There was an long thread at SimHQ some time back exploring this(end 2005/beginning of 2006).
a '1' bit will enable the core, a '0' bit disables it.
Actual activity of cores can be checked through TaskManager. Keep in mind in general Windows OS runs hundreds of threads at the same time IL-2 runs.
A substantial part of IL-2 is written in Java which can use in excess of 100 threads. (source: Sun Microsystems) Shift-Tab opens the Java console in-game Yep that's where all those white messages come from.
Bitmask: 00000000000000000000000000000000 = Decimal 0
Processor affinity is off, and the load is distributed across all available processors.
Bitmask: 00000000000000000000000000000001 = Decimal 1
Processor 1 selected. The process will only run on processor 1.
Bitmask: 00000000000000000000000000000010 = Decimal 2
Processor 2 selected. The process will only run on processor 2.
Bitmask: 00000000000000000000000000000011 = Decimal 3
Processors 1 & 2 selected. The load is distributed across both processors, effectively the same as setting 0 above for Dual cores.
Because 0 puts the load across all processors and 3 puts the load on processor 1 and 2, they are essentially the same thing for Dual core CPUs.
For Quad core CPUs you can use more values:
Bitmask: 00000000000000000000000000000100 = Decimal 4
Processor 3 selected. The process will only run on processor 3.
Bitmask: 00000000000000000000000000001000 = Decimal 8
Processor 4 selected. The process will only run on processor 4.
And any combo between 0 and 15, for example:
Bitmask: 00000000000000000000000000000101 = Decimal 5
Processor 1 and 3 selected. The load is distributed across processor 1 and 3.
Bitmask: 00000000000000000000000000001111 = Decimal 15
Processor 1, 2, 3, and 4 selected. The load is distributed across all processors, 1, 2, 3, and 4.
Get the picture?
Basically, using a multi core processor in IL-2 has no real performance gain when you're talking about just the game, but........
If you use a multicore processor and assign different programs to each core, you get incredible results.
ie. I use an AMD Phenom 9850 quad core with the following settings.
IL-2 is running on Core 4
TS is running on Core 3
HL is running on Core 2
Windows uses Core 1
This is what processor affinity will do for you. Take the load off of the core that you're using for the game by assigning the game to use a core that isn't normally used. Windows, by default, will always try to use the first core (Core 0).
Hope this helps a bit.
- agracier - 30.11.2009
{HVY-E}Jinxx Wrote:Basically, using a multi core processor in IL-2 has no real performance gain when you're talking about just the game, but........
If you use a multicore processor and assign different programs to each core, you get incredible results.
ie. I use an AMD Phenom 9850 quad core with the following settings.
IL-2 is running on Core 4
TS is running on Core 3
HL is running on Core 2
Windows uses Core 1
This is what processor affinity will do for you. Take the load off of the core that you're using for the game by assigning the game to use a core that isn't normally used. Windows, by default, will always try to use the first core (Core 0).
Hope this helps a bit.
I understand how using the affinitmask will assign cores for Il-2, but how do I get windows assigned to (for instance as in your example) Windows to only use core1? I doubt that is done by changing annything in Il-2's config.ini file ...
RE: To all my AAA pals in this Topic - Fireskull - 30.11.2009
The discussion here is overall very useful.
However, Windows Task Manager reveals to me that IL-2 in my Laptop is running in both my cores all the time, which is what I want. NVIDIA System Monitor confirms this. My process affinity mask is set to =3. Also, Windows Task Manager indicates that the nHancer is directing the CPU to process IL-2 (in 8 prerendered frames) of up to 22 threads. Before I even knew that nHancer exists, I had IL-2 running in the first core only
most of the time with 1 to 3 threads.
Now IL-2 is all the time running in both cores with no less than 18 threads and sometimes in the mid 20s of threads. My graphics settings are mostly 16 times the default. Though NVIDIA only allows upto 8x graphics, nHancer overides most factory features to reach upto 16x the default. If you have not used it before this, then I highly recommend using nHancer and referring to Windows Task Manager Resource Monitor to know with certainty what cores and how many threads are being used to process IL-2.
My frame rates very from 20 to 70 FPS. When I reduce the Anti-aliaising, then the minimum is 40 FPS in forward cockpit view and maximum of around 80s to 90s FPS in some views.
The graphics settings are set either to the maximum or twice the factory maximum with nHancer, with very few reduced for performance. Guys, I wish that you could see the results. Take last night online flying for example. My first mission of the night I was with my squadron buddies over the Slovenia Map. Even though I have experienced amazing scenes with my new settings, I was again stunned by the exact realism of the mountain region scene. In that mission, there were no distortions or anomalies, though the FPS did drop to about 20 when the plane was near the mountains and clouds. The next mission was the AAA Normandy Map. The whole time I was once again stunned and breathless with amazement at the realism. All the lines, distances, borders, and color transitions-the whole scene, is like a motion picture or real life!
I sincerely hope that this helps people. I really want others to see the nice improvements and get more enjoyment in IL-2.