DEV Community

Cover image for Why Your Eyes Burn by Evening: Digital Eye Strain and the 20-20-20 Rule
Kirill Lukyanov
Kirill Lukyanov

Posted on Originally published at klukyanov.ru

Why Your Eyes Burn by Evening: Digital Eye Strain and the 20-20-20 Rule

By the end of the day my eyes burn. The screen goes fuzzy for a second when I look up, focusing on something across the room takes longer than it should, and a dull headache creeps in around the temples. I used to write this off as "just tired." Turns out it has a name and a fairly simple mechanism behind it.

What computer vision syndrome actually is

Computer vision syndrome — digital eye strain, if you prefer the plainer name — isn't a diagnosis in the sense of "something broke." It's a cluster of symptoms that shows up after prolonged close-range screen work: dryness and burning, blurred focus when you shift your gaze to something far away, light sensitivity, headaches, and often neck and shoulder pain, because we unconsciously lean toward the screen and freeze in one position for hours.

Two things happen at once. First, your eyes hold focus on a near object for a long stretch — the ciliary muscle, which controls how the lens changes shape for near vision, stays tensed the whole time instead of periodically relaxing the way it would if your gaze wandered farther away now and then. Second, you blink noticeably less often while concentrating, so the tear film that keeps your eyes moist doesn't get replenished as frequently — hence the dryness.

Why a screen and not a book

Reading a book for hours also holds your focus at close range, but it strains your eyes less, and there's a reason for that. A screen emits light rather than reflecting it the way paper does, which creates more contrast against the room's ambient lighting, especially if the room is dimmer than the display. Glare from windows and lamps forces you to squint and refocus. And a laptop or phone tends to sit closer to your face than a book or a printed document would, simply because the screen is smaller.

There's also the nature of the work itself. Reading a book is a steady stream; working with software is a constant series of micro-refocuses between windows, tabs, and notifications. Your eyes keep re-adjusting, with almost no rest in between.

The 20-20-20 rule

Every 20 minutes of screen work, look at something roughly 20 feet (about 6 meters) away for 20 seconds.

The logic is simple: shifting your gaze to a distant object lets the ciliary muscle relax — it defaults to distance vision and only tenses up when focusing close. Twenty seconds is usually enough to release that tension without derailing your work for long. Ophthalmologists and optometrists like this rule specifically because it's so low-friction: no closing your eyes, no stepping away from the computer, no time cost — just look out a window or across the room.

What else actually helps

  • Blink rate. Blink frequency drops noticeably during focused work. Consciously blinking more often, especially while reading or typing, helps keep the tear film intact and prevents dryness.
  • Distance. Your monitor should sit an arm's length away, top edge at or slightly below eye level. A screen positioned too close keeps the ciliary muscle under constant tension.
  • Lighting. Screen brightness should roughly match the room's ambient light — not much brighter or dimmer, since either forces your eyes to keep readjusting. Glare from windows and lamps is worth eliminating before it becomes a problem, not after.
  • Text scale. If you're squinting to read something, that's extra strain you don't need. Bumping up the font size or interface scale is almost always cheaper than living with it.
  • Periodic vision checks. If you spend long hours at a screen, it's worth tracking your visual acuity and a few other basic metrics over time — not as a substitute for an actual eye doctor, but to catch a trend early and bring it up at your next appointment.

Why this is hard to keep up manually

Everything above sounds simple, and that's exactly the trap. The 20-20-20 rule only works if you actually follow it — and in the middle of a work session, 20 minutes disappears fast; you remember the break only after your eyes are already tired. Screen distance and room lighting are just as hard to self-monitor: you don't notice that you've drifted closer to the monitor over the last hour, and nobody's measuring lux with a light meter mid-sprint. And without a history of measurements, there's no way to tell whether the habits you're trying to keep are actually helping — there's simply nothing to compare against.

That gap — not "what to do" but "how to do it without constant self-monitoring" — is what pushed me to build an app instead of just setting a recurring alarm.

How I automated it in SafeYourEye

SafeYourEye is my macOS app, and it takes over exactly the manual parts from the list above:

  • Timer — the 20-20-20 rule with a configurable session length and idle detection, so the countdown doesn't keep running if you've stepped away from the computer.
  • Distance and light — the camera tracks how far you are from the screen and the room's ambient light level, and nudges you if you've sat too close or the room has gotten too dark.
  • Blink rate — a five-minute camera-based blink rate measurement, with a history across the day and a trend, not just a one-off number.
  • Self-check for vision — four checks on one screen: visual acuity via Landolt rings, contrast sensitivity, an astigmatism fan, and an Amsler grid, with a result history, trend, and PDF export to bring to an eye doctor. There's also a 90-second express mode.

All camera frame processing happens locally on the Mac through the system Vision framework — nothing is recorded or sent anywhere. The only things that leave the device are derived numbers, like a measurement timestamp and a blink-rate-per-minute figure.

What it is: a 20-20-20 timer with camera-based distance, light, and blink monitoring, plus a vision self-check.
Platform: macOS 13+, interface in Russian, English, German, and Chinese.
Privacy: all camera processing happens on-device; nothing leaves the Mac.
Where to get it: Mac App Store, $2.99.

Originally published at klukyanov.ru.

Top comments (0)