Re: Finding FSX.CFG and setting an affinity mask
Posted: 02 Aug 2014, 16:11
For those who may be interested, I've just been doing some research on the affinity mask in P3D, with some unexpected results.
P3D has been able to run in both real and virtual cores (hyper-threads) since version 1.3. However, there are some interesting twists. By default, P3D will only set itself to run on real cores, for the simple reason that the code that is assigned to the threads is the most resource use intensive code in P3D, and running resource intensive code in both the real and virtual halves of a processor core leads to poor performance. In other words, you only get the best performance using the real cores. The default behaviour is, as Paul said, equivalent to an affinity mask setting of 84. For those users lucky enough to have a 6 core CPU, the best value would be 1364.
It would seem that somewhere between version 1.3 and 2.2 (I think it was 2.0 but have seen nothing to corroborate that), the P3D thread handler has grown the ability to run more than three threads - at least five based on that mask value for a 6 core CPU.
LM's advice, like that of m$, is to always leave the first "primary" core free ...
For FSX users, the implication in that first bit of news is that FSX does not run in virtual cores ! ! !
All info available in the LM forums ...
P3D has been able to run in both real and virtual cores (hyper-threads) since version 1.3. However, there are some interesting twists. By default, P3D will only set itself to run on real cores, for the simple reason that the code that is assigned to the threads is the most resource use intensive code in P3D, and running resource intensive code in both the real and virtual halves of a processor core leads to poor performance. In other words, you only get the best performance using the real cores. The default behaviour is, as Paul said, equivalent to an affinity mask setting of 84. For those users lucky enough to have a 6 core CPU, the best value would be 1364.
It would seem that somewhere between version 1.3 and 2.2 (I think it was 2.0 but have seen nothing to corroborate that), the P3D thread handler has grown the ability to run more than three threads - at least five based on that mask value for a 6 core CPU.
LM's advice, like that of m$, is to always leave the first "primary" core free ...
For FSX users, the implication in that first bit of news is that FSX does not run in virtual cores ! ! !
All info available in the LM forums ...