Gaming Mode Powershell Script: Timer resolution, suspend processes, kill/restore explorer, stop/start services etc - Overclock.net - An Overclocking Community

Forum Jump: 

Gaming Mode Powershell Script: Timer resolution, suspend processes, kill/restore explorer, stop/start services etc

 
Thread Tools
post #1 of 7 (permalink) Old 07-07-2020, 08:50 PM - Thread Starter
New to Overclock.net
 
Timecard's Avatar
 
Join Date: Dec 2015
Posts: 502
Rep: 32 (Unique: 20)
Gaming Mode Powershell Script: Timer resolution, suspend processes, kill/restore explorer, stop/start services etc

Basic example of using powershell to quickly modify Windows running state before and after playing a game e.g. Suspend processes, stop services, turn off windows defender realtime detection, close explorer, and adjust timer resolution and then restore the regular operating state when done. See file contents for instructions.

Page:
https://github.com/djdallmann/Gaming...master/Scripts

Files:
https://github.com/djdallmann/Gaming...s/GameMode.ps1
https://github.com/djdallmann/Gaming...ts/svclist.xml
https://github.com/djdallmann/Gaming...s/proclist.xml
Attached Thumbnails
Click image for larger version

Name:	screenshot.png
Views:	10
Size:	27.5 KB
ID:	359314  


Last edited by Timecard; 07-07-2020 at 08:54 PM.
Timecard is offline  
Sponsored Links
Advertisement
 
post #2 of 7 (permalink) Old 07-07-2020, 09:26 PM
Overclocker
 
JackCY's Avatar
 
Join Date: Jun 2014
Posts: 11,135
Rep: 364 (Unique: 261)
Timer is set by applications, especially video players and games. Or you can set it with one of 3rd party tools automatically for programs that do not do so.

And the measured impact of these tweaks on performance was?
JackCY is offline  
post #3 of 7 (permalink) Old 07-07-2020, 10:13 PM - Thread Starter
New to Overclock.net
 
Timecard's Avatar
 
Join Date: Dec 2015
Posts: 502
Rep: 32 (Unique: 20)
What fun is it to use all these Timer tools when you can type of a few lines into Powershell to do the same thing. There is no measured impact, it's a tool and example.
Timecard is offline  
Sponsored Links
Advertisement
 
post #4 of 7 (permalink) Old 07-07-2020, 10:58 PM - Thread Starter
New to Overclock.net
 
Timecard's Avatar
 
Join Date: Dec 2015
Posts: 502
Rep: 32 (Unique: 20)
If anyone does mess around with this, if you suspend steamwebhelper and decide to kill explorer then UI doesn't work but you can still launch games from powershell command line using a command like this

start steam://rungameid/10
Timecard is offline  
post #5 of 7 (permalink) Old 07-12-2020, 06:36 PM - Thread Starter
New to Overclock.net
 
Timecard's Avatar
 
Join Date: Dec 2015
Posts: 502
Rep: 32 (Unique: 20)
GameMode Update
=============
- Added better handling for imported lists, shouldn't generally fail if the lists aren't present.
- You can now suspend/resume services like Task Scheduler or other services you can't typically stop without fully Disabling and restarting
- Added slight optimization regarding suspending Task Scheduler specifically
- Added function (GM-TrimWorkingSetAll) that trims all processes Working Set Memory/Memory In-Use (may or may not be useful for testing purposes)
Attached Images
 
Timecard is offline  
post #6 of 7 (permalink) Old 07-21-2020, 12:30 AM
New to Overclock.net
 
Join Date: Aug 2016
Posts: 99
Rep: 2 (Unique: 2)
Hm, I don't have steamwebhelper process, maybe because of using "-no-browser" launch option.

Why disable NV Display Container?
Th3Awak3n1ng is offline  
post #7 of 7 (permalink) Old 07-21-2020, 06:10 AM - Thread Starter
New to Overclock.net
 
Timecard's Avatar
 
Join Date: Dec 2015
Posts: 502
Rep: 32 (Unique: 20)
Quote: Originally Posted by Th3Awak3n1ng View Post
Hm, I don't have steamwebhelper process, maybe because of using "-no-browser" launch option.
Why disable NV Display Container?
These are example configurations not ideal, once you create your configs you could technically share them with others.
Timecard is offline  
Reply

Quick Reply
Message:
Options

Register Now

In order to be able to post messages on the Overclock.net - An Overclocking Community forums, you must first register.
Please enter your desired user name, your email address and other required details in the form below.
User Name:
If you do not want to register, fill this field only and the name will be used as user name for your post.
Password
Please enter a password for your user account. Note that passwords are case-sensitive.
Password:
Confirm Password:
Email Address
Please enter a valid email address for yourself.
Email Address:

Log-in



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Show Printable Version Show Printable Version
Email this Page Email this Page


Forum Jump: 

Posting Rules  
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off