But you didn't forget "SDL_Init(SDL_INIT_TIMER);" right in the beginning, did you?