forked from DrakiaXYZ/SPT-Dynamic-External-Resolution
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDynamicExternalResolutionConfig.cs
More file actions
50 lines (44 loc) · 3.43 KB
/
Copy pathDynamicExternalResolutionConfig.cs
File metadata and controls
50 lines (44 loc) · 3.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
using BepInEx.Configuration;
using EFT.Settings.Graphics;
#pragma warning disable 0169, 0414, 0649
namespace DynamicExternalResolution.Configs
{
internal class DynamicExternalResolutionConfig
{
public class DLSSModeQuality
{
public static EDLSSMode Quality; // 0.9
public static EDLSSMode Balanced; // 0.75
public static EDLSSMode Performance; // 0.5
public static EDLSSMode UltraPerformance; // 0.35
}
public class FSR2ModeQuality
{
public static EFSR2Mode Quality; // 0.66
public static EFSR2Mode Balanced; // 0.58
public static EFSR2Mode Performance; // 0.5
public static EFSR2Mode UltraPerformance; // 0.33
}
public class FSR3ModeQuality
{
public static EFSR3Mode Quality; // 0.66
public static EFSR3Mode Balanced; // 0.58
public static EFSR3Mode Performance; // 0.5
public static EFSR3Mode UltraPerformance; // 0.33
}
public static ConfigEntry<bool> EnableMod { get; set; }
public static ConfigEntry<float> SuperSampling { get; set; }
public static ConfigEntry<EDLSSMode> DLSSMode { get; set; }
public static ConfigEntry<EFSR2Mode> FSR2Mode { get; set; }
public static ConfigEntry<EFSR3Mode> FSR3Mode { get; set; }
public static void Init(ConfigFile Config)
{
string settings = "Settings";
EnableMod = Config.Bind(settings, "Enable Mod", true, new ConfigDescription("Enable/Disable reducing the resolution of the external rendering, when aiming through the telescopic sight.", null, new ConfigurationManagerAttributes { IsAdvanced = true, Order = 5 }));
SuperSampling = Config.Bind(settings, "Sampling Downgrade", 0.5f, new ConfigDescription("(Only works when FSR 1.0/FSR 2.2/DLSS is Disable) \nPercentage of how much the external rendering will go down, when aiming through the telescopic sight. Default value 50%.", new AcceptableValueRange<float>(0.01f, 0.99f), new ConfigurationManagerAttributes { ShowRangeAsPercent = true, Order = 4 }));
DLSSMode = Config.Bind(settings, "DLSS Scaling Mode", EDLSSMode.UltraPerformance, new ConfigDescription("(Only works when DLSS is Enable) \nImage scaling mode when using DLSS, which will change external rendering to this level when you aiming through the telescopic scope. Default is Ultra Performance Mode (65% resolution downgrade).", null, new ConfigurationManagerAttributes { Order = 3 }));
FSR2Mode = Config.Bind(settings, "FSR2 Scaling Mode", EFSR2Mode.UltraPerformance, new ConfigDescription("(Only works when FSR 2.2 is Enable) \nImage scaling mode when using FSR2, which will change external rendering to this level when you aiming through the telescopic scope. Default is Ultra Performance Mode (67% resolution downgrade).", null, new ConfigurationManagerAttributes { Order = 2 }));
FSR3Mode = Config.Bind(settings, "FSR3 Scaling Mode", EFSR3Mode.UltraPerformance, new ConfigDescription("(Only works when FSR 3.0 is Enable) \nImage scaling mode when using FSR3, which will change external rendering to this level when you aiming through the telescopic scope. Default is Ultra Performance Mode (67% resolution downgrade).", null, new ConfigurationManagerAttributes { Order = 1 }));
}
}
}