When I work remotely and have freedom over my time, I can take a few hours off to go for a walk, sleep, go for a long lunch, meet friends, or even play games. Afterwards I feel recharged and can be 110% productive, and usually end up working more hours than I would in an office.
I did this for a lot of last year, as I needed to overlap with teams in India and PST, so I usually worked 10am - 10pm taking a few hours off in the afternoon. I was able to get so much more done because of that extended break.
I did this off and on for about 6 months, pretty much by accident: When I worked from home, I wandered in and out of my responsibilities all day, so I couldn't get my work done until probably 9 or 9:30 at night. I was absolutely miserable, and I think the case would be the same if I tried it again, albeit more mindfully.
In theory, being able to take breaks helps me clear my head. In reality, though, I find my brain interprets "It's 10 pm and I just finished work" the same way whether I worked straight through from 9 am or took a 3-hour break in the afternoon. I hate it.
Therefore, even though I appreciate that this isn't a solution for everyone, I don't think it's fair to say that this boils down to just a personal experience with no external value.
8 hour of work is 24/3. That is a turn in a factory. It have nothing to do with 'optimal', at least that we are talking optimal for the factory.
Since then labour organizations in many countries have set goals for shorter work days, and many countries have seen the work days shortened further to various extent, but given how long the fight for the 8 hour day took, we can expect it to take a long time.
But as you say, it has absolutely nothing to do with 'optimal'.
Yet for the potentially even more complex range that is different people, it amazes me that so much of the advice is didactic - we all need 8 hours sleep, 8 glasses of water, and 8 hours of work with breaks is optimal.
The closest I get to advice is 'learn your body and what works for you'. Thanks to the OP for sharing what works for him.