Going through the 2nd camera's video I could measure how many frames elapsed between the original flash and its display on the monitor. I then used a 2nd camera (high speed) to film both the flash and its display on the monitor. I needed to measure the end-to-end delay of a system: digital camera ->image acquisition and processing hardware->windows application->display. I've had to perform a similar evaluation of a computer's lag in a different context but I believe the procedure I used can be adapted for your case. Also keep in mind that humans have a tough time distinguishing between two events which are less than ~30ms apart so that has an effect on the precision of your results. It depends way too much on the user's input, whether he has any sense of rhythm, his hand-eye coordination, if he's had coffee, etc. I believe your test procedure isn't likely to provide even a rough estimate of the lag you're trying to measure. System("pause") //Another redundancy to prevent accidental quitting Usleep(10000000) //Prevents someone from mindlessly pressing space to exit System("pause") //Pauses the program so it doesn't exit in case not running it from a command line Printf("Your input latency: %ims\n",x) //Gives the input latency to the user X=x*(1000/CLOCKS_PER_SEC) //I think clock is always set to milliseconds but in case it's not This adds them up so we can take a mean value. X=x (inpu-outp) //Difference between input and output=latency. Inputfunc() //The input functions, waits for keypresses Outputfunc() //The output function, changes the screen's color #pragma omp parallel sections //Parallel sections, these run in parallel on a dual core or dual threading machine A multicore or multithreading processor is required.\n") Be as precise as possible with what you see on screen. Let it flash a few times before pressing anything, so you can get used to the rhythm. Printf("Fdisk's Input Lag Tester\n\nPress any key when the screen flashes WHITE. System("color 0F") //Make the screen black again Outp=clock() //Marks the time when screen became white System("color F0") //Changes screen to white This function causes the screen to change color I //Moves the program along so it doesn't blink for eternity While(i=0
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |