Framerate dependent lap timer


I want to create a racing game where the player has to beat a certain lap time to advance to the next stage but it’s unfair if the framerate is low… Is there a way to time the lap with framerate in mind?

Thanks and cheers, mICON

Unfortunately, it won’t ever fair if it’s lagging. As I see it you have two options:

  1. Try to somehow keep track of the lag, and calculate the fair time.
  2. Have a system that detects if the game is lagging, which triggers a pop-up that yells at you and tells you to turn down the graphics quality (I personally like this one better :grinning_face_with_smiling_eyes: )

Get world time in seconds Or Delta Time!

Both result in framerate independent timings.