After 1 hour at the computer, I close the computer and do gymnastics for the eyes, draw a figure with my eyes or move my eyes from side to side, in general, in such cases, any exercises will help relieve tension from the eyes.
Some people find relief from eye fatigue by using computer glasses with blue light filters, taking regular breaks, and adjusting the brightness and contrast on their monitors. Others use eye drops and warm compresses to reduce strain.
I've read about 20, 20, 20 and it works for me. Set a timer to remind you to look away every 20 minutes at an object that is about 20 feet away for a full 20 seconds.
Though the best way to combat constant eye fatigue is health professional consultation. There could be an underlying reason why it constantly causing a lot of discomfort.
I use special glasses for the computer and make the screen more yellow. The load on the eyes really becomes less and they do not hurt. I also periodically step away from the computer or close my eyes so that they relax.