Reliable and efficient busy-waiting?

Talk to software developers and aspiring geeks. Programming tips. Improve motion fluidity. Reduce input lag. Come Present() yourself!
User avatar
Chief Blur Buster
Site Admin
Posts: 11653
Joined: 05 Dec 2013, 15:44
Location: Toronto / Hamilton, Ontario, Canada
Contact:

Re: Reliable and efficient busy-waiting?

Post by Chief Blur Buster » 11 Jun 2022, 20:12

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.
Head of Blur Busters - BlurBusters.com | TestUFO.com | Follow @BlurBusters on Twitter

Image
Forum Rules wrote:  1. Rule #1: Be Nice. This is published forum rule #1. Even To Newbies & People You Disagree With!
  2. Please report rule violations If you see a post that violates forum rules, then report the post.
  3. ALWAYS respect indie testers here. See how indies are bootstrapping Blur Busters research!

Post Reply