Sign in to follow this  
Wanthuyr Filho

Side addons affinity not working

Recommended Posts

Trying to free Core Zero as much as possible for P3D itself, was able to take ChasePlane out of Core Zero, but not ActiveSky nor SkyForce. The batch file command line is identical for all three of them. What is going on?

Share this post


Link to post
Help AVSIM continue to serve you!
Please donate today!

20 minutes ago, Wanthuyr Filho said:

The batch file command line is identical for all three of them.

Could you paste the command line of each app here?

Thanks,

Greg

Share this post


Link to post

start /b "ActiveSky" /affinity 3E "c:\blablabla\AS_P3Dv4.exe"

 

Share this post


Link to post
12 minutes ago, Wanthuyr Filho said:

start /b "ActiveSky" /affinity 3E "c:\blablabla\AS_P3Dv4.exe"

 

C:\Windows\System32\cmd.exe /c start "Active Sky" /affinity C0 "C:\Program Files (x86)\HiFi\AS_P3Dv4\AS_P3Dv4.exe"

works for me ...

 

Share this post


Link to post
1 minute ago, Nemo said:

C:\Windows\System32\cmd.exe /c start "Active Sky" /affinity C0 "C:\Program Files (x86)\HiFi\AS_P3Dv4\AS_P3Dv4.exe"

works for me ...

 

This is the method I started with, but no success either for me.

Thanks!

Share this post


Link to post
1 minute ago, Wanthuyr Filho said:

This is the method I started with, but no success either for me.

Thanks!

Do you start the app as administrator?

Share this post


Link to post

I think I have solved the thing. Starting the two programs as Admin apparently made it work. As to ChasePlane maybe it was already set that way, I'm not sure.

Share this post


Link to post

Just confirmed ChasePlane was NOT set as Admin, despite the affinity setting worked right on first attempt. No idea what made it work!

Share this post


Link to post

If someone is interested ...

 I've written a batch for the UTL client. It can be run after P3D has started. It first stops the UTL client and then re-starts with affinity mask active ...

Edited by Nemo

Share this post


Link to post
Just now, Nemo said:

If someone is interested ...

 I've written a batch for the UTL client. It can be run after P3D has started. It first stops the UTL client and then re-starts withAffininity mask active ...

I'd be instrested.

I'm still inexperienced in the cores3-4-5-6 hex value for my 6-core, but I assume I can go to the Gatwick site and get it.  i.e. C0 is probably not for me.

Share this post


Link to post
3 minutes ago, Mace said:

I'd be instrested.

I'm still inexperienced in the cores3-4-5-6 hex value for my 6-core, but I assume I can go to the Gatwick site and get it.  i.e. C0 is probably not for me.

https://www.mathsisfun.com/binary-decimal-hexadecimal-converter.html

code:

@ECHO OFF
echo.
echo.
echo STEP 1: closing client . . .
echo.
TASKKILL /F /IM utl_client.exe
echo.
echo.
echo STEP 2: Starting Client with AffinityMask . . .
start "" /affinity C0 "E:\P3Dv4_ADDONS\V4_TRAFFIC\UTL\utl_client.exe"
echo.
echo SUCCESS: client restarted - will be active in approx. 15 seconds
echo.
echo.
Pause

 

 

  • Like 1

Share this post


Link to post

Thanks.  I believe my hex val is simply "F", which is 001111, that should get UTL onto cores 3-4-5-6.

Share this post


Link to post
8 minutes ago, Mace said:

Thanks.  I believe my hex val is simply "F", which is 001111, that should get UTL onto cores 3-4-5-6.

No, this will use cores 0,1,2,3. You have to read the bin value from right to left

You need to use hex 3C

Edited by willy647
  • Like 1

Share this post


Link to post

Ah yes, 3C -- right to left -- thank you.

Share this post


Link to post
13 minutes ago, Mace said:

Thanks.  I believe my hex val is simply "F", which is 001111, that should get UTL onto cores 3-4-5-6.

No, The binary/AM works from right (core 0) to left. Core Numbering starts with core 0. In your case (6 cores) it must be Core 0, Core 1, .... Core 5.

Binary for the use of  core 2, core 3 core 4  core 5 corresponds to 111100 which corresponds to hexadecimal: 3C

 

Edited by Nemo

Share this post


Link to post

Rhett, I take it you have HT off !!!! Otherwise 3C is no good 😞

Edited by willy647

Share this post


Link to post
4 minutes ago, willy647 said:

Rhett, I take it you have HT off !!!! Otherwise 3C is no good 😞

Yes, I'm presently running 4.4 with HT off.

My setup is really smooth now, but if I can further unload Core0 I will do it.

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