Unreal Engine 自动设置图像

复制代码
void UYtGameSettingSubsystem::RunHardwareBenchmark(int32 WorkScale, float CPUMultiplier, float GPUMultiplier)
{
    UGameUserSettings* UserSettings = UGameUserSettings::GetGameUserSettings();
    if (UserSettings)
    {
       // 运行基准测试(异步操作,可能需要等待完成)
       UserSettings->RunHardwareBenchmark(WorkScale, CPUMultiplier, GPUMultiplier);
       UserSettings->ApplyHardwareBenchmarkResults();

       OnCustomSettingChanged.Broadcast();
       OverallScalabilityChanged.Broadcast();
       UserSettings->ApplySettings(true);
    }
}

RunHardwareBenchmark(10, 1.0f, 1.0f); // 自动设置质量最好的图像设置

RunHardwareBenchmark(10, 0.1f, 0.1f); // 自动设置质量较低的图像设置

相关推荐
hai3152475434 天前
九章编程法 · 猜数字游戏 (GW-BASIC 重构版) *
人工智能·microsoft·游戏引擎·游戏程序
心前阳光4 天前
Unity资源导入之自动化资源导入
unity·自动化·游戏引擎
心前阳光4 天前
Unity之2021.3.45f2c1发布安卓程序遇到的问题
android·unity·游戏引擎
纪纯4 天前
PicoVR Unity Integration SDK 3.4 常用交互API
unity·游戏引擎·vr·pico
鼎艺创新科技4 天前
三维电子沙盘中OSGB倾斜摄影数据的加载与渲染
游戏引擎·cocos2d
kyle~4 天前
Godot开源游戏引擎
开源·游戏引擎·godot
zdr尽职尽责4 天前
Unity录像功能
学习·ui·unity·游戏引擎
真鬼1234 天前
【Unity Cursor】AI规矩
unity·游戏引擎
mxwin4 天前
Unity Shader 深入理解 LinearEyeDepth 与 DepthTexture
unity·游戏引擎
开维游戏引擎5 天前
AI自动生成游戏时,deepseek和mimo对比
android·游戏·语言模型·游戏引擎·ai编程