To preserve proper gameplay in the event of framerate jank, I've implemented various safeguards, such as movement stepping and all that jazz.
What's a good way to induce dropped frames in a controlled fashion, so I can test this? Ideally, I'd want to be able to say: If 'D' is Pressed: Drop the next 2 frames.
Then I can press 'D' before a critical moment in my game and see how well my game deals with it.
Any ideas?