Skip to content

Commit

Permalink
Created readme
Browse files Browse the repository at this point in the history
  • Loading branch information
flaeri committed May 22, 2021
1 parent 9beabec commit 55ea1ac
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# mcGpuPref
Powershell Scipts To Auto Add Minecraft Java Executables To Gpu Preferences

## How to
1. Close all of your Minecraft windows
2. Download all the files
3. double blick / run the "runMe.cmd"

And you're done. Feel free to check that you have them added in the Graphics settings.
You can copy this link and paste into wherever (run, explorer, chrome):

*ms-settings:display-advancedgraphics*

## What it do

Runme.cmd (batchfile) is just to trigger the powershell script without you having to set a powershell execution policy.


The actual powershell script (ps1) will check for known paths of javaw.exe from different launchers, and add them to your "graphics settings" and select "high performance".
This is done by adding a couple of items to your current user registry hive (HKCU:\SOFTWARE\Microsoft\DirectX\UserGpuPreferences).


It will create a folder called "backup" next to the script, and produce a backup .reg file before it does any modifications. Shouldnt be nescescary, but why not.

## What launchers/MC software is supported?

* Stock / standard / default Launcher (C:\Program Files (x86)\Minecraft Launcher\runtime\jre-x64\bin\javaw.exe=
* Lunar (<userprofile>\.lunarclient\jre\zulu8.50.0.53-ca-fx-jre8.0.275-win_x64\bin\javaw.exe)
* Bad Lion (C:\ProgramData\BadlionClient\jre1.8.0_202\bin\javaw.exe)
* TLauncher (C:\Program Files\Java\jre1.8.0_281\bin\javaw.exe)
* Forge (C:\Program Files (x86)\Minecraft Launcher\runtime\jre-legacy\windows-x64\jre-legacy\bin\javaw.exe)

If you can think of any more common ones, feel free to submit name, path and proof. :blush:

0 comments on commit 55ea1ac

Please sign in to comment.