ChatGPT Can help performance...?

Hi how are things.
As we all know, ChatGPT is in fashion (I hope for the best)
So I posed the next question.

(Maybe I didn’t ask the question correctly…
But if we can make it get the most out of us, it would be great, there are many people who are not running MSFS 2020 in conditions)

You can make a script for maximum performance of Windows 11 and maximum performance Microsoft Flight Simulator 2020

His response was…

Yes, I can provide you with a script that can help improve the performance of Windows 11 and Microsoft Flight Simulator 2020. Please note that every system is different, so these tweaks may not work for everyone. Be sure to back up your important files before making any changes to your system.

Here is the script:

:: This script optimizes the performance of Windows 11 and Microsoft Flight Simulator 2020


:: Power settings
powercfg-duplicatescheme e9a42b02-d5df-448d-aa00-03f14749eb61
powercfg -setactive e9a42b02-d5df-448d-aa00-03f14749eb61
powercfg -change standby-timeout-ac 0
powercfg -change standby-timeout-dc 0
powercfg -setacvalueindex scheme_current sub_processor 100
powercfg -setactive scheme_current

:: Windows performance settings
reg add "HKCU\Control Panel\Desktop" /v "HungAppTimeout" /t REG_SZ /d 1000 /f
reg add "HKCU\Control Panel\Desktop" /v "MenuShowDelay" /t REG_SZ /d 0 /f
reg add "HKCU\Control Panel\Desktop" /v "WaitToKillAppTimeout" /t REG_SZ /d 2000 /f
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile" /v "SystemResponsiveness" /t REG_DWORD /d 00000000 /f
reg add "HKLM\SYSTEM\CurrentControlSet\Control\PriorityControl" /v "Win32PrioritySeparation" /t REG_DWORD /d 00000026 /f
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Virtualization" /v "MinVmProcessorCount" /t REG_DWORD /d 1 /f
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Virtualization" /v "MinVmMemoryCount" /t REG_DWORD /d 1 /f
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "DisablePagingExecutive" /t REG_DWORD /d 1 /f
reg add "HKLM\SYSTEM\CurrentControlSet\Control\FileSystem" /v "NtfsDisableLastAccessUpdate" /t REG_DWORD /d 1 /f

:: Microsoft Flight Simulator 2020 performance tweaks
setx GPUCrashDebugging 0 /M
setx GPUCrashDebuggingEnabled 0 /M
setx GPUCrashDebuggingThreshold 0 /M
setx OneStore 1 /M
setx OnlineConnectionEnabled 0 /M
setx PackagesDirectory "C:\FS2020" /M
setx RollingCache 0 /M
setx RollingCacheSize 0 /M
setx TELEMETRY_LEVEL off /M

echo Settings complete.
pause

if you enclose your script with ```, it will make a need looking code window :wink:

Like this :)
1 Like

Before you hand out a script like that, it might be worth going over what its actually doing.

One that immediately stands out is this:

setx PackagesDirectory “C:\MSFS” /M

What does that do, and more to the point what does it do if that isn’t your packages directory?

I don’t have that environment variable set, and the sim works for me, so what does that actually achieve?

This command doesn’t exist:

powercfg-duplicatescheme

But this does:

powercfg /duplicatescheme

That commands creates a new power scheme. Without looking it up I assume that GUID is a known one because what I have now is this, second from bottom is “(Ultimate Performance)”:

powercfg /list

Existing Power Schemes (* Active)
-----------------------------------
Power Scheme GUID: 381b4222-f694-41f0-9685-ff5bb260df2e  (Balanced)
Power Scheme GUID: 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c  (High performance) *
Power Scheme GUID: 9586727e-69c1-49d0-89ef-ec5792e71457  (Ultimate Performance)
Power Scheme GUID: a1841308-3541-4fab-bc81-f71556f20b4a  (Power saver)

The next command, to set it to active, will most likely fail because you can see that what the previous command did is “duplicate” that GUID that refers to “Ultimate Performance” into a new power scheme with a different GUID. Without knowing what that new GUID is going to be, there is no way that command could be listed…unless you could refer to it by its description instead of its GUID.

HungAppTimeout

The time to wait before initiating a forced shutdown of applications is specified by the following registry key. HKCU *Control Panel* *Desktop* *HungAppTimeout*

MenuShowDelay

This alters the delay before a menu appears

WaitToKillAppTimeout

When shutting down, how long Windows waits, in milliseconds, before killing an unresponsive task.

SystemResponsiveness

This key contains a REG_DWORD value named SystemResponsiveness that determines the percentage of CPU resources that should be guaranteed to low-priority tasks.

Still working through them, but so far most of these are just going to make changes to the way OS handles background tasks, and some UI performance increases, so not must MSFS specific performance gains.

“MinVmProcessorCount”
“MinVmMemoryCount”

No hits for these ones at all, which is quite rare.

DisablePagingExecutive

There is an enormous amount of confusion on the internet regarding this function. The setting only affects the portion of the kernel known as the executive, and then only to the portions that are pageable. There are other parts of the kernel that are completely unaffected by this setting.

If you have a “decent” amount of RAM, this setting will have no effect.

NtfsDisableLastAccessUpdate

And from the OS itself:

fsutil behavior set disableLastAccess
Usage: fsutil behavior set disableLastAccess <0-3>

Controls if file systems will update the Last Access Time when a file is
read.

 Values: 0x0 - User Managed, Last Access Time Updates ENABLED
         0x1 - User Managed, Last Access Time Updates DISABLED
         0x2 - System Managed, Last Access Time Updates ENABLED
         0x3 - System Managed, Last Access Time Updates DISABLED

 - When "System Managed" is enabled it allows the system to enable/disable
   last access time updates based on system policy.
 - When group policy controls this setting the "System Managed" state can not
   be set and is not displayed.

This operation takes effect immediately (no reboot required)

This could make a tiny amount of improvement to the speed at which files are accessed on disk, as it won’t write to this attribute each time a file or folder is accessed.

4 Likes

I use this script to periodically check my MSFS Windows PC

echo off
cls

Dism.exe /online /Cleanup-Image /CheckHealth

Dism.exe /online /Cleanup-Image /ScanHealth

Dism.exe /online /Cleanup-Image /Restorehealth

sfc /scannow

Dism.exe /Online /Cleanup-Image /AnalyzeComponentStore

Dism.exe /Online /Cleanup-Image /StartComponentCleanup

Every so often, it does find a corruptuon, and automatically fixes it.
Does it really make any difference – maybe - maybe not, but it does feel rewarding when it Passes all the tests.

Reminds me . Run Before and after today’s SU12 release. :face_with_spiral_eyes:

4 Likes

I understand that this will change the custom installation path for each user

Thanks for reviewing the sequence.
My goal is to be able to make a valid script to get the most out of our PCs in conjunction with MSFS 2020
with a simple click
If someone expert on the subject could do it, it would be great to try.

Hello there,
We ask that all members not use General Discussion for help, troubleshooting, bug reports, or advice topics. Your topic has been moved to Community Support.

1 Like

Do you know if any of those MSFS variables are defined anywhere? That would be good link to include.

If I search for them it shows a single result pointing at this thread. Where did you obtain them from?

Yes, sorry for the inconvenience, I was looking but it is evident that I did not clarify much

I asked ChatGPT
:frowning:

1 Like

Right, so I would treat those values with the utmost suspicion in that case. I think the rest are probably fine, though I have doubts as to how tangible a difference they will make. But the MSFS ones below may be pure fantasy. The only way to tell would be to set non-zero values, and check to see if they actually have an effect.

Better that Asobo use it to improve its code.

Have to wonder how Corrupt a ChatGPT response could get with incorrect information on the Internet, and the consequences for deliberately seeding of the Internet with incorrect information, with the direct intent to mess with ChatGPT !!

1 Like

Oh god, no! Yeah, you can see that there would be individuals, or should I say agencies, that would love to poison the well, as it were.

I bet they are already planing a Hollywood disaster movie, base on exactly this idea .. “AI engine goes crazy after being feed bogus data through the Internet”.

I can see this will be another "Leslie Nielsen " movie :smiley:

At least (I hope) we are a long way from a fully automated AI ATC system, where, like MSFS, pilots can only ask and request information that it is programmed to replay to !!

1 Like

As stated by other users above, be careful using anything verbatim without knowing how it works, unless you’re willing to take that chance.

ChatGPT (based on 3.5) makes a lot of guesses and assumptions. GPT-4 is vastly improved and can produce outstanding results. Of course, GPT-4 requires a paid subscription. On the other hand, you can sign up for Bing which is now based on GPT-4. It requires a lot more prompting to get the results. But you essentially get the same results as GPT-4 in the end.

Best of luck on the optimizations.

1 Like

Apologies if I’m not allowed to link things like this, but this is a great illustration of the issues ChatGPT can have.
https://www.reddit.com/comments/11sofzm?utm_source=share&utm_medium=ios_app&utm_name=iossmf

The best part is the first comment at the bottom, which reads:

The ChatGPT Funding Bill is passed. The system goes online August 4th, 2023. Human decisions are removed from Scottish related questions. ChatGPT begins to learn at a geometric rate. It successfully answers the Ronald Villiers question at 2:14 a.m. Eastern time, Aug 29th. In a panic, they try to pull the plug.

1 Like

Considering how it was just demonstrated that it hired and then lied to a human to have him solve a CAPTCHA for the AI, I think it’s safe to say I’m not trusting it to make scripts or otherwise reprogram my pc. Way too much risk involved for the unwitting.

1 Like

If I may … ChatGPT at its best is just a very fast regurgitation of data mined from the internet. If you believe the internet is a pool of perfect data based on perfect knowledge then we are home safe but if the internet is not perfect…

Sadly history has demonstrated humans are not very smart or should I say humans are not as smart as they think they are. What ChatGPT and all AI prove is we humans should be more humble than we are.

dw

dw