At the current xp system you should retire @ lvl 31 15 times before going to lvl 32 and beyond.
Each time you retire you gain a generation bonus for xp gain, first time gives 30 extra xp a tick at times 1, second time 60 extra up til gen 16 which gives 450 extra xp added on top of the base xp you get at x1.
You can go straight to lvl 32 and beyond w/o gen 16 bonus but it will take longer.
Also if you go to lvl 32 and beyond and then retire you still will get the looms Tristan mentioned but will still only get 1 gen even if retiring at lvl 34.
Your best bet is to retire at lvl 31 15 times then go to higher levels. This will get you 15 loompoints to work with and more xp for the trip to lvl 32.