Skip to content

Scripts that attempts to debloat, have low input lag, low latency, better hitreg and improved performance.

Notifications You must be signed in to change notification settings

luastoned/gaming_os_tweaker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

Gaming OS Tweaker

Attempts to debloat, keep low input lag, low latency, better hitreg and improved performance.

I am not responsible for any damage the scripts could cause.

Make sure you create a System Restore Point before running any scripts.

Know that if you execute all the scripts, it will make your OS for games only, that is the focus. Dont expect to be usable for your everyday everything.

Do not blindly apply everything without even understanding what you are doing, I recommend checking each script before doing so. Some have comments about certain choices in them.

It will NOT leave your OS secure, because scripts will remove and/or disable all of Windows Defender ecosystem features in favor of performance. You need your good sense and just play games safely, like the ones installed by clients, e.g., steam, battle.net, etc.. Although I left some security options in scripts/optional_helpers/install_apps.cmd in the security section.

If you have something additional to contribute, please open an issue or create a PR.


How to

If you need to download a fresh OS ISO directly from Microsoft, follow the guide at WINDOWS_DOWNLOAD_GUIDE

  • Create a system restore point.
  • Run scripts from scripts/debloat folder first, and scripts/tweaks after.
  • I recommend to at least also run the install_apps.cmd from scripts/optional_helpers/ folder, before debloat scripts. | There are other useful scripts in there.
  • (Win11 only) Recommended to look at the scripts/optional_helpers/remove_windows_defender.cmd before all other scripts.
  • For every .cmd script you run, run as administrator. | It's not enforced, but the scripts will NOT work, if you dont run as admin.
  • Reboot and Done!

I would say to install everything that you need and configure (from docs and else), before creating the next restore point, because restore point could break, at least it does in Win11, after you run debloat scripts. At least you will have that point to restore. Though I suppose services script from debloat could be why, leave it for last.

To uncomment a line, you remove the # or :: from before the command. Might be useful in certain cases.

Not all scripts are dependent on some tool, but some are, you should consider downloading the whole gaming_os_tweaker folder to use any script. Easiest way is to click on the button <> Code and Download ZIP.

After running the scripts, follow some guides from the docs folder.


You can verify the repository, by downloading with Download ZIP and verifying at VirusTotal.

Here is an Example, there are red flags, though if you look at the Relations tab, you will see that they are from scripts and from the nvidiaProfileInspector.


Result

From a fresh Windows 10 22H2 install and completely updated, and applying the scripts from this repo, it was reduced to 32 processes, with Nvidia Driver (debloated) in the background and Task Manager.

No additional tools were used.

It's a very clean OS, while being decently functional. Task Scheduler and UAC (minimum) are kept enabled, I enabled the installation of simplewall which is better than Windows Firewall if you execute the install_apps.cmd script. Windows Update are disabled due to not being able to complete installation.

In my 5800X3D, the average DPC Latency are at 0.7. Maybe with a high-end Intel that would be even less. Though latest nvidia drivers are having high dpc issues, and they have recognized and are working on it, when they fix, maybe even with Ryzen will be less in the average. With the CPU idle state disabled, it was able to go to 0.5, but the average fps in Overwatch 2 for example were less than when enabled.

Good reference: https://docs.google.com/document/d/1ILugrwtHfmisYzI1MdCOhSzBPuLJPi5D7xYJgQ4sxDM/edit#heading=h.mjyvqzxoctd0

To give some perspective on the FPS, before I was on Win11 only with some tweaks and debloat changes. I had to use the nvidia driver optimized for Overwatch 2 to be able to keep consistent 420fps at 1440p with pretty much no dips, but were not possible with other driver versions. Now in Win10 with the scripts from this repo, it never goes below 500fps, stays on 600fps when there is no fights and 540fps~ in mid fights most of the time, and I am using the latest driver from nvidia, not the optimized for Overwatch 2.

(Update on Windows 11 22H2) I have now finished most fixes/tweaks for this OS, result was good, pretty much same avg fps on games, DPC avg went from 0.76 to 0.81 though, a small increase in comparison to Win10. But this is mostly paying attention in games that I played, not based on benchmarks. If someone wants to do benchmarks and create a PR, they are welcome, I dont have time for it. https://www.capframex.com/

It's not a bad DPC avg for Ryzen CPU, while not having Processor Idle disabled. Should be even better on Intel.

processes


Why did I built this compilation of scripts?

Mostly, because I wanted a clean OS, with all the optimizations and I didnt trust the modified gaming OS out there. And It didnt feel that the other scripts out there were complete or clean enough.

I dont take credit for the scripts, since I got parts of it from many different places. I didnt kept all the urls and I didnt wanted to give credit to some only, so end up not giving to anyone.

People keep making big youtube videos or articles for very small chunks or single tweak(s), repeating the same thing, good ones are the minority. Some may even charge for this kind of tweaking. Here you may get all or almost all of it.

If you have any suggestions, additions or corrections, feel free to create an issue and/or PR.


Why I don't trust gaming modified windows OS?

Simply because as much as people tried to make it transparent by even putting it on github, some don't even do it, they just create a repo saying it's open-source.

Main point is, there is no way to know how the image (ISO) are being built, it's not transparent there, whoever is responsible could use the opportunity to hide a rootkit in this part of the process, and no one would know, while keeping the argument that it was all open source. So, that's why.

Rootkit means one could implement any sort of malicious code, like a spyware or any other type, as root (has access to everything, much more than is visible to users), and by doing that, in a modified OS preinstall, all security measures that would have been in place, could be bypassed, therefore allowing the malicious code to be executed and also be kept undetectable.

Also I dont know about the legallity of distributing modified Windows OS.

It doesnt mean they arent trustworthy, I don't know them, it just means it's not transparent enough as it is.

https://www.reddit.com/r/Windows10/comments/w54ign/am_i_out_of_my_mind_or_just_paranoid_ntlite_msmg/

https://www.youtube.com/watch?v=3UVKfliA_Rc

How one would keep the process transparent? A way would be, let's say you are on github and you have all your code there, create a github actions CI script that does all the building based on what is in the repository, and the CI would also be responsible for releasing into Releases page of the repository. There would be no external building by hand, all done through automation / CI. All the CI building process would be public and visible to anyone.


Anti-Cheats

  • Defense Matrix (Overwatch 2) - Working
  • Easy Anti-Cheat (Fortnite, Apex Legends) - Working
  • Ricochet (Call of Duty) - Working
  • BattleEye (Escape from Tarkov, Destiny 2) - Working
  • Punkbuster (BF4) - Working
  • Vanguard (Valorant) - Working (But, only if you apply the anticheat_fix.cmd from scripts/optional_helpers/ folder, to enable the exploit mitigations.)
  • FaceIT (CSGO) - Not Tested (Might be similar to Vanguard in terms of requirements. I dont play the game to know.)

I didnt have the opportunity to test every game, but most without Anti-Cheats should be working, except maybe VR/Mixed Reality. If anyone find any issue, feel free to create an issue and/or PR.


Other

About

Scripts that attempts to debloat, have low input lag, low latency, better hitreg and improved performance.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Batchfile 85.6%
  • PowerShell 14.4%