From 26c99a9794946b99beff8b20d7e9e0ed0ac9af9e Mon Sep 17 00:00:00 2001 From: RobinsAviary Date: Mon, 29 Sep 2025 12:23:49 -0400 Subject: [PATCH] made it more clear what delta time is --- examples/core/core_delta_time.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/core/core_delta_time.c b/examples/core/core_delta_time.c index 791d318c1..feb219243 100644 --- a/examples/core/core_delta_time.c +++ b/examples/core/core_delta_time.c @@ -88,7 +88,8 @@ int main(void) SetTargetFPS(currentFps); } - // Use of delta time to make the circle look like it's moving at a "consistent" speed regardless of FPS. GetFrameTime() returns this frame's delta time. + // Use of delta time to make the circle look like it's moving at a "consistent" speed regardless of FPS. + // GetFrameTime() returns the time it took to draw the last frame, in seconds (usually called delta time). // Multiply by 6.0 (an arbitrary value) in order to make the speed visually closer to the other circle (at 60 fps), for comparison. deltaX += GetFrameTime() * 6.0 * speed; // This circle can move faster or slower visually depending on the FPS.