1
Graphics / Re: Framerate inconsistency
« on: October 04, 2016, 02:19:45 am »
To give you a little more detail, I work in cognitive neuroscience with a technique called frequency tagging. We oscillate the luminance of our stimuli at specific frequencies which induces a brain response to those stimuli at the same frequency. Any variability in timing adds noise the flicker frequency, which in turn adds even more noise to the neural response.
I could use a fixed time step to update the luminance at longer intervals, but ultimately the results will be better with a more clearly defined sinusoidal signal. I use a 144Hz monitor, so ideally I would alter the luminance of a stimulus the full 144 times within a second, with the same magnitude of change at each step.
I’ve been using V-sync without setframeratelimit(), so I’m on top of that at least.
My current workaround is to update the luminance according to the elapsed duration since the last iteration of the gameloop. This means that the change in luminance can be variable, but the flicker should at least approximate a sinusoid at the correct frequency. In order for this workaround to work, I would need the clocks to be accurate at least to the millisecond level. Do you know what sort of precision I could expect on a windows 7 system?
It’s been suggested to me that for really precise timing I should be using linux or even MS-DOS (:/). Any thoughts about whether the change might be worth it?
I could use a fixed time step to update the luminance at longer intervals, but ultimately the results will be better with a more clearly defined sinusoidal signal. I use a 144Hz monitor, so ideally I would alter the luminance of a stimulus the full 144 times within a second, with the same magnitude of change at each step.
I’ve been using V-sync without setframeratelimit(), so I’m on top of that at least.
My current workaround is to update the luminance according to the elapsed duration since the last iteration of the gameloop. This means that the change in luminance can be variable, but the flicker should at least approximate a sinusoid at the correct frequency. In order for this workaround to work, I would need the clocks to be accurate at least to the millisecond level. Do you know what sort of precision I could expect on a windows 7 system?
It’s been suggested to me that for really precise timing I should be using linux or even MS-DOS (:/). Any thoughts about whether the change might be worth it?