Creating-lag of DynamicVar

Forums πŸ’¬ NodeCanvas βš™οΈ Support Creating-lag of DynamicVar

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #19421
    lijingsama
    Participant

      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?

      #19428
      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! πŸ™‚

        #19427
        lijingsama
        Participant

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

          #19426
          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.

            #19425
            lijingsama
            Participant

              Great!

              Please send it to simabenteng@qq.com
              Thanks

              #19424
              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!

                #19423
                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?

                  #19422
                  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.

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