Jump to content

Test: Setting CPU Affinity


Recommended Posts

If you allow gaming mode it should allow the chosen app to maximize CPU usage. No throttling basically, even if the program wants 100% utilization. But, the program can still bounce around cores as Skatezilla pointed out unless you lock it to certain cores.

 

The way I have mine set up, I5 4670k, is DCS on cores 3 & 4 with high priority and gaming mode on, facetracking on 1-2, logitech gaming on 1-2, and so on. Most of the OS stuff seems to run on 1-2.

I'm still playing with it to see if any further improvement can be had but there's a lot of stuff that runs no matter what you do it seems.

 

I don't see 1-4 in this program. All I see is 0-3 and I am using a i7 930 with hyperthreading switched off in the bios.

Link to comment
Share on other sites

I don't see 1-4 in this program. All I see is 0-3 and I am using a i7 930 with hyperthreading switched off in the bios.

 

Computers Count 0-9, not 1-10

 

so Core 1 = Core 0, Core 2 = Core 1 and so on.

Windows 10 Pro, Ryzen 2700X @ 4.6Ghz, 32GB DDR4-3200 GSkill (F4-3200C16D-16GTZR x2),

ASRock X470 Taichi Ultimate, XFX RX6800XT Merc 310 (RX-68XTALFD9)

3x ASUS VS248HP + Oculus HMD, Thrustmaster Warthog HOTAS + MFDs

Link to comment
Share on other sites

I don't see 1-4 in this program. All I see is 0-3 and I am using a i7 930 with hyperthreading switched off in the bios.

 

 

Dude... post # 49, page 5 - this thread

City Hall is easier to fight, than a boys' club - an observation :P

"Resort is had to ridicule only when reason is against us." - Jefferson

"Give a group of potheads a bunch of weed and nothing to smoke out of, and they'll quickly turn into engineers... its simply amazing."

EVGA X99 FTW, EVGA GTX980Ti FTW, i7 5930K, 16Gb Corsair Dominator 2666Hz, Windows 7 Ultimate 64Bit, Intel 520 SSD x 2, Samsung PX2370 monitor and all the other toys

-

"I am a leaf on the wind, watch how I soar"

Link to comment
Share on other sites

Set CPU affinity automaticly while game starts .

Add following line to "C:\Users\[YOURNAME]\Saved Games\DCS\Config\autoexec.cfg":

affinity_mask = xxx

 

xxx = cpu bitmask (decimal )

ATTENTION: affinity_mask=0 means all cores, default

 

affinity_mask setting sample:

you have 8 cores(CPU0 - CPU7), you want CPU6 and CPU7 for DCS, bitmask:

(Flag define: 1=Enable, 0=Disable)

CPU: 7 6 5 4 3 2 1 0

Flag: 1 1 0 0 0 0 0 0 (binary) = 0xC0 (hexadecimal) = 192 (decimal )

 

so

affinity_mask=192

 

Hi L0op8ack

 

I don't have autoexec.cfg file in the mentioned folder?

 

Did i get it wrong? Should have been there or not?

Link to comment
Share on other sites

Hi L0op8ack

 

I don't have autoexec.cfg file in the mentioned folder?

 

Did i get it wrong? Should have been there or not?

 

you have to make one.

  • Like 1

Windows 10 Pro, Ryzen 2700X @ 4.6Ghz, 32GB DDR4-3200 GSkill (F4-3200C16D-16GTZR x2),

ASRock X470 Taichi Ultimate, XFX RX6800XT Merc 310 (RX-68XTALFD9)

3x ASUS VS248HP + Oculus HMD, Thrustmaster Warthog HOTAS + MFDs

Link to comment
Share on other sites

I have tried to play with affinity and priority set and I am experiencing regular sound losses and microfreezes. Probably this method is not helping me...

AMD Ryzen 3600, Biostar Racing B850GT3, AMD Rx 580 8Gb, 16384 DDR4 2900, Hitachi 7K3000 2Tb, Samsung SM961 256Gb SSD, Thrustmaster T.Flight HOTAS X, Samsung S24F350 24'

Link to comment
Share on other sites

will post my autoexec.cfg when I get home tonight,

 

I have it set to use 2 cores (06 and 07) and cap my FPS at 30 (to avoid Tearing etc).

  • Like 1

Windows 10 Pro, Ryzen 2700X @ 4.6Ghz, 32GB DDR4-3200 GSkill (F4-3200C16D-16GTZR x2),

ASRock X470 Taichi Ultimate, XFX RX6800XT Merc 310 (RX-68XTALFD9)

3x ASUS VS248HP + Oculus HMD, Thrustmaster Warthog HOTAS + MFDs

Link to comment
Share on other sites

SkateZilla How do you cap FPS? I also suffer from tearing, but enabling Vsync makes the game much less responsive.

AMD Ryzen 3600, Biostar Racing B850GT3, AMD Rx 580 8Gb, 16384 DDR4 2900, Hitachi 7K3000 2Tb, Samsung SM961 256Gb SSD, Thrustmaster T.Flight HOTAS X, Samsung S24F350 24'

Link to comment
Share on other sites

SkateZilla How do you cap FPS? I also suffer from tearing, but enabling Vsync makes the game much less responsive.

 

in the same file that is used to Set CPU Affinity.

(Will post it later when I get home, as it's a tricky File to get working, (Text Encoding?)

I think i have 9 Custom Lines for FPS, Screenshots, Affinity etc.

 

But in your /Config/Graphics.lua

options.graphics.maxfps =

(Change to whatever FPS You want, default is 120 i think,..).

 

on that note, the VSYNC INPUT Lag on DCS is no where near what it is on First Person shooters...


Edited by SkateZilla

Windows 10 Pro, Ryzen 2700X @ 4.6Ghz, 32GB DDR4-3200 GSkill (F4-3200C16D-16GTZR x2),

ASRock X470 Taichi Ultimate, XFX RX6800XT Merc 310 (RX-68XTALFD9)

3x ASUS VS248HP + Oculus HMD, Thrustmaster Warthog HOTAS + MFDs

Link to comment
Share on other sites

i dont mess with process Priority.

Windows 10 Pro, Ryzen 2700X @ 4.6Ghz, 32GB DDR4-3200 GSkill (F4-3200C16D-16GTZR x2),

ASRock X470 Taichi Ultimate, XFX RX6800XT Merc 310 (RX-68XTALFD9)

3x ASUS VS248HP + Oculus HMD, Thrustmaster Warthog HOTAS + MFDs

Link to comment
Share on other sites

I think you have set it to different cores instead of one. It should be 0 and 1, 2 and 3, 4 and 5, 6 and 7.

 

I tried the affinity and it didn't do much. Set DCS to cores 3 and 4, priority high. Sitting on the ramp at Batumi looking West I have 60fps. When I look North towards the city I stutter and my frames drop to 34fps.

AMD Ryzen 3600, Biostar Racing B850GT3, AMD Rx 580 8Gb, 16384 DDR4 2900, Hitachi 7K3000 2Tb, Samsung SM961 256Gb SSD, Thrustmaster T.Flight HOTAS X, Samsung S24F350 24'

Link to comment
Share on other sites

This maybe a bit off topic. But isn't all this work fruitless considering edge ? I'll keep it short and sweet w/out my many reasons why.. If need be I can elaborate.

 

My main reason for asking this is people will spend the money for upgraded hardware if requiring. But if it's just to improve this engine, etc. what is the point?

 

My presuming comes from PC games in general, ps3 games and seeing how dx10,11 turns choppy gameplay to arcadey feel smoothness. Example.

Intel i9-9900K 32GB DDR4, RTX 2080tiftw3, Windows 10, 1tb 970 M2, TM Warthog, 4k 144hz HDR g-sync.

Link to comment
Share on other sites

This maybe a bit off topic. But isn't all this work fruitless considering edge ? I'll keep it short and sweet w/out my many reasons why.. If need be I can elaborate.

 

My main reason for asking this is people will spend the money for upgraded hardware if requiring. But if it's just to improve this engine, etc. what is the point?

 

My presuming comes from PC games in general, ps3 games and seeing how dx10,11 turns choppy gameplay to arcadey feel smoothness. Example.

 

EDGE is coming yes, but I want to make sure my CPU is Keeping the DCS Threads on specific cores as I have other software that runs on other cores, I keep DCS on it's on 2 threads, and other software on their own, that way stuff doesnt get bogged down by each other and everything maintains the same process address.

Windows 10 Pro, Ryzen 2700X @ 4.6Ghz, 32GB DDR4-3200 GSkill (F4-3200C16D-16GTZR x2),

ASRock X470 Taichi Ultimate, XFX RX6800XT Merc 310 (RX-68XTALFD9)

3x ASUS VS248HP + Oculus HMD, Thrustmaster Warthog HOTAS + MFDs

Link to comment
Share on other sites

I wonder if there a reason why ED does not program DSCW to stay on a specific core, if that influences FPS. Unless it is up to Windows to decide which core to use.

AMD Ryzen 3600, Biostar Racing B850GT3, AMD Rx 580 8Gb, 16384 DDR4 2900, Hitachi 7K3000 2Tb, Samsung SM961 256Gb SSD, Thrustmaster T.Flight HOTAS X, Samsung S24F350 24'

Link to comment
Share on other sites

I wonder if there a reason why ED does not program DSCW to stay on a specific core, if that influences FPS. Unless it is up to Windows to decide which core to use.

 

Windows Passes workloads around,

 

But like I said, I have 8 Integer Cores, I can Run DCS on 2, and Use the other 6 for other CPU Intensive things, limit those processes to use specific cores, and they dont interfere with each other.

Windows 10 Pro, Ryzen 2700X @ 4.6Ghz, 32GB DDR4-3200 GSkill (F4-3200C16D-16GTZR x2),

ASRock X470 Taichi Ultimate, XFX RX6800XT Merc 310 (RX-68XTALFD9)

3x ASUS VS248HP + Oculus HMD, Thrustmaster Warthog HOTAS + MFDs

Link to comment
Share on other sites

SkateZilla How do you cap FPS? I also suffer from tearing, but enabling Vsync makes the game much less responsive.

 

autoexec.cfg attached.

 

Remove Affinity Line or change it to 0 for all cores:

Change 30 to Desired FPS.

 

Place in SavedGames/DCSxxxx/Config

autoexec.cfg

Windows 10 Pro, Ryzen 2700X @ 4.6Ghz, 32GB DDR4-3200 GSkill (F4-3200C16D-16GTZR x2),

ASRock X470 Taichi Ultimate, XFX RX6800XT Merc 310 (RX-68XTALFD9)

3x ASUS VS248HP + Oculus HMD, Thrustmaster Warthog HOTAS + MFDs

Link to comment
Share on other sites

Set CPU affinity still doesn't improve the drastically fps drop when multiple explosion happens.

Nowdays, 4core CPU is porpularized, so I can't figure out Why ED insists on just 2 core, why not try one core performing for particles, one core for terrain, one core for audio, one core for AI script.

Come one, ED, we need DCS runs at 4 cores!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!


Edited by Lao Fei Mao
Link to comment
Share on other sites

Set CPU affinity still doesn't improve the drastically fps drop when multiple explosion happens.

Nowdays, 4core CPU is porpularized, so I can't figure out Why ED insists on just 2 core, why not try one core performing for particles, one core for terrain, one core for audio, one core for AI script.

Come one, ED, we need DCS runs at 4 cores!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

 

By all means, re-write the source code to use 4 threads if you think it's so easy.

Windows 10 Pro, Ryzen 2700X @ 4.6Ghz, 32GB DDR4-3200 GSkill (F4-3200C16D-16GTZR x2),

ASRock X470 Taichi Ultimate, XFX RX6800XT Merc 310 (RX-68XTALFD9)

3x ASUS VS248HP + Oculus HMD, Thrustmaster Warthog HOTAS + MFDs

Link to comment
Share on other sites

Well out of curiosity I tried affinity=12 for cores 3 & 4 and I could see from Task Manager that it was indeed now running on those two cores but it was still a stuttery mess, which doesn't happen when I don't set affinity, so it's obviously not a good idea for my Phenom II X4 955.

Main rig: i5-4670k @4.4Ghz, Asus Z97-A, Scythe Kotetsu HSF, 32GB Kingston Savage 2400Mhz DDR3, 1070ti, Win 10 x64, Samsung Evo 256GB SSD (OS & Data), OCZ 480GB SSD (Games), WD 2TB and WD 3TB HDDs, 1920x1200 Dell U2412M, 1920x1080 Dell P2314T touchscreen

Link to comment
Share on other sites

Come one, ED, we need DCS runs at 4 cores!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

 

Wrong :-)

 

We need DCSW to be fully multithreaded, not limited to a fixed amount of cores, otherwise the situation would not be fundamentally different from the current one. Unfortunately, as SkateZilla stated above, it is not a trivial matter. And the question of creating multithreaded applications has been on top of the table ever since CPU's with multiple cores appeared on the market, however multithreadible applications are still not all that common.

 

Personally, I bear high hopes on EDGE in this context, however - they are a fruit of my imagination only ;-)

 

eXPeRT I have read your posts about SEAD and the way you do it is amazing, however, I must disagree - unfortunately RAM timings have little or no influence not only on DCSW, but on most games these days. If you are interested we can run a comparison test with background running monitoring software. I would be the first to be happy if overclocking RAM helped increase FPS in DSCW, but it doesn't :-( The same applies to sound. Sound in DSCW works on a separate core - graphics performance is not influenced by it since graphics are being done on another core.

 

P.S. I still don't get it how you manage to land on target both Kh-58 and Kh-25MPU without them being shot by Tor's, but that is probably a question for another topic.


Edited by Gloom Demon

AMD Ryzen 3600, Biostar Racing B850GT3, AMD Rx 580 8Gb, 16384 DDR4 2900, Hitachi 7K3000 2Tb, Samsung SM961 256Gb SSD, Thrustmaster T.Flight HOTAS X, Samsung S24F350 24'

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...