Re:Swift and Cute 2D Game Framework: Setting Up a Project wi...
by all2 on Friday June 06, 2025 @10:27AM
(#44201295)
If you divorce the game's time-step from your math it isn't too much of an issue. You just need to keep track of the time-delta so you have it for your calculations.
Re:Swift and Cute 2D Game Framework: Setting Up a Project wi...
by kookamamie on Friday June 06, 2025 @12:59PM
(#44202835)
Gaffer has summarized most of this quite well years ago. E.g. https://gafferongames.com/post/fix_your_timestep/
Re:Swift and Cute 2D Game Framework: Setting Up a Project wi...
by pusewicz on Friday June 06, 2025 @09:38AM
(#44200794)
You can use fixed time step. Choice is yours.
Re:Swift and Cute 2D Game Framework: Setting Up a Project wi...
by OnionBlender on Friday June 06, 2025 @12:53PM
(#44202773)
What's funny is that searching for "cute framework fixed timestep" in Google points to this Hacker News thread as the first result. What I would have wanted to find is this page:
https://randygaul.github.io/cute_framework/#/topics/game_loo...
Re:Swift and Cute 2D Game Framework: Setting Up a Project wi...
by kookamamie on Friday June 06, 2025 @01:16PM
(#44202993)
Very sorry about that :D
Re:Swift and Cute 2D Game Framework: Setting Up a Project wi...
by pusewicz on Friday June 06, 2025 @01:15PM
(#44202979)
LOL
Re:Swift and Cute 2D Game Framework: Setting Up a Project wi...
by 90s_dev on Friday June 06, 2025 @10:45AM
(#44201460)
Care to elaborate?
Re:Swift and Cute 2D Game Framework: Setting Up a Project wi...
by kookamamie on Friday June 06, 2025 @12:57PM
(#44202820)
Assuming the timestep refers to the parts of code dealing with game logic updates, such as physics or motion, variable-sized steps tend to cause nasty issues. Collision detection is an example, where variability is undesired.
Re:Swift and Cute 2D Game Framework: Setting Up a Project wi...
by pusewicz on Friday June 06, 2025 @01:14PM
(#44202965)
https://randygaul.github.io/cute_framework/#/topics/game_loo...
You can request a fixed timestep, and your own loop callback will be called at fixed intervals, which allows you to completely ignore delta time.
It really isn't.