I can't use swim goggles, so I've adapted a cheap pair of safety goggles instead.

I found a pair with the rigid lenses and flexible surrounds at the dollar store. I covered all the holes with clear packaging tape, and worked at the computer with them on for over half an hour without them fogging. I don't know why. But sweating may affect this, if you're working strenuously, scared, or the weather is hot.

They're also good if you wear glasses. But keep them in a ziplock bag, as abrasion will affect the plastic lenses.

Sue