Page 2 of 2

Re: Reliable and efficient busy-waiting?

Posted: 11 Jun 2022, 20:12
by Chief Blur Buster
ad8e wrote:
10 Jun 2022, 23:57
See main() at the bottom of vsync.cpp for usage.

I think converting it to C# would be boring and pointless, but if you want to, it's much easier now, since the code shrunk to 1/3. A better option is probably to compile it in C++, as a library, and export vf::new_value like this: https://docs.microsoft.com/en-us/cpp/bu ... xecutables. Then you can call it from C#.
Fantastic code!

Thank you for submitting a greatly improved VSYNC blank finder, which is useful for many applications:

(A) Beam racing apps like Tearline Jedi
(B) Sub-refresh-latency rendering pipelines (e.g. VR)
(C) Shutter glasses emitter apps (transmitting a VSYNC to an Arduino controlling an IR diode)
(D) Other software-based genlock
etc.