Reply To: Switch Playmode Lag

Forums 💬 FlowCanvas ⚙️ Support Switch Playmode Lag Reply To: Switch Playmode Lag

#21983
Gavalakis
Keymaster

    Hello,

    The delay is most than probably due to an “editor only” feature which allows the hierarchy icons to show the active state of each GraphOwner (white/yellow colors + play/pause icons).
    The delay in this case is happening due to the hierarchy panel repainting whenever the active state of a GraphOwner is changing.

    This “feature” can be disabled from within the “Prefs” dropdown in the node editor. The option is named “Highlight Active In Hierarchy”.
    [attachment file=”HighlightActive.png”]

    If the version you are using does not have this option, then you can manually disable this by changing a few lines in the source code in case you can’t upgrade. Simply open GraphOwnerInspector.cs and completely remove or comment out the following line of code at line #18:
    GraphOwner.onOwnerBehaviourStateChange += delegate { EditorApplication.RepaintHierarchyWindow(); };

    Let me know if that works for you and if that was indeed the cause of the delay (which has been reported before to be the case btw).
    Thanks.