浏览代码

remove debug code

fix bug: scene builder build twice when compositeFrame
/main
xingwei.zhu 5 年前
当前提交
b12f5f04
共有 3 个文件被更改,包括 2 次插入4 次删除
  1. 3
      Runtime/rendering/view.cs
  2. 2
      Runtime/ui/utils/renderer/allocUtils/debug.cs
  3. 1
      Runtime/ui/utils/renderer/allocUtils/uipath_cache_manager.cs

3
Runtime/rendering/view.cs


public void compositeFrame() {
var builder = new SceneBuilder();
this.layer.buildScene(builder);
using (var scene = builder.build()) {
using (var scene = this.layer.buildScene(builder)) {
Window.instance.render(scene);
}

2
Runtime/ui/utils/renderer/allocUtils/debug.cs


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

1
Runtime/ui/utils/renderer/allocUtils/uipath_cache_manager.cs


using System.Collections.Generic;
using UnityEngine;
namespace Unity.UIWidgets.ui {

正在加载...
取消
保存