Download LyraStarterGame/Source/LyraGame/Performance/LyraPerformanceSettings.cpp from Alexhas2/unitysamples: direct link, hf CLI and curl.
- Browser
- Download file 1.39 kB
-
https://huggingface.co/datasets/Alexhas2/unitysamples/resolve/main/LyraStarterGame/Source/LyraGame/Performance/LyraPerformanceSettings.cpp
- Command line
-
hf download hf://datasets/Alexhas2/unitysamples/LyraStarterGame/Source/LyraGame/Performance/LyraPerformanceSettings.cpp
-
curl -L -o LyraPerformanceSettings.cpp https://huggingface.co/datasets/Alexhas2/unitysamples/resolve/main/LyraStarterGame/Source/LyraGame/Performance/LyraPerformanceSettings.cpp
1.39 kB
| // Copyright Epic Games, Inc. All Rights Reserved. | |
| ////////////////////////////////////////////////////////////////////// | |
| ULyraPlatformSpecificRenderingSettings::ULyraPlatformSpecificRenderingSettings() | |
| { | |
| MobileFrameRateLimits.Append({ 20, 30, 45, 60, 90, 120 }); | |
| } | |
| const ULyraPlatformSpecificRenderingSettings* ULyraPlatformSpecificRenderingSettings::Get() | |
| { | |
| ULyraPlatformSpecificRenderingSettings* Result = UPlatformSettingsManager::Get().GetSettingsForPlatform<ThisClass>(); | |
| check(Result); | |
| return Result; | |
| } | |
| ////////////////////////////////////////////////////////////////////// | |
| ULyraPerformanceSettings::ULyraPerformanceSettings() | |
| { | |
| PerPlatformSettings.Initialize(ULyraPlatformSpecificRenderingSettings::StaticClass()); | |
| CategoryName = TEXT("Game"); | |
| DesktopFrameRateLimits.Append({ 30, 60, 120, 144, 160, 165, 180, 200, 240, 360 }); | |
| // Default to all stats are allowed | |
| FLyraPerformanceStatGroup& StatGroup = UserFacingPerformanceStats.AddDefaulted_GetRef(); | |
| for (ELyraDisplayablePerformanceStat PerfStat : TEnumRange<ELyraDisplayablePerformanceStat>()) | |
| { | |
| StatGroup.AllowedStats.Add(PerfStat); | |
| } | |
| } | |