I'm trying to build a high speed 3d printer with a light engine (recognized as monitor by my PC) that has a refresh rate of 30 Hz according to Windows. However, when I'm printing over thousands of layers there a few instances where the pictures are displayed for 66.66 ms not 33.33 ms, because the frequency don't seem to perfectly be in sync. Is there any way to extract the actual clock signals of a monitor such that I can coordinate my program according to the clock of the monitor. Maybe it's unstable.
It would be perfect if there where some kind of library for C++ to detect the single clock signal from the monitor. There must be, since the system and other applications extract the frequency on their own right?