mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-07 16:40:05 +00:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user