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); // 自动设置质量较低的图像设置

相关推荐
我的offer在哪里15 小时前
示例 Unity 项目结构(Playable Game Template)
unity·游戏引擎
淡海水18 小时前
【节点】[Branch节点]原理解析与实际应用
unity·游戏引擎·shadergraph·图形·branch
Zik----21 小时前
简单的Unity漫游场景搭建
unity·游戏引擎
_风华ts1 天前
创建并使用AimOffset
ue5·动画·虚幻·虚幻引擎·aimoffset
小李也疯狂2 天前
Unity 中的立方体贴图(Cubemaps)
unity·游戏引擎·贴图·cubemap
呆呆敲代码的小Y2 天前
【Unity工具篇】| 超实用工具LuBan,快速上手使用
游戏·unity·游戏引擎·unity插件·luban·免费游戏·游戏配置表
EQ-雪梨蛋花汤2 天前
【Unity优化】Unity多场景加载优化与资源释放完整指南:解决Additive加载卡顿、预热、卸载与内存释放问题
unity·游戏引擎
我的offer在哪里2 天前
用 Unity 从 0 做一个「可以玩的」游戏,需要哪些步骤和流程
游戏·unity·游戏引擎
泡泡茶壶ᐇ2 天前
Unity游戏开发入门指南:从零开始理解游戏引擎核心概念
unity·游戏引擎
Var_al2 天前
抖小Unity WebGL分包命令行工具实践指南
unity·游戏引擎·webgl