HISE Logo Forum
    • Categories
    • Register
    • Login

    Keeping Track of Time for OpenGL - Engine Uptime and iTime

    Scheduled Pinned Locked Moved Scripting
    1 Posts 1 Posters 43 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.
    • A
      aaronventure
      last edited by

      I'd like to be able to keep track of time the same way iTime in GLSL is - time in seconds since the compilation/plugin load.

      Engine.getUptime() is not a solution here because it stops counting when the DAW engine is suspended (like when an audio device is disconnected or the app is in the background with no tracks armed and transport not playing).

      So what's my next best option? Get system time on init and use that when interacting with the GLSL shader time-wise?

      Is there a method to get time since app startup?

      The source says it's Time::getMillisecondCounterHiRes(), but I see no such method in the API, i.e. it's just Engine.getUptime.

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

      16

      Online

      1.7k

      Users

      11.8k

      Topics

      103.1k

      Posts