Calculates how long to wait and then waits that amount of time to ensure the target FPS.
See Implementation
Calculates how long to wait and then waits that amount of time to ensure the target FPS.