zoukankan      html  css  js  c++  java
  • 优化之ui字体图集大小

    ui图集大小

    FSlateRHIResourceManager::FSlateRHIResourceManager()
        : bExpiredResourcesNeedCleanup(false)
        , BadResourceTexture(nullptr)
        , DeleteResourcesCommand(
            TEXT("Slate.DeleteResources"),
            *LOCTEXT("CommandText_DeleteResources", "Flushes and deletes all resources created by Slate's RHI Resource Manager.").ToString(),
            FConsoleCommandDelegate::CreateRaw(this, &FSlateRHIResourceManager::DeleteBrushResourcesCommand))
    {
        FCoreDelegates::OnPreExit.AddRaw(this, &FSlateRHIResourceManager::OnAppExit);
        FCoreUObjectDelegates::GetPostGarbageCollect().AddRaw(this, &FSlateRHIResourceManager::OnPostGarbageCollect);
    
        MaxAltasedTextureSize = FIntPoint(256, 256);
        if (GIsEditor)
        {
            AtlasSize = 2048;
        }
        else
        {
            AtlasSize = 1024;
            if (GConfig)
            {
                int32 RequestedSize = 1024;
                GConfig->GetInt(TEXT("SlateRenderer"), TEXT("TextureAtlasSize"), RequestedSize, GEngineIni);
                AtlasSize = FMath::Clamp<uint32>(RequestedSize, 0, 2048);
    
                int32 MaxAtlasedTextureWidth = 256;
                int32 MaxAtlasedTextureHeight = 256;
                GConfig->GetInt(TEXT("SlateRenderer"), TEXT("MaxAtlasedTextureWidth"), MaxAtlasedTextureWidth, GEngineIni);
                GConfig->GetInt(TEXT("SlateRenderer"), TEXT("MaxAtlasedTextureHeight"), MaxAtlasedTextureHeight, GEngineIni);
  • 相关阅读:
    tomcat页面跳转问题
    linux shell脚本攻略总结
    nginx中配置tomcat
    centos中文输入法支持
    esxi创建centos系统
    linux日常总结
    你不知道的编码软件排行榜
    Beyond Compare切换比较会话过滤模式的方法
    用Beyond Compare找代码bug的方法
    文件对比工具比较表格时怎么显示行号
  • 原文地址:https://www.cnblogs.com/Shaojunping/p/11594234.html
Copyright © 2011-2022 走看看