Timing of moving ball

Mahdi Ramadan's Avatar

Mahdi Ramadan

09 Jul, 2019 01:33 PM

Hi Chris, I hope you're doing well!

I have a task with a moving ball, but the way the ball position is calculated depends on the refresh rate of the screen. This means potentially there could be a +/- 1/60 second timing margin, which is not good enough for physiology. Can you help me with coming up with a more precise timing?


  1. Support Staff 1 Posted by Christopher Sta... on 09 Jul, 2019 01:38 PM

    Christopher Stawarz's Avatar

    Hi Mahdi,

    The position of the ball can't be updated any faster than the refresh rate of the monitor. If you want the ball to make smaller "steps" as it moves, then you need to use a monitor with a higher refresh rate (e.g. 120Hz instead of 60Hz). Be aware, however, that a higher refresh rate means a heavier load on the graphics hardware, which will lead to skipped refreshes if the GPU can't keep up.


  2. Christopher Stawarz closed this discussion on 15 Jul, 2019 01:39 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac