You can avoid running out of patience by ensuring the work stays fun, working with people who are nice to work with, ensuring that you stay on-mission forever so you care about what you do, and exercising and sleeping well. Or some combination of those things.