Editor Bug: FlowCanvas Console Log can lag game.

Forums General Discussion Editor Bug: FlowCanvas Console Log can lag game.

This topic contains 3 replies, has 2 voices, and was last updated by  Gavalakis 2 weeks, 3 days ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2385

    guyboots_thunderbro
    Participant

    FlowCanvas has its own special “Console” where you can see errors linked to nodes and etc. If you have this console open, it can cause lag while playing around with your game in the editor.

    My scenario:

    Spawn 300 objects, all with FlowScripts and all listening for a “TestEvent” event that sends a single GameObject.

    Press button on UI that does “Send Global Event: TestEvent” with a random GameObject. The game will lag/freeze briefly as the console is populated with 300 event messages.

    I’m guessing the UI re-renders whenever an event comes in rather than on a per-frame basis? /shrug.

     

     

    #2391

    Gavalakis
    Keymaster

    Hey,

    Actually, the console is updated only a maximum of once per frame, no matter how many logs are received. A flag “willRepaint” is set in code for that if you want to take a look 🙂

    With that said, I also gone ahead and tested your use case exactly, and with the custom GraphConsole open it was actually faster than with the GraphConsole closed (in which case the logs are send to the Unity console instead which seems slower).

    What version of FlowCanvas and Unity are you using?
    Are you sur that it is the GraphConsole that causes the freeze? Maybe there are many logs in the Unity console instead (which is usually slow with many logs)?

    Let me know.
    Thanks.

    #2393

    guyboots_thunderbro
    Participant

    What version of FlowCanvas and Unity are you using?

    Unity 2018.4.4f1, FlowCanvas 2.94, macOS ??? (whatever the latest version is).

    Are you sur that it is the GraphConsole that causes the freeze? Maybe there are many logs in the Unity console instead (which is usually slow with many logs)?

    Yep! The Unity console is empty in the test scene. The problem goes away if the graph console isn’t visible. Scrolling the populated graph console is also slow, if that’s any help. If I turn off info display log line display in the graph console (white dialogue-looking button) to make the log empty then I don’t seem to have any problems.

    No big deal if it can’t be reproduced or fixed!

    #2395

    Gavalakis
    Keymaster

    Hey,

    I honestly can’t reproduce, but I will try on a Mac just to be sure.
    Thanks for letting me know.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.