I usually do a homebrew world that gets fleshed out as the campaign continues. I usually start out with 1/4 to 1/2 the starting continent planned out as well as a vague idea of the world's history. More or less gets planned before the first session depending on how character creation goes.