三国卡牌客户端基础资源仓库
hch
15 小时以前 62f2cc2f08a5e10ccd0d27dae01f01df47ab9bac
0312 放宽加载表时长警告
1个文件已修改
4 ■■■■ 已修改文件
Assets/Editor/ConfigGen/ConfigGenerater.cs 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Editor/ConfigGen/ConfigGenerater.cs
@@ -217,7 +217,7 @@
        sb.AppendLine("            LoadConfigByType(configType);");
        sb.AppendLine("            sw.Stop();");
        sb.AppendLine("#if UNITY_EDITOR");
        sb.AppendLine("            if (sw.ElapsedMilliseconds >= 100)");
        sb.AppendLine("            if (sw.ElapsedMilliseconds >= 500)");
        sb.AppendLine("            {");
        sb.AppendLine("                Debug.LogError($\"加载配置 {configType.Name} 耗时较长: {sw.ElapsedMilliseconds} ms\");");
        sb.AppendLine("            }");
@@ -410,7 +410,7 @@
        sb.AppendLine();
        sb.AppendLine("            sw.Stop();");
        sb.AppendLine();
        sb.AppendLine("            if (sw.ElapsedMilliseconds >= 100)");
        sb.AppendLine("            if (sw.ElapsedMilliseconds >= 500)");
        sb.AppendLine("            {");
        sb.AppendLine("                Debug.LogError($\"[自检] 加载配置 {configType.Name} 耗时较长: {sw.ElapsedMilliseconds} ms\");");
        sb.AppendLine("            }");