Are you sure that's not just the adderall? Asking mostly as a joke, but I know a few people who use it specifically for these purposes.
For me, amphetamines actually allow me to productively switch my focus. 8+ hours of hyperfocus, while making me seem like a ninja unicorn rockstar, is just not sustainable and burnout is a real problem.