Except there is a well-known phenomenon among programmers that commencing to work requires more energy than working itself (*).
Every time you chill out and come back to work, you will have to invest that extra bit of start-up energy. Which can be draining.
(* probably has to do with reloading your working memory)