Hello everyone,
I’m building a permanent installation where we start projections from different mediaplayers via UDP commands. Every 20 minutes, a new show starts and the mediaplayers are started again. I use a clock CHOP and a python script to schedule all the commands. The python script runs every time the ‘minutes’ channel of the clock CHOP changes. The python scripts checks if the ‘minutes’ channel is 0, 20 or 40 with an if statement. If this returns true, a python function that starts all the mediaplayers (and other devices) is started.
I print the execution of every command to a log file and notice that the there’s often a delay of a few milliseconds between 2 python commands. It’s also not always the same delay, which causes lip-syncing issues (if the delay would always be 20ms, it would still be sync. However, mostly it is 20-30 ms, sometimes even more like 120ms).
This raised a few questions to me:
- May the framerate of the project influence this delay?
- Is there a delay between lines of code in python?
- Is there a better way to schedule commands in TouchDesigner than using the clock CHOP?