Fixed excessive lag when long stretches of empty characters were left in the buffer (this was causing several stringstreams and SDL_Rects to be constructed and never used).