I have already made some video games in C (small personal project). And the problem I encountered every time is the same, how to manage the cycles in a game.
For example, I coded a snake in SFML. I handled the cycles with the frame rates: 5 frame rates while normal, and with a power up, I changed it to 10. That works. But it's hideous. And it won't work correctly with a bad computer. In the same idea, I also made a game where I decided that a cycle was equal to a turn of a loop (with an infinite loop). Same problem, a high performance computer will go faster than a low one.
So, can someone advice me on how to manage correctly and properly cycles in a video game.
Thanks in advance !