you store input per frame, also your game must be totally predictive and run at fixed frame rate.