How make game independent of frame rate

how i can make game independent of frame rate?

example:
frame rate is 360 = all functions are perform 360 times per second
frame rate is 240 = all functions are perform 240 times per second
frame rate is 120 = all functions are perform 120 times per second

but how can I make it work like this:

the game must be completed 360 times per second

frame rate is 360 = game performs 360 times per second
frame rate is 240 = game performs 360 times per second
frame rate is 120 = game performs 360 times per second

and so on

maybe see here frameRate, frameCount and millis | Quark's musings

1 Like