I have a problem with playing a recorded game replay. The replay data consists of tuples of the timestamp when user input was made and the input itsself.
Each frame while playing the replay I try to find a matching user input in the replay data. But as the time in each frame mostly never matches a timestamp in the replay data exactly , I can only fetch the closest timestamp from the replay data which averagely differs about 0.01 seconds form the current frame time. This makes the replay very imprecise.
What possibilities do I have to react on this difference?