I have been wearing surf glasses for around 20 years now. Oakley water jackets, Sea specs & RAVs were good. Some other brands the lenses popped out after getting dumped by waves. I just won't pay heaps for a pair if the chances are high at losing them. I recently lost a pair of RAVs because one of the arms popped out of its fitting. My next pair they were glued in place. All good.
In the last year I decided to ditch all of the anti fog solutions. They do not last. Even toothpaste & Baby shampoo. I also think that some lenses do not fog up as bad as others.
Surprisingly I have gone back to. Yes my saliva. No different to the solutions. And I have it while surfing.

What I have noticed is that within an hour of surfing my glasses seem to fog up less. Why? Maybe because a film dries on the lenses. I noticed this film on my lenses before I surf again. So before a surf I rinse them in fresh water, spit on the inside lenses, rub around with finger & quick rinse & shake off water droplets for better vision. My lenses are nearly dry by the time I hit the water. But the lenses will fog again after being submerged. When it gets annoying I will spit & rub again. After a while I don't seem to do it as often.
I really think to this date there is no fool proof way of having antifog lenses.
Obviously on windier days, warmer days & when moving at speed there is much less fogging. For me. Wing foiling, the problem is rare. Sitting on a board waiting for a wave after a hard paddle will fog up my lenses easier.
Yes. Cold, body heat & more enclosed lenses can be a problem.