Possible Solution For DX12 Stutter In Individual Games->EG:Metro Exodus/BF5

Discussion in 'Game Tweaks and Modifications' started by gerardfraser, Feb 17, 2019.

  1. gerardfraser

    gerardfraser Guest

    Messages:
    3,343
    Likes Received:
    764
    GPU:
    R9 290 Crossfire
    1.Search and Open Exploit Protection
    2.Click On the Program Settings Tab
    3.Click On The + Add Programs To Customise
    4.Click On Choose Exact File Path
    5.Find Game Which You would Like To Try To Remove DX12 Stutter Click Open
    6.Programs Settings For Game Opened ,Scroll Down To Control Flow Guard(Never Use For Global Setting)
    7.Put Check Mark In Override System Settings And Turn From On To Off And Apply
    8.Restart May Be Needed

    [​IMG]dx12 by gerard fraser, on Flickr
     
    Last edited: Jun 9, 2020
  2. Whiplashwang

    Whiplashwang Ancient Guru

    Messages:
    2,460
    Likes Received:
    397
    GPU:
    RTX 4090 PNY
    Just tried it and I think it really helped. I'm always dubious of tweaks like these because I think it's mostly placebo effect, but this may have worked! Can others confirm improvement?

    Edit: I even tried this in The Evil Within 2, which always had terrible framedrops and stuttering, and now my framerate is consistent. What the hell?
     
  3. TaskMaster

    TaskMaster Ancient Guru

    Messages:
    1,710
    Likes Received:
    691
    GPU:
    ZOTAC Trinity 4080
    only DX12 or also DX11?
     
  4. Passus

    Passus Ancient Guru

    Messages:
    2,585
    Likes Received:
    1,040
    GPU:
    MSI 4070 Gaming X
    Whoa confirmed zero stutter fifa 19 dx12

    will try a few more later
     

  5. AsiJu

    AsiJu Ancient Guru

    Messages:
    8,941
    Likes Received:
    3,467
    GPU:
    KFA2 4070Ti EXG.v2
    Lols, so that's what was holding DX12 back all along!

    Makes sense though and probably works for other APIs too.
    The less the OS interferes with the .exe the better performance.

    Gonna try this out too in a few games.
     
  6. mbk1969

    mbk1969 Ancient Guru

    Messages:
    15,612
    Likes Received:
    13,618
    GPU:
    GF RTX 4070
    If I remember it right the exe-file should be built with the support of the control flow guard and then it takes place. Also it was specially mentioned that this control flaw guard extra code should not affect the performance on modern CPUs.

    https://docs.microsoft.com/en-us/windows/desktop/secbp/control-flow-guard

    Btw, I have that dumpbin.exe on my rigs so I can upload it to medifire and you can test yourself which exe-file is built with control flow guard .

    More details for true geeks
    https://documents.trendmicro.com/assets/wp/exploring-control-flow-guard-in-windows10.pdf
     
    Last edited: Feb 19, 2019
    BlindBison, akbaar and AsiJu like this.
  7. AsiJu

    AsiJu Ancient Guru

    Messages:
    8,941
    Likes Received:
    3,467
    GPU:
    KFA2 4070Ti EXG.v2
    So do you mean an exe must support control flow guard for it to be applied?

    What if the implementation is flawed, could that explain this (why disabling it reduces stutters)?
     
  8. mbk1969

    mbk1969 Ancient Guru

    Messages:
    15,612
    Likes Received:
    13,618
    GPU:
    GF RTX 4070
    Exactly.

    I am not a programmer in MS kernel team. But to think logically, if exe- and dll-files were built without the CFG support the OS kernel simply has no info for CFG mitigation when it loads the exe-file.

    We can assume that all system exe- and dll-files were built with CFG support (including DirectX ones). As for games we can test individually with the help of dumpbin.exe.
     
    AsiJu likes this.
  9. TaskMaster

    TaskMaster Ancient Guru

    Messages:
    1,710
    Likes Received:
    691
    GPU:
    ZOTAC Trinity 4080
    Well tried bfv with dx12 and this tweak and it was totally smooth. Is there zero way to get reshade to work with dx12 though? I cannot stand the blurry mess without it. DX11 is smooth for me, but I just feel like dx12 runs better. I could be going crazy.
     
  10. Memorian

    Memorian Ancient Guru

    Messages:
    4,021
    Likes Received:
    890
    GPU:
    RTX 4090
    BF V DX12 is butter-smooth even without this tweak. Try a different DX12 game.
     

  11. fantaskarsef

    fantaskarsef Ancient Guru

    Messages:
    15,760
    Likes Received:
    9,656
    GPU:
    4090@H2O
    A noob question for you fellow gurus: I don't have "exploit protection". Which win10 version does this relate to? 1809?
     
  12. gerardfraser

    gerardfraser Guest

    Messages:
    3,343
    Likes Received:
    764
    GPU:
    R9 290 Crossfire
    mbk1969 link Control Flow Guard
    This feature is available in Microsoft Visual Studio 2015, and runs on "CFG-Aware" versions of Windows—the x86 and x64 releases for Desktop and Server of Windows 10 and Windows 8.1 Update (KB3000850).


    Exploit protection is supported on Windows 10, version 1709 and later and Windows Server 2016, version 1803

    Hope that helps
     
    fantaskarsef likes this.
  13. fantaskarsef

    fantaskarsef Ancient Guru

    Messages:
    15,760
    Likes Received:
    9,656
    GPU:
    4090@H2O
    Yes that helps, thanks, I'm still running 1607 (LTSB 2016)
     
  14. ultraex2003

    ultraex2003 Master Guru

    Messages:
    271
    Likes Received:
    93
    GPU:
    Amd 2x290 Cfx
    i try BF1 and the stutter was here nothing change to my setup and i return to dx 11 is smooth to me !!;)
     
  15. AsiJu

    AsiJu Ancient Guru

    Messages:
    8,941
    Likes Received:
    3,467
    GPU:
    KFA2 4070Ti EXG.v2
    Please upload dumpbin.exe, curious to see what it reports with game exes that show a benefit from this tweak (or not).
     

  16. mbk1969

    mbk1969 Ancient Guru

    Messages:
    15,612
    Likes Received:
    13,618
    GPU:
    GF RTX 4070
    I will when I get to work.
     
  17. mbk1969

    mbk1969 Ancient Guru

    Messages:
    15,612
    Likes Received:
    13,618
    GPU:
    GF RTX 4070
    @AsiJu
    http://www.mediafire.com/file/ay5hdp7hllvutjp/dumpbin.zip/file

    I packed both x64 and x86 versions from Visual Studio 2017.

    Command line to use (from the folder with the dumpbin.exe itself):

    dumpbin.exe /headers <exe_or_dll_file_path> | more

    - this should show first screen like this
    [​IMG]

    and you can press <Ctrl>+<C> to break further output.
     
    akbaar, jura11, ShadowDuke and 5 others like this.
  18. theoneofgod

    theoneofgod Ancient Guru

    Messages:
    4,677
    Likes Received:
    287
    GPU:
    RX 580 8GB
    Thanks for that. I had a quick look at a bunch of games I have and none have this entry so I guess disabling it in Exploit protection is pointless?
     
  19. mbk1969

    mbk1969 Ancient Guru

    Messages:
    15,612
    Likes Received:
    13,618
    GPU:
    GF RTX 4070
    It should be pointless for the binaries built without CFG support. But any user can try it himself. Who knows - may be MS team updated the mitigation to work even for the binaries without CFG support.
     
  20. ShadowDuke

    ShadowDuke Ancient Guru

    Messages:
    4,919
    Likes Received:
    1,022
    GPU:
    XFX Radeon RX 6600
    BfV.exe has no CFG in "optional headers" so it should be pointless? Like mbk1969 stated? I have also checked a bunch of games now and none of it has it, hmm..
     
    Last edited: Mar 6, 2019

Share This Page