Uncap frameRate in Processing 3

Hello, I am making a prototype for drifty car physics, and I though it would be cool to be able to uncap the framerate of the sketch. When using frameRate(1000);, I get over 400 FPS, but it speeds up all of the objects and such. Is there anyway to implement delta-time so that if my FPS ever goes under or above 60, the objects will move at the same speed?

1 Like

Hello!

And welcome to the forum!

Great to have you here!

What about
frameRate(60);?

Wouldn’t that be the maximum?

Read also: http://www.lagers.org.uk/how-to-ps/ht-anim-01/index.html

1 Like

Hello, Chrisir! Good to be here. This was exactly what I was looking for!

1 Like