You need to do custom time accumulation. So you actually need to do a while loop and do substeps any time too much time has passed, and skip frames where not enough has passed. This can lead to a vicious cycles if your sim is not optimized enough for that.