HISE Logo Forum
    • Categories
    • Register
    • Login

    UI and timer structure

    Scheduled Pinned Locked Moved General Questions
    5 Posts 3 Posters 380 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ustkU
      ustk
      last edited by ustk

      In order to achieve multiple UI animations, which of these solutions is preferable:

      • Use only one timer panel for all animations
      • Or one timer panel per animation?

      I currently have a mix (timer with multiple actions and some actions with their own timer...)
      I would say one timer is better because there will be only one call per cycle but not sure it's a good reason...

      Also, I tend to stop the timer when it is called and to reactivate it when everything has been performed. I know that the computation takes way less than the 30ms of the timers, but is it a good way to work with timers, or is it safe to let it run while computing inside anyway?

      Can't help pressing F5 in the forum...

      LindonL 1 Reply Last reply Reply Quote 0
      • LindonL
        Lindon @ustk
        last edited by

        @ustk I recall @Christoph-Hart saying you would be OK with up to around 16 timers running at the same time...

        HISE Development for hire.
        www.channelrobot.com

        ustkU 1 Reply Last reply Reply Quote 1
        • ustkU
          ustk @Lindon
          last edited by

          @Lindon Good to know that ;)
          Although having multiple timers doesn't mean it's better or worse than using only one if I'm looking for the best performances...
          I'll try to run some tests but not sure the console benchmark can help here...

          Can't help pressing F5 in the forum...

          d.healeyD 1 Reply Last reply Reply Quote 0
          • d.healeyD
            d.healey @ustk
            last edited by

            @ustk said in UI and timer structure:

            if I'm looking for the best performances...

            Don't waste CPU cycles on animations ;)

            Libre Wave - Freedom respecting instruments and effects
            My Patreon - HISE tutorials
            YouTube Channel - Public HISE tutorials

            ustkU 1 Reply Last reply Reply Quote 1
            • ustkU
              ustk @d.healey
              last edited by ustk

              @d-healey Well, best performances with best visuals and best audio 😀

              Can't help pressing F5 in the forum...

              1 Reply Last reply Reply Quote 0
              • First post
                Last post

              46

              Online

              1.7k

              Users

              11.7k

              Topics

              101.9k

              Posts