» Clock Sources
This site relies heavily on Javascript. You should enable it if you want the full experience. Learn more.

Clock Sources

French

Recent computers have different clocks running on their hardware. This would not be a problem if the clocks would run in the same speed. Well, theoretically they do, but in reality they typically have a drift of a few milliseconds per hour from each other.

If you work with animations, video, audio and external time sources it is important to know which clock is used by which node. The three main clock sources are:

CPU clock

Aka high resolution performance counter. This clock is used by vvvv's MainLoop (VVVV) (see its help patch) and all timebased/animation nodes of vvvv, like LFO, MonoFlop, Timing, Stopwatch...

System clock

The date/time of your PC. Used by the nodes in the category Astronomy and under some circumstances by FileStream (DShow9).

Soundcard clock

Driving the digital to analog converter of the audio output. Used by all Audio related nodes, also FileStream if the video contains audio.


The good news is, that most animation nodes use the high resolution CPU counter. The bad news is, that the FileStream node usually uses the Soundcard time source. It might also depend on whether your video has an audio track or not. However, the FileStream node has a Reference Clock configuration pin (via Inspektor) to choose a clock source. For more information see Reference Clocks.

In order to find out about the drift between the 3 clocks on your PC run:

 \girlpower\Animation\Compare Clock Sources\_root_CompareClockSources.v4p

CPU Clock vs. Speed Step technology

The CPU clock is only a relative timekeeper, it does not represent any meaningful value like time of day or date. vvvv captures the value at startup, divides it by the CPU frequency and calculates the time values for the animation nodes with this reference value.
It is important to know that speed step technology which alters the CPU frequency for power saving can lead to false readings of the CPU clock, because the CPU frequency is captured only sometimes, like on startup or creation of a node. So if the frequency changes the divisor will be wrong and a false time interval will be calculated. So make sure you turn off any speed step technology (set your system to a high performance power plan) or restart vvvv after the CPU frequency has changed. You can keep an eye on your CPU with tools like CPU-Z.

anonymous user login

Shoutbox

~4d ago

joreg: vvvvTv S02E01 is out: Buttons & Sliders with Dear ImGui: https://www.youtube.com/live/PuuTilbqd9w

~10d ago

joreg: vvvvTv S02E00 is out: Sensors & Servos with Arduino: https://visualprogramming.net/blog/2024/vvvvtv-is-back-with-season-2/

~10d ago

~11d ago

fleg: hey there! What's the best tool for remote work? Teamviewer feels terrible. Thanks!

~24d ago

joreg: Last call: 6-session vvvv beginner course starting November 4: https://thenodeinstitute.org/courses/ws24-5-vvvv-beginners-part-i/

~1mth ago

joreg: Missed the last meetup? You can rewatch it here: https://www.youtube.com/live/MdvTa58uxB0?si=Fwi-9hHoCmo794Ag

~1mth ago

theurbankind: When is the next big event, like node festival ?

~1mth ago

~1mth ago

joreg: Join us for the next vvvv meetup on Oktober 17th: https://visualprogramming.net/blog/2024/25.-vvvv-worldwide-meetup/

~2mth ago

joreg: 6 session beginner course part 2 "Deep Dive" starts January 13th: https://thenodeinstitute.org/courses/ws24-5-vvvv-beginners-part-ii/