Make window and renderer public.
Call SDL_RenderPresent after rendering each frame.
Wait for first frame to be rendered.