Far Cry 2

Far Cry 2

TehSpoopyKitteh Dec 29, 2024 @ 8:41am
CPU Affinity Mask Calculation Explained
I you are playing Far Cry 2 on current hardware, you'll find that the game has a much better performance when only utilizing physical threads used by the CPU. For instance, my Core i7-6700K has 4 cores+4 threads for a total of 8 threads. In short it has 4 cores, so we need to set the CPU Affinity Mask setting accordingly in Far Cry 2 Multifixer.

In order for this to happen, you need to learn how to convert binary to decimal (it is not that difficult).

When you figure out the desired number of cores (see below), align the 1's and 0's from right to left starting with cpu-0. If you want cpu-0 active, you place a 1 under it. In my case that would be the following:
cpu-0 1 cpu-1 1 cpu-2 1 cpu-3 1

That ends up being 1111 in binary...or 15 in decimal.

If I want to use a specific pair or quartet or triplet (etcetera) of cores you can also do that:
cpu-0 1 cpu-1 1 cpu-2 0 cpu-3 0

The binary result would be 0011...which means the Affinity Mask should be set to 3

0101 would be an Affinity Mask set to 5
Last edited by TehSpoopyKitteh; Dec 29, 2024 @ 9:20am