浏览代码

disable allocator debug mode

disable fast shadow
/main
xingwei.zhu 5 年前
当前提交
35606c5d
共有 4 个文件被更改,包括 2 次插入6 次删除
  1. 3
      Runtime/editor/rasterizer.cs
  2. 2
      Runtime/ui/painting/shadow_utils.cs
  3. 2
      Runtime/ui/renderer/allocator/debug.cs
  4. 1
      Runtime/ui/renderer/cmdbufferCanvas/rendering/canvas_impl.cs

3
Runtime/editor/rasterizer.cs


if (compositorFrame != null && compositorFrame.raster(layerTree, false)) {
frame.submit();
this._fireNextFrameCallbackIfPresent();
AllocDebugger.onFrameEnd();
AllocDebugger.onFrameEnd();
return false;
}
}

2
Runtime/ui/painting/shadow_utils.cs


namespace Unity.UIWidgets.ui {
static class ShadowUtils {
public const bool kUseFastShadow = true;
public const bool kUseFastShadow = false;
const float kAmbientHeightFactor = 1.0f / 128.0f;
const float kAmbientGeomFactor = 64.0f;

2
Runtime/ui/renderer/allocator/debug.cs


}
public static class AllocDebugger {
public const bool enableDebugging = true;
public const bool enableDebugging = false;
static int allocCount = 0;

1
Runtime/ui/renderer/cmdbufferCanvas/rendering/canvas_impl.cs


using System;
using System.Collections.Generic;
using Unity.UIWidgets.foundation;
using Unity.UIWidgets.material;
using UnityEngine;
using UnityEngine.Rendering;

正在加载...
取消
保存