Working on a huge project can be desolating, so distracting yourself with something else once in a while can be really stimulating. You could take a power nap, go on a walk, or even make tiny, mindless, fun experimental programs between your projects. Just make sure to rest your mind a bit.