set frame rate

I would like to measure the speed of small moving and jumping objects. The problem is that frame rate is not constant. The set_framerate command is no longer available. Is there a way to have a constant frame rate (i.e 10 FPS)?

Hi, you need to use the pyb.mills() command to track the elapsed milliseconds and then wait until a certain number are elapsed:

To save power in a spin loop use: