Graphics.PrintOutAnyNodeChangesInTheScene - lordmundi/wikidoctest GitHub Wiki

Print Out Any Node Changes in the Scene

« Perform Image Distortion | EDGE User’s Guide | Improving Framerates »

This plugin is available in EDGE >= v2.4.

During debugging of graphics, sometimes it is useful to know what nodes are being modified and how often. I've often been in the case where nothing should be getting modified and I wanted to see if anything (callbacks, scripts, plugins, sims, etc.) were driving any nodes.

This is a plugin which will print out any changes to any node in the scene. It also serves as a template and documentation on how someone might go about writing a similar plugin to be notified of any node changes in the scene. For example, if you were going to write your own Comm implementation, you would need to know what nodes have been modified so you can send them across the network.

Since you likely will only use a plugin like this for debugging, it is easier to just load it up via the command console rather than editing configuration files. You can load the plugin with:

doug.load_plugin dsp_nodechanges

Similarly, you can unload it with doug.unload_plugin.

While the plugin is loaded, you can enable or disable the node change printouts with:

# To enable (1) or disable (0) node change prints:
doug.plugin dsp_nodechanges set -enabled <0/1>

# This will return if the prints are currently enabled or not:
doug.plugin dsp_nodechanges get -enabled 

For reference, the source code will be in "src.dist/plugins/examples". If you want to build it, you can copy it up a directory to "src.dist/plugins" and type "make".

⚠️ **GitHub.com Fallback** ⚠️