I find it easiest to have something like The Simpsons on at a really low volume in the background . Basically , a program I know really well and I ' m not going to get too distracted by or focused on . <| sep |> F R E S HRESH <| sep |> ComputingForeverNot this fucking retard again . <| sep |> What Merc trait kicks me ? Might have had that happen a few times as well <| sep |> how many guys named rachel do you know ? <| sep |> You only poll your eventqueue once per frame . You probably get more events than you are processing . SDLPollEvent returns 1 if there are still events in the queue . Read them until it returns 0 no more events in the queue . Code bool isRunning true while isRunning while SDLPollEventevent switch event . type case SDLKEYDOWN case SDLQUIT isRunning false break doStuff