Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

One Tweak to Rule Them All - How to set Affinity Mask Correctly

Featured Replies

Interesting post, thanks! However, my good old AF=14 seems to work best for me and (oddly enough) the Adaptive options in the nVidia CP introduces stutters on my PC...? So I set it back to the default setting again. P3D was butter smooth already on my system but if never hurts to see if some fps can be gained somewhere. ^_^ Since tweaks are easy to implement and to remove again it's always worth a shot imho!

  • Replies 98
  • Views 121k
  • Created
  • Last Reply

Top Posters In This Topic

  • Commercial Member

Hey Toby, yes me too, I'm non overclocked and HT on.

Steve Waite: Engineer at codelegend.com

I am running a 120hz monitor, do I need to worry about adaptive vsync?

"Adaptive options"

 

This is probably not the end all on all of the different monitors out there - including all of the tweaks with all the different cpu's - gpu's - etc. one will have to tinker for Their own setup - no way around it - that being said it will be very hard for LM to come up with a fix that works for all - the only way around that is a sim built from the ground up - correct me if I am wrong but I doubt it

Rich Sennett

               

Getting a MUCH stable  overclocking with HT on  up to 4.8 mhz, temp max 80 a little bit higher  then   HT   off    HT off stable  max 4.5 :rolleyes:

i7 4777k 4.6mhz, 32gddr3, GTX 760 4g sci ,Saitek x52,yoke and quadrant, 60 Led . SSD

 

Thanks mate!

Even if this info is buried in the forums, taking the time to lay it out in a simple form is really helpful. It's hard sometimes to separate the wheat from the bull*****  (sorry)

 

 

 

 

Jim Harris

LM/ Learning Centre/Tuning Guide

 

[JOBSCHEDULER]


AffinityMask=14 Non-Default entry. This entry will not exist in your Prepar3D.cfg file by default and must be added to the file.

Performance Tuning Tip:
Prepar3D runs best with one thread per physical processor core. By default, the application will create one thread per physical processor core. On quad core plus machines, the application will leave the first physical core open to allow the operating system, drivers, and other programs to run without interfering. Please note that many AMD processors that are marketed as 4 or 8 core processors really have 2 or 4 physical cores with something analogous to hyper-threading, so the default of one thread on every other core is still the intended behaviour. The easiest method for modifying the affinity mask is to open the windows calculator in programmer view, select the binary display mode, and flip the bits in the binary number displayed to select which cores the application should run on. Note that the cores are represented right to left. /dd> 

Capt_Sig_Day.jpgmce_forum_banner.jpg
  • Commercial Member

Makes sense. What they are saying is that if an application spreads itself across all processors, it will inevitably bump into other threads. And so the Affinity Mask is used to partition the application onto a subset of cores, leaving the o/s to use the remaining less active cores. With HT on they are saying to use alternate LPs so that a full physical core is utilised per thread.

Steve Waite: Engineer at codelegend.com

 

 


On quad core plus machines, the application will leave the first physical core open to allow the operating system, drivers, and other programs to run without interfering.

 

There are posts by LM staff on their forum indicating that they are now not that sure that this is true. At least for Win7/8 64 bit, the OS does such an efficient job of scheduling tasks, that it really makes no sense to disable 25% of the cores in P3d by default, just so some mythical OS use can operate unimpeded. On my setup, I've logged CPU use to a file during P3d sessions and I've never seen any other tasks (except TrackIR and ANS) use more than 1% of the CPU. Usually, the sum of all the other CPU use is less than 1%.

  • Commercial Member

Of course, if the application spreads itself across all the available cores, and OK one or more cores may get interrupted to run other infrequent threads, then it's no big deal, but it has full bandwidth of all the cores. However, if those threads are not utilising the full bandwidth of any core they can be partitioned onto less cores without impeding performance, and continue to avoid those infrequent o/s threads.

Steve Waite: Engineer at codelegend.com

OMG

 

I just put AffinityMask = "-G", and the program still worked, and all the cores were fully loaded !!!

 

Is it just me or are there more people that are getting a bit tired with all the AffinityMask-topics all the time.

Why does everyone always make a new topic instead of using an old one, and why not post in the tweaks/settings section ?

  • Author

Because they're was no guide on how to work out the best value for your system. All those other posts didn't help me get the performance I have now.

Ryzen 5800X3D, 64GB RAM, RTX 4090, Windows 11
Link to my: Dynamic Flight Dispatch Tool

Thanks for the useful information.

 

I use a i5 3570k @ 4.5 ghz which along with my gtx 780ti runs P3D 2.2 with most sliders to the right (with the usual micro stutters).

 

Affinity Mask set at 15 all cores via the P3D cfg file gives processor temps of 70+ degrees.

 

Now if I remove Affinity Mask from cfg file and set all cores via task manager temps stabilize in the mid to high 60's 

 

Can anyone confirm this as normal ?

 

Mick

Thanks for the useful information.

 

I use a i5 3570k @ 4.5 ghz which along with my gtx 780ti runs P3D 2.2 with most sliders to the right (with the usual micro stutters).

 

Affinity Mask set at 15 all cores via the P3D cfg file gives processor temps of 70+ degrees.

 

Now if I remove Affinity Mask from cfg file and set all cores via task manager temps stabilize in the mid to high 60's 

 

Can anyone confirm this as normal ?

 

Mick

 

Yes Mick, 15 will get all 4 cores running the sim and would seemingly raise temps. I use 14 (which is is done by default...if you leave the [JobScheduler] out of the config file. I see no performance difference between the two. Using a SB [email protected].

cheers, 

i7-9700K, MSI Z370, PNY 4070 Super, GTX 750Ti, 32GB GSkill, 43" curved Samsung, 32" BenQ, 11" LED, RealSImGear GTN750, Win10,

P3DV5.4/P3DV6 and MSFS, several GoFlight modules, Saitek radio, Brunner CLS-E NG Yoke, Virtual Fly TQ6.

 

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.