Jump to content

Sign in to follow this  
willy647

Affinity app

Recommended Posts

I made this little app for myself, but why not share it with the community !  In short, it allows you to start any program with a specific affinity. Select the app, set the cores you want it to use, and you will get a shortcut to that app running on just the cores you want.

Dowmload from the avsim library - search for 'affinty shortcut' or here  https://willy648.stackstorage.com/s/yR7vbJn6CyWkmX3

 

https://imgur.com/a/SdbtiPT

 

 

 

  • Like 5

Willy Vercruyssen

i7-7700K @ 4.9 GHz, 32GB DDR4, GTX1080, 2 x Samsung 1TB NVMe, 1 x 3TB HDD, Windows 10 Prof

Share this post


Link to post

Just what I was looking for. Now I don't have to use Process Lasso

which I have never been keen on. I also use your Affinity calculator

regularly - another great little program.

 

Thank you very much !!

  • Like 1

 

 

Share this post


Link to post

Thanks for the generous gift to the community..

Being not technologically inclined enough to know the purpose of this. What benefit is there to selecting cores to different programs? 

  • Like 1

Gerry
Prepar3D V4 - PMDG 747/400- PMDG 737 - Majestic Dash 8 - Activesky 16 - ASCA - ORBX FTX Global base pack - ORBX NA LC - ORBX HD Trees - Precipitfx - Chaseplane - Carenado PC-12, QW 787, FT(CYYZ, KBOS, CYUL), FB (KIAD,KPDX,KSFO), FSDT (CYVR), FSimstudios (CYYC), Aerosoft A320 pro.

System: Intel I7 7700 / 12 GB Ram / Windows 10 - 64 bit / NVIDIA GeForce GTX 1060 6GB / 32" Acer Monitor

Share this post


Link to post

very kind of you to share this app with the community

i think a lot of people would benifit from this

thank you

  • Like 1

jeff storey

Share this post


Link to post

Assign at least two LPs per app, since some apps on one LP can be forced into longer wait states.

20 minutes ago, flyinpilot212121 said:

Thanks for the generous gift to the community..

Being not technologically inclined enough to know the purpose of this. What benefit is there to selecting cores to different programs? 

Some apps will spread all over the CPU and interfere with the running of the main task of the sim. With few cores corrall addon exe's onto cores away from the sim main cores which dictate the fps, as we can use the cores servicing the back end tasks of the sim as they take seconds to complete.

If an app has it's own affinity setting, use that setting (as in P3D and FSX JOBSCHEDULER setting) rather than use another app.

Edited by SteveW
  • Upvote 2

Steve Waite: Engineer at codelegend.com

Share this post


Link to post
3 minutes ago, SteveW said:

Assign at least two LPs per app, since some apps on one LP can be forced into longer wait states.

Some apps will spread all over the CPU and interfere with the running of the main task of the sim. With few cores corrall addon exe's onto cores away from the sim main cores which dictate the fps, as we can use the cores servicing the backed tasks of the sim as they take seconds to complete.

If an app has it's own affinity setting, use that setting (as in P3D and FSX JOBSCHEDULER setting) rather than use another app.

Thanks for trying to explain it, and I’m sure that is the explanation but looks like I have some research to do as I have no idea what all that meant,

ill look into this, anything to make the sim run better is worth it.

regards

  • Like 1

Gerry
Prepar3D V4 - PMDG 747/400- PMDG 737 - Majestic Dash 8 - Activesky 16 - ASCA - ORBX FTX Global base pack - ORBX NA LC - ORBX HD Trees - Precipitfx - Chaseplane - Carenado PC-12, QW 787, FT(CYYZ, KBOS, CYUL), FB (KIAD,KPDX,KSFO), FSDT (CYVR), FSimstudios (CYYC), Aerosoft A320 pro.

System: Intel I7 7700 / 12 GB Ram / Windows 10 - 64 bit / NVIDIA GeForce GTX 1060 6GB / 32" Acer Monitor

Share this post


Link to post
10 minutes ago, jstorey20 said:

i think a lot of people would benifit from this

If we run several exe addons alongside the sim we can set the affinity of the sim and those addons to play nice together. Properly set up these techniques can save at least 5% or more CPU throughput which gives overhead to the simulator.

  • Like 1
  • Upvote 1

Steve Waite: Engineer at codelegend.com

Share this post


Link to post

Personnally, I successfully use a small batch file in witch there are Powershell commands setting the affinity for each EXE process once P3D is launched (SODE, Linda, Couatl, etc...).

Here follows an example:

@echo off

ping 127.0.0.1 -n 60 >nul       -->          Waiting 1 mn for all P3D addons launched

PowerShell "$Process = Get-Process Couatl; $Process.ProcessorAffinity=240"

Exit

The value must be Decimal

Edited by CoolCaptain
  • Like 1

Share this post


Link to post

The app has not been loaded to the library yet because of a problem during submission.  I'll load it as soon as the author resubmits it.

James M Driskell

AVSIM Library Manager


Boeing777_Banner_Pilot.jpg

James M Driskell, Maj USMC (Ret)

 

 

Share this post


Link to post
1 hour ago, CoolCaptain said:

Personnally, I successfully use a small batch file in witch there are Powershell commands setting the affinity for each EXE process once P3D is launched (SODE, Linda, Couatl, etc...).

Here follows an example:

@echo off

ping 127.0.0.1 -n 60 >nul       -->          Waiting 1 mn for all P3D addons launched

PowerShell "$Process = Get-Process Couatl; $Process.ProcessorAffinity=240"

Exit

The value must be Decimal

That looks interesting. So if you wanted to set the affinity of multiple programs,

you would just add additional lines - PowerShell "$Process = Get-Process Couatl; $Process.ProcessorAffinity=240", and

change the name of the process and the decimal affinity number at the end to whatever you want?

This might be better for me as unfortunately the Affinity app from the OP didn't work correctly on some of my addons.

Do you run the batch file from the FSUIPC ini file?

 

Thanks, Clive.


 

 

Share this post


Link to post

Exactly. One line for each process whatever the amount of them. I don't run the batch from FSUIPC, I didn't knwow that is was possible.

I aleady had a batch with a routine to get random splash screens in witch I call another batch file containing the commands mentioned above.

  • Like 1

Share this post


Link to post
15 hours ago, caveney747 said:

This might be better for me as unfortunately the Affinity app from the OP didn't work correctly on some of my addons.

Did you run the shortcut as administrator ?  That is a must !

  • Like 1

Willy Vercruyssen

i7-7700K @ 4.9 GHz, 32GB DDR4, GTX1080, 2 x Samsung 1TB NVMe, 1 x 3TB HDD, Windows 10 Prof

Share this post


Link to post

Does this app work with executables that are started together or on demand of the simulator? E.g.: I use .bat files to set the affinity of my external addons such as ActiveSky, REX EF, ProATC/X etc. However, this does not work for UT2.exe for example, as this executable is only executed upon starting P3D and it does not work if I put the .bat file into the config. Only work-around to set an affinity for UT2 is running the .exe manually after starting P3D, but that is not convenient...


Greetings, Chris

Intel i7-8700K@5.0GHz, 2x16GB 3200MHz CL14 RAM, Gigabyte AORUS 1080Ti, Windows 10 Home 64bit, Prepar3D 4.5

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
  • Donation Goals

    AVSIM's 2020 Fundraising Goal

    Donate to our annual general fundraising goal. This donation keeps our doors open and providing you service 24 x 7 x 365. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. We reset this goal every new year for the following year's goal.


    45%
    $11,435.00 of $25,000.00 Donate Now
×
×
  • Create New...