I currently have an application that I am writing in C # (using .NET) that requires me to start a timer as soon as the user sees the image on the screen until he answers with a keystroke.
Now I understand that this is practically very difficult, given the delay time for the monitor input and response time, the time that the keyboard takes to physically send a message, the OS to process it, etc.
But I try to reduce it to most of the permanent error (the results of the answer will be used to compare one user with another, so a constant error is not really a problem). However, the annoying obstacle is the variable caused by the refresh rate of the monitor, since I gather when my onPaint message is called and executed with it, does this not mean that the image is actually processed and sent from the graphics buffer?
Unfortunately, time limits and other obligations realistically limit me to continuing this task in C # for windows.
So I was wondering if I would process the entire drawing in OpenGL or DirectX, or even better for me, if you could just use OpenGL or DirectX to create an event when the screen refreshes?
Another assumption given to me earlier was about V-Sync, if I turn it off, will the image be sent as soon as it is drawn? as opposed to sending images at a given speed synchronized with the refresh rate of the monitor?
source
share