Creating-lag of DynamicVar

NodeCanvas Forums Support Creating-lag of DynamicVar

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #9950

    Hello~

    When NC creating a DynamicVar on running it always be a lag in iOS device and Mac Unity. It seems 0.1s delay.
    So I have to avoid using DynamicVars and create many normal vars. So these blackboard will seems too long.
    I have no idea about why it happen and how to fix. I think, if the creating lag cant be removed, maybe have some way to move these creating in the scene loading time.
    Any idea?

    #9955
    Gavalakis
    Keymaster

    Hello,

    If I am to guess, the lag spike happens only for the first Dynamic Variable added?
    I’ve submited a new version to the asset store. Apart from the rest, in this version I’ve made an optimization for when creating dynamic variables. Also, the ‘Script Control’ tasks for the iOS is fixed. Thanks for the patience.

    Please check the new version when it goes live and let me know if you still encounter any problems with the dynamic variables lag, or anything else.
    If the problem still exists, I will make them created in scene loading time like you suggest.

    Thanks and best regards! 🙂

    Join us on Discord: https://discord.gg/97q2Rjh

    #9954

    Hi, I checked asset store yet but there still is the last month version…

    #9953
    Gavalakis
    Keymaster

    Yes, it’s not online yet. If you want I can send it to you through email.
    Let me know of an email to send it to.
    If you don’t want to write your email in public here, send me an email at info@nodecanvas.com and I will reply with the new version.

    Join us on Discord: https://discord.gg/97q2Rjh

    #9952

    Great!

    Please send it to simabenteng@qq.com
    Thanks

    #9951
    Gavalakis
    Keymaster

    Hello,

    Sorry for the late reply. The new version is now live already, so you can download it from the Asset Store now 🙂
    Thanks!

    Join us on Discord: https://discord.gg/97q2Rjh

    #11507
    fringecc
    Participant

    Use dynamicvar will cause lag while creating. This still happened in latest version. The reason is maybe there is log while creating dynamic var. It prints with full stack. Is there official way to turn off it?

    #11509
    Gavalakis
    Keymaster

    Hello,

    I found the problem in last versions of NodeCanvas. To fix the allocations with Dynamic Variables, please open up BBParameter.cs script and change the property ‘varRef’ at line #130 to this:

    Then just a few lines later, please also change property ‘bb’ to this:

    After this change there will be a minimal allocations caused only by the logs.

    Thanks for spotting this out.

    Join us on Discord: https://discord.gg/97q2Rjh

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.