Introducing artificial latency
Hello!
I am working on an experiment for which I need to introduce latency in the rendering of the headset, but I need to be able to control how much latency (somewhere between 100ms and 2 seconds). This way, if the user performs an action, it will be reflected on what he sees after this simulated latency time has passed.
Initially, my idea was to "take" the input from the headset, accumulate all the frames in some sort of queue, and after the specified latency value, pass them back to the headset. However, after doing some research online, I could not find any similar existing projects, and unfortunately I am not experienced enough to develop my own solution from scratch. Do you know a relatively straightforward way of achieving this setup? I would greatly appreciate anything ranging from an already existing similar project, to some simple pointers.
Thank you for the help!
I am working on an experiment for which I need to introduce latency in the rendering of the headset, but I need to be able to control how much latency (somewhere between 100ms and 2 seconds). This way, if the user performs an action, it will be reflected on what he sees after this simulated latency time has passed.
Initially, my idea was to "take" the input from the headset, accumulate all the frames in some sort of queue, and after the specified latency value, pass them back to the headset. However, after doing some research online, I could not find any similar existing projects, and unfortunately I am not experienced enough to develop my own solution from scratch. Do you know a relatively straightforward way of achieving this setup? I would greatly appreciate anything ranging from an already existing similar project, to some simple pointers.
Thank you for the help!
