You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Interesting idea. What might it be called? The current two main sources of time are:
millis()
frameCount
Your example defines deltaTime by dividing millis by 1000, but I'm assuming that a raw value named deltaMillis() or frameMillis() would be more useful...?
benfry
changed the title
add a deltaTime to processing
add elapsed time between frames to processing
Sep 23, 2020
benfry
changed the title
add elapsed time between frames to processing
add method to get the elapsed time between frames
Sep 23, 2020
I think it would be a great addition to have a deltaTime added to processing so it is more easy to make frame independent movement out of the box.
I know you can do something like:
But it is more common in computer graphics to make use of a deltaTime.
Here is an example sketch:
Maybe this adds to much to processing, I don't know. But I thought let's open it up for discussion.
The text was updated successfully, but these errors were encountered: