improve the sgusersettings implementation by introducing custom enum item and more accuracy

This commit is contained in:
Mamadou Babaei
2024-06-06 15:51:51 +02:00
parent ee951e74bc
commit 6c7b7e9304
6 changed files with 138 additions and 140 deletions
@@ -37,11 +37,6 @@
FSGGameUserSettingSettings::FSGGameUserSettingSettings()
: FSGGameUserSettingSettings(
0.5f,
0.71f,
0.87f,
1.0f,
1.0f,
10.0f,
1.0f,
1.0f)
@@ -49,20 +44,10 @@ FSGGameUserSettingSettings::FSGGameUserSettingSettings()
}
FSGGameUserSettingSettings::FSGGameUserSettingSettings(
const float InResolutionScaleNormalizedLow,
const float InResolutionScaleNormalizedMedium,
const float InResolutionScaleNormalizedHigh,
const float InResolutionScaleNormalizedEpic,
const float InResolutionScaleNormalizedCinematic,
const float InHardwareBenchmarkWorkScale,
const float InHardwareBenchmarkCPUMultiplier,
const float InHardwareBenchmarkGPUMultiplier)
: ResolutionScaleNormalizedLow(InResolutionScaleNormalizedLow),
ResolutionScaleNormalizedMedium(InResolutionScaleNormalizedMedium),
ResolutionScaleNormalizedHigh(InResolutionScaleNormalizedHigh),
ResolutionScaleNormalizedEpic(InResolutionScaleNormalizedEpic),
ResolutionScaleNormalizedCinematic(InResolutionScaleNormalizedCinematic),
HardwareBenchmarkWorkScale(InHardwareBenchmarkWorkScale),
: HardwareBenchmarkWorkScale(InHardwareBenchmarkWorkScale),
HardwareBenchmarkCPUMultiplier(InHardwareBenchmarkCPUMultiplier),
HardwareBenchmarkGPUMultiplier(InHardwareBenchmarkGPUMultiplier)
{