What should the deltaTime passed to a window's render event handler specifically be used for? #1489
-
When I'm setting up events for a window both the
While I understand that the It looks like both delta times are approximately 1/60th of a second when v-synced to 60Hz, so I don't think I should be advancing my simulation/game state in
I don't think there's a bug or anything here I'm just not quite clear on what the API is trying to communicate to me. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
The delta times for both events is the number of seconds since that particular event has been raised. Update precedes Render always. |
Beta Was this translation helpful? Give feedback.
-
Ah I see thanks. I'll just use Render's then rather than trying to combine the two. |
Beta Was this translation helpful? Give feedback.
The delta times for both events is the number of seconds since that particular event has been raised. Update precedes Render always.