WHAT IS THIS THING?
nGlide environment variables is just another way to control nGlide settings (next to nGlide configurator). With them you can override not only default wrapper settings but also settings stored by nGlide configurator in windows registry.
DO I NEED IT?
If you need to use individual nGlide settings per game or you like to keep nGlide settings in a portable format, then environment variables are definitely for you. By using them you can not only have separate nGlide configurations per game. You can also have as many nGlide configuration sets per game as you want.
HOW TO USE IT?
The easiest way is to create a batch file (text file with extension renamed to *.bat or *.cmd) and use "set" command.
For example, if you want to change nGlide gamma setting to 0.9, create a batch file with:
Code: Select all
set NGLIDE_GAMMA=4
start game.exe
Settings not defined in a batch file will be taken from nGlide configurator. If they won't be defined even there, nGlide will use its default settings. The settings chain looks like this:
Environment variables (highest priority) -> nGlide configurator (medium priority) -> default settings (lowest priority)
This means if you want to be fully portable, you need to define all 7 nGlide settings in batch file.
For example, to run a game with:
Backend=Vulkan,1920x1080@60Hz,Aspect=correction,Vsync=enabled,Gamma=1.0,Splash=enabled you will need this:
Code: Select all
set NGLIDE_BACKEND=2
set NGLIDE_RESOLUTION=21
set NGLIDE_ASPECT=1
set NGLIDE_REFRESH=1
set NGLIDE_VSYNC=1
set NGLIDE_GAMMA=5
set NGLIDE_SPLASH=1
start game.exe
Code: Select all
set NGLIDE_BACKEND=0
set NGLIDE_RESOLUTION=0
set NGLIDE_ASPECT=0
set NGLIDE_REFRESH=0
set NGLIDE_VSYNC=1
set NGLIDE_GAMMA=5
set NGLIDE_SPLASH=1
start game.exe
start nfs2sea.exe.
VARIABLE VALUES LEGEND
Values are identical to settings stored in windows registry by nGlide configurator.
Code: Select all
NGLIDE_BACKEND:
0 - "Automatic (Default)"
1 - "DirectX"
2 - "Vulkan"
Code: Select all
NGLIDE_RESOLUTION:
0 - "By app (Default)"
1 - "By desktop"
2 - "640 x 480"
3 - "800 x 600"
4 - "1024 x 600"
5 - "1024 x 768"
6 - "1152 x 864"
7 - "1280 x 720"
8 - "1280 x 768"
9 - "1280 x 800"
10 - "1280 x 960"
11 - "1280 x 1024"
12 - "1360 x 768"
13 - "1366 x 768"
14 - "1400 x 1050"
15 - "1440 x 900"
16 - "1440 x 1080"
17 - "1536 x 864"
18 - "1600 x 900"
19 - "1600 x 1200"
20 - "1680 x 1050"
21 - "1920 x 1080"
22 - "1920 x 1200"
23 - "1920 x 1440"
24 - "2048 x 1536"
25 - "2560 x 1440"
26 - "2560 x 1600"
27 - "3840 x 2160"
28 - "7680 x 4320"
Code: Select all
NGLIDE_ASPECT:
0 - "Entire screen (Default)"
1 - "Aspect correction"
2 - "Integer rendering"
3 - "Integer scaling"
Code: Select all
NGLIDE_REFRESH:
0 - "By app (Default)"
1 - "By desktop"
2 - "60 Hz"
3 - "70 Hz"
4 - "72 Hz"
5 - "75 Hz"
6 - "85 Hz"
7 - "90 Hz"
8 - "100 Hz"
9 - "120 Hz"
10 - "144 Hz"
Code: Select all
NGLIDE_VSYNC:
0 - "Off"
1 - "On (Default)"
Code: Select all
NGLIDE_GAMMA:
0 - "0.5"
1 - "0.6"
2 - "0.7"
3 - "0.8"
4 - "0.9"
5 - "1.0 (Default)"
6 - "1.1"
7 - "1.2"
8 - "1.3"
9 - "1.4"
10 - "1.5"
Code: Select all
NGLIDE_SPLASH:
0 - "Off"
1 - "On (Default)"
Code: Select all
#!/bin/bash
export NGLIDE_BACKEND=0
export NGLIDE_RESOLUTION=0
export NGLIDE_ASPECT=0
export NGLIDE_REFRESH=0
export NGLIDE_VSYNC=1
export NGLIDE_GAMMA=5
export NGLIDE_SPLASH=1
wine game.exe