浏览代码

Removed debug writeline

flabbet 1 年之前
父节点
当前提交
b579d8c4a6
共有 1 个文件被更改,包括 0 次插入4 次删除
  1. 0 4
      src/PixiEditor.ChangeableDocument/Changeables/Graph/NodeGraph.cs

+ 0 - 4
src/PixiEditor.ChangeableDocument/Changeables/Graph/NodeGraph.cs

@@ -98,7 +98,6 @@ public class NodeGraph : IReadOnlyNodeGraph, IDisposable
 
     public Surface? Execute(RenderingContext context)
     {
-        Stopwatch stopwatch = new();
         if (OutputNode == null) return null;
 
         var queue = CalculateExecutionQueue(OutputNode);
@@ -107,7 +106,6 @@ public class NodeGraph : IReadOnlyNodeGraph, IDisposable
         {
             var node = queue.Dequeue();
             
-            stopwatch.Restart();
             if (node is Node typedNode)
             {
                 typedNode.ExecuteInternal(context);
@@ -116,8 +114,6 @@ public class NodeGraph : IReadOnlyNodeGraph, IDisposable
             {
                 node.Execute(context);
             }
-            
-            Console.WriteLine($"{node.GetType().Name} took {stopwatch.ElapsedMilliseconds}ms to execute");
         }
 
         return OutputNode.Input.Value;