Jump to content
Sign in to follow this  
Emerson67

Anti CTD vaccine

Recommended Posts

This post is for all desesperados,

This is a nice tweak (actually not new) that should prevent a pretty common MSFS crash to desktop cause, by adjusting some Windows 10 GPU scheduler timeouts.

It does not prevent some CTDs caused by MSFS internal bugs, because this tweak acts on Windows 10 itself.

Procedure:

1. Open a plain text editor, like Microsoft Notepad (Windows accessories->Notepad) or Notepad++.

2. Copy and paste the following text into the editor:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\GraphicsDrivers]
"TdrDelay"=dword:0000000a
"TdrDdiDelay"=dword:00000019

3. Save as "vaccine.reg" file, and close the editor.

4. Double click on "vaccine.reg" file, and then choose "Yes".

5. Restart the computer.

6. Run MSFS.

7. Give feedback.

 

What this tweak does? It increases (5 times) the values of two Windows 10 GPU scheduler timeout parameters.

You may tweak yourself those values as you wish. Here is the technical info.

 

  • Like 6
  • Upvote 1

Share this post


Link to post
Share on other sites

Interesting - thanks! 

I am investigating this.  I am hoping it might help the 0x05 error, which is difficult to trace.

It might also explain why people with very powerful GPU's (3080 / 3090 etc.) don't get the error as much.

I just need to look up the default values in case I want to put it back.


Call me Bob or Rob, I don't mind, but I prefer Rob.

I like to trick airline passengers into thinking I have my own swimming pool in my back yard by painting a large blue rectangle on my patio.

Intel 14900K in a Z790 motherboard with water cooling, RTX 4080, 32 GB 6000 CL30 DDR5 RAM, W11 and MSFS on Samsung 980 Pro NVME SSD's.  Core Isolation Off, Game Mode Off.

Share this post


Link to post
Share on other sites
9 hours ago, Emerson67 said:

This post is for all desesperados,

This is a nice tweak (actually not new) that should prevent a pretty common MSFS crash to desktop cause, by adjusting some Windows 10 GPU scheduler timeouts.

It does not prevent some CTDs caused by MSFS internal bugs, because this tweak acts on Windows 10 itself.

Procedure:

1. Open a plain text editor, like Microsoft Notepad (Windows accessories->Notepad) or Notepad++.

2. Copy and paste the following text into the editor:


Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\GraphicsDrivers]
"TdrDelay"=dword:0000000a
"TdrDdiDelay"=dword:00000019

3. Save as "vaccine.reg" file, and close the editor.

4. Double click on "vaccine.reg" file, and then choose "Yes".

5. Restart the computer.

6. Run MSFS.

7. Give feedback.

 

What this tweak does? It increases (5 times) the values of two Windows 10 GPU scheduler timeout parameters.

You may tweak yourself those values as you wish. Here is the technical info.

 

I've had this mod running since last Thursday and have now completed four, two hour+ flights in the A320Neo with the FBW mod without a CTD. 

I can't say 100% that this has fixed the CTDs as I also reduced the AI% down to 40% and deleted the rolling cache at the same time. And four flights is not conclusive evidence. I could of course, reverse the above and restest and see if the CTDs return, but that's not going to happen !

However, so far, so good...

Share this post


Link to post
Share on other sites

Before I had plenty of CDT on almost every flight and this tdrDelay and TdrDdidelay tweak solved everything! I put the 2 to 60 ...

  • Like 1

Share this post


Link to post
Share on other sites
8 minutes ago, Axis3600 said:

Before I had plenty of CDT on almost every flight and this tdrDelay and TdrDdidelay tweak solved everything! I put the 2 to 60 ...

It was your posting in another thread I that put me onto it - many thanks! 

Share this post


Link to post
Share on other sites

Using this fix since months - initially to avoid crashes in P3DV5.1 (Nvidia RTX 2080). And I never had a CTD in MSFS either. Highly recommend! 

Edited by LarsA
  • Like 1

Share this post


Link to post
Share on other sites
10 hours ago, Emerson67 said:

This post is for all desesperados,

This is a nice tweak (actually not new) that should prevent a pretty common MSFS crash to desktop cause, by adjusting some Windows 10 GPU scheduler timeouts.

It does not prevent some CTDs caused by MSFS internal bugs, because this tweak acts on Windows 10 itself.

Procedure:

1. Open a plain text editor, like Microsoft Notepad (Windows accessories->Notepad) or Notepad++.

2. Copy and paste the following text into the editor:


Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\GraphicsDrivers]
"TdrDelay"=dword:0000000a
"TdrDdiDelay"=dword:00000019

3. Save as "vaccine.reg" file, and close the editor.

4. Double click on "vaccine.reg" file, and then choose "Yes".

5. Restart the computer.

6. Run MSFS.

7. Give feedback.

 

What this tweak does? It increases (5 times) the values of two Windows 10 GPU scheduler timeout parameters.

You may tweak yourself those values as you wish. Here is the technical info.

 

So by just clicking on this file after you create it, this entry is then added to the registry in the proper place, without having to edit the registry? 


 

BOBSK8             MSFS 2020 ,    ,PMDG 737-600-800 FSLTL , TrackIR ,  Avliasoft EFB2  ,  ATC  by PF3  ,

A Pilots LIfe V2 ,  CLX PC , Auto FPS, ACTIVE Sky FS,  PMDG DC6 , A2A Comanche, Fenix A320, Milviz C 310

 

Share this post


Link to post
Share on other sites

Thanks for this - I'm hoping this will mean I can start using a AMD driver newer than last Octobers.

Share this post


Link to post
Share on other sites
33 minutes ago, Bobsk8 said:

So by just clicking on this file after you create it, this entry is then added to the registry in the proper place, without having to edit the registry? 

yes, as long as you name the file with .reg on the end, it will automatically enter it into the Windows Registry when you double click on it - there will be a confirmation warning of what it is about to do. 

Then, for it to take effect, restart the computer (not shut down and start up - as on some PC's it will fast load a previous state and not change anything).

I have now done this and I look forward to testing it.  I have a few hours planned in MSFS this evening. :biggrin:

Edited by bobcat999

Call me Bob or Rob, I don't mind, but I prefer Rob.

I like to trick airline passengers into thinking I have my own swimming pool in my back yard by painting a large blue rectangle on my patio.

Intel 14900K in a Z790 motherboard with water cooling, RTX 4080, 32 GB 6000 CL30 DDR5 RAM, W11 and MSFS on Samsung 980 Pro NVME SSD's.  Core Isolation Off, Game Mode Off.

Share this post


Link to post
Share on other sites
11 hours ago, Emerson67 said:

7. Give feedback.

Thanks.  Will apply this.  However. With each registry patch like this should there also be an "antidote.reg" file to put Windows back to the previous state?

  • Like 2
  • Upvote 2

Frank Patton
MasterCase Pro H500M; MSI Z490 WiFi MOB; i7 10700k 3.8 Ghz; Gigabyte RTX 3080 12gb OC; H100i Pro liquid cooler; 32GB DDR4 3600;  Gold RMX850X PSU;
ASUS 
VG289 4K 27" Monitor; Honeycomb Alpha & Bravo, Crosswind 3's w/dampener.  
Former USAF meteorologist & ground weather school instructor. AOPA Member #07379126
                       
"I will never put my name on a product that does not have in it the best that is in me." - John Deere

Share this post


Link to post
Share on other sites
4 minutes ago, fppilot said:

Thanks.  Will apply this.  However. With each registry patch like this should there also be an "antidote.reg" file to put Windows back to the previous state?

Just checking my registry the entries don't already exists so if I remember my registry hacking correctly in that case you'd want a file like

 

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\GraphicsDrivers]

"TdrDelay"=-

TdrDdiDelay"=-

 

  • Like 1

Share this post


Link to post
Share on other sites

@fppilot Would like to know how to reverse it?


Martin Parr

Retired professional yacht skipper for vessels up to 46m

 

System: Omen 30L GT13-0054na Gaming PC; Windows 10 Home  64-bit OS; Intel Core i9-10900K CPU @ 3.7GHz; RAM 32GB; Samsung S34J55x Monitor 3440x1440 @75 Hz Resolution; NVIDIA GeForce RTX 2080 Ti. MSFS P/D; TM Pendular Rudder Pedals, TM Warthog Hortas Throttle/Joystick Combo.

Share this post


Link to post
Share on other sites
15 minutes ago, Matchstick said:

Just checking my registry the entries don't already exists so if I remember my registry hacking correctly in that case you'd want a file like

 


Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\GraphicsDrivers]

"TdrDelay"=-

TdrDdiDelay"=-

 

Doing a search of the Win10 registry tells me neither of these keys exist at this location (nor anywhere else.)

In other words you're ADDING these keys, not changing them.

YMMV


-J

13700KF | RTX 4090 @ 4K | 32GB DDR5 | 2 x 1TB SSDs | 1TB M.2 NVMe

Share this post


Link to post
Share on other sites
Just now, Twenty6 said:

Doing a search of the Win10 registry tells me neither of these keys exist at this location (nor anywhere else.)

In other words you're ADDING these keys, not changing them.

YMMV

That's my script for deleting them if you've added them with the original script.

Share this post


Link to post
Share on other sites
5 minutes ago, Twenty6 said:

Doing a search of the Win10 registry tells me neither of these keys exist at this location (nor anywhere else.)

In other words you're ADDING these keys, not changing them.

YMMV

I found the same thing. So to reverse it, I guess you would just have to remove the entry in the registry. ( Just a guess not sure) Or would that cause a problem if you just deleted the entry?

Edited by Bobsk8

 

BOBSK8             MSFS 2020 ,    ,PMDG 737-600-800 FSLTL , TrackIR ,  Avliasoft EFB2  ,  ATC  by PF3  ,

A Pilots LIfe V2 ,  CLX PC , Auto FPS, ACTIVE Sky FS,  PMDG DC6 , A2A Comanche, Fenix A320, Milviz C 310

 

Share this post


Link to post
Share on other sites

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.
×
×
  • Create New...