CPU affinity lets you pin a game to specific processor cores instead of letting Windows spread it across all of them. On the right hardware it can smooth frame times, and on hybrid CPUs with performance and efficiency cores it can keep your game on the fast cores where it belongs. It is a niche tweak with real caveats, so this guide shows when it helps, how to do it safely, and when to leave it alone.

What affinity actually changes

By default the Windows scheduler decides which cores run each thread and moves work around as needed. Affinity overrides that by restricting a process to a chosen set of cores. This can reduce the small stutters caused by threads bouncing between cores, and it can prevent a game from being scheduled onto slower efficiency cores or onto a second CPU chiplet with higher cross-core latency.

Scenario Affinity likely to help? Suggested cores
8-core single-CCD CPU Rarely Leave default
Hybrid P-core/E-core CPU Sometimes Pin to P-cores
Dual-CCD CPU, latency-sensitive game Sometimes Pin to one CCD
Background encode while gaming Yes Reserve cores per app

Set affinity through Task Manager

The manual method

Launch the game, alt-tab out, open Task Manager, go to the Details tab, right-click the game’s executable, and choose Set Affinity. Uncheck the cores you want to exclude, then confirm. On a hybrid CPU, leaving only the performance cores checked keeps the game off the efficiency cores. The change lasts only until you close the game.

Make it stick

Because Task Manager affinity resets every launch, use a small launcher script or a third-party tool if you want it applied automatically. A command using start /affinity with a hexadecimal core mask can launch the game pre-pinned. Keep a note of your mask, since the bit pattern maps directly to core numbers.

Understand the trade-offs

Modern Windows and current CPU firmware already handle core scheduling well, so on a typical single-chiplet 6 or 8-core CPU, forcing affinity usually does nothing or slightly hurts by starving the game of cores it could have used. The measurable gains are mostly on hybrid CPUs where the OS occasionally parks work on efficiency cores, and on multi-chiplet CPUs where cross-chiplet latency matters for a few sensitive titles.

Do not over-restrict

Pinning a demanding game to only two or four cores when it wants six will tank your frame rate. Give the game enough cores to breathe; the goal is to steer it to the right cores, not to cage it. Always benchmark before and after with a frame-time overlay so you are measuring a real change, not a placebo.

A cleaner alternative for hybrid chips

Before fiddling with affinity, make sure Windows is fully updated and your chipset and CPU drivers are current, since the scheduler and thread director rely on them to place work correctly. In many cases updating those removes the exact stutter you were about to fix manually, making affinity unnecessary.

Reserve cores for streaming instead

The most defensible use of affinity is splitting a CPU between a game and a demanding background task. If you stream or record with software encoding on the same PC, you can pin the encoder to a couple of cores and give the game the rest, so the two stop fighting over the same threads. On an 8-core CPU, dedicating two cores to the encoder and six to the game often yields steadier frame times than letting Windows freely mix them. Test the split with a frame-time overlay, and remember that GPU-based hardware encoding sidesteps the whole problem by keeping the CPU free for the game.

FAQ

Will setting CPU affinity boost my FPS?

Usually not on a standard single-chiplet CPU; the scheduler already uses your cores well. It can help average frame times or reduce stutter specifically on hybrid P-core/E-core designs or multi-chiplet CPUs in a handful of latency-sensitive games. Always measure, because results vary by title and hardware.

Does affinity reset when I close the game?

Yes. Task Manager affinity is temporary and clears on exit. To apply it automatically each time, launch the game through a script using start /affinity with the correct core mask, or use a dedicated utility that reapplies your preference.

Bottom line

CPU affinity is a targeted tool, not a universal speed-up. On a normal single-chiplet CPU, leave scheduling to Windows and keep your drivers current. On hybrid or multi-chiplet chips, pinning a stubborn game to the performance cores or a single chiplet can smooth frame times, provided you give it enough cores and verify the gain with a frame-time overlay.

Related guides

Browse all PC Gaming Guides guides →