Add display control and daemon mode for CPU optimization#498
Draft
Add display control and daemon mode for CPU optimization#498
Conversation
Co-authored-by: hackolite <826027+hackolite@users.noreply.github.com>
Co-authored-by: hackolite <826027+hackolite@users.noreply.github.com>
Co-authored-by: hackolite <826027+hackolite@users.noreply.github.com>
…ntation Co-authored-by: hackolite <826027+hackolite@users.noreply.github.com>
…tants Co-authored-by: hackolite <826027+hackolite@users.noreply.github.com>
Co-authored-by: hackolite <826027+hackolite@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add JSON export functionality for workflow nodes
Add display control and daemon mode for CPU optimization
Feb 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds per-node display control and headless daemon mode to reduce CPU usage in production deployments. All nodes can now selectively skip display rendering while continuing data processing.
Changes
Display Control
set_display_mode(False)disables all display updates (daemon mode)dpg_set_value()texture updatesshould_update_display(node_id)checks both global and node-level settingsExample usage in node update:
SaveWorkflow Node
Daemon Mode
--daemon --workflow <path>Implementation
basenode.py: Global display control +DEFAULT_DISPLAY_ENABLEDconstantmain.py: Daemon mode argument handling, conditional viewport displaynode_save_workflow.py: New System node using_callback_file_export()node_blur.py,node_object_detection.py(pattern for ~36 remaining nodes)Performance Impact
Skips per-node:
cv2.resize(),np.flip(),dpg_set_value()when display disabled. Estimated 20-60% CPU reduction for typical workflows in daemon mode.💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.