Remove extremely inefficient test code (#42)

With this change, when moving the mouse in circles on empty ComfyUI background, CPU use and calls to drawNode are _significantly_ reduced.
This commit is contained in:
filtered
2024-08-01 00:06:33 +10:00
committed by GitHub
parent c2c4160af0
commit f88fe82445

View File

@@ -5297,7 +5297,7 @@ LGraphNode.prototype.executeAction = function(action)
this.filter = null; //allows to filter to only accept some type of nodes in a graph
this.set_canvas_dirty_on_mouse_event = true; //forces to redraw the canvas if the mouse does anything
this.set_canvas_dirty_on_mouse_event = true; //forces to redraw the canvas on mouse events (except move)
this.always_render_background = false;
this.render_shadows = true;
this.render_canvas_border = true;
@@ -6649,9 +6649,6 @@ LGraphNode.prototype.executeAction = function(action)
//console.log("pointerevents: processMouseUp "+e.pointerId+" "+e.isPrimary+" :: "+e.clientX+" "+e.clientY);
if( this.set_canvas_dirty_on_mouse_event )
this.dirty_canvas = true;
if (!this.graph)
return;