Jump to content

  • Log In with Google      Sign In   
  • Create Account


How do you deal with eye strain?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
12 replies to this topic

#1 black_darkness   Members   -  Reputation: 280

Posted 24 December 2012 - 08:38 AM

I enjoy programming and working on my game for hours straight but my eyes just cant keep up. After about 2 hours I start misreading things and I cant focus my eyes without strain. After about 8 hours I no longer can even read the screen without being a matter of inches away from it. I have never had eye problems before I started programming. I think it may be the font but when I tried making it bigger it just made it harder for me to browse large numbers of lines of code.

 

 



Sponsor:

#2 Cornstalks   Crossbones+   -  Reputation: 6966

Posted 24 December 2012 - 08:47 AM

Do you wear corrective lenses? If yes, you may want to go get your prescription double checked; if no, you may want to go get your eyes checked and see if they would help you.

 

For years, I knew I couldn't see far away things, but thought I could see close up things just fine. I finally went to the eye doctor to get fitted for glasses a couple of years ago (I can't wear contacts because you blink less staring at a screen and my eyes dried out), and I was amazed that they helped with my near vision (I went to get them only for my far vision). I have astigmatisms in both eyes, and correcting these actually helped with both near and far vision. Despite the fact that I got them to help with my blurry far vision, I now wear them all the time because they help with my near vision too (which I never thought was a problem).

 

Almost two years later, I went back to the eye doctor and it turns out my prescription has changed a bit, and the right lens of my glasses is too strong of a correction. This explains why recently my eyes have felt strained and sometimes I'd get headaches.

 

Anyway, I suggest seeing an optometrist and just checking things out.


[ I was ninja'd 71 times before I stopped counting a long time ago ] [ f.k.a. MikeTacular ] [ My Blog ] [ SWFer: Gaplessly looped MP3s in your Flash games ]

#3 pinebanana   Members   -  Reputation: 475

Posted 24 December 2012 - 08:53 AM

You could try taking a break, going outside in the fresh air and relaxing, or exercising. You could also try exercising your eyes, by starring at different locations (without moving your head, your eyes actually need to move) and statically hold it in various locations for 10 or so seconds.

After all, you do blink less when you're starring at a computer screen for hours on end.


Edited by pinebanana, 24 December 2012 - 08:54 AM.

anax - An open source C++ entity system


#4 Scarabus2   Members   -  Reputation: 556

Posted 24 December 2012 - 10:49 AM

I don't have the same problems you are describing, but yeah, it's important to take breaks if only for a few minutes. Rest your eyes and brain.
visualnovelty.com - Novelty - Visual novel maker

#5 kseh   Crossbones+   -  Reputation: 1856

Posted 24 December 2012 - 11:12 AM

This might not be relevant for you but I think I don't get eye strain because I tend to look at the keyboard when I type. My advice would be to give yourself reasons to move your eyes as much as possible. Maybe keep some artwork near by that you can look at in between thoughts (or just stare off into space). Manually program your mp3 playlist to only 6 or 7 songs. I suppose the majority of my suggestions would amount to introducing distractions that aren't so distracting as to derail your train of thought. And remember to blink.



#6 Pat Pat   Members   -  Reputation: 118

Posted 24 December 2012 - 12:10 PM

I enjoy programming and working on my game for hours straight but my eyes just cant keep up. After about 2 hours I start misreading things and I cant focus my eyes without strain. After about 8 hours I no longer can even read the screen without being a matter of inches away from it. I have never had eye problems before I started programming. I think it may be the font but when I tried making it bigger it just made it harder for me to browse large numbers of lines of code.

 

Have you considered that it's not the size of the font that is the problem, but rather the color and contrast of both the font and the background?

 

Personally I can barely work with the default white background/black text that comes with most IDEs. In Eclipse, for example, I use the "Recogneyes" theme.

 

A dark background and low contrast ratio between the background's color and the font's colors can really ease the strain on the eyes.


Edited by Pat Pat, 24 December 2012 - 12:14 PM.


#7 Magdev   Members   -  Reputation: 197

Posted 24 December 2012 - 12:15 PM

You can try f.lux, which tints your screen and makes it much easier on your eyes. It's ideal for long programming sessions. You could also try changing the colors of your IDE to be darker. I'm not sure what IDE you're using, but IntelliJ's dark theme is really easy on the eyes. Maybe you could configure your IDE to look like it.

http://i.imgur.com/PlY2X.png

#8 MrDaaark   Members   -  Reputation: 3539

Posted 24 December 2012 - 12:42 PM

Get up, put on your headphones and go for a walk for an hour. Give your eyes a rest, and prevent yourself from becoming a 300 pound hippo at the same time. smile.png

Spending more time at your computers won't help you program or design better. I solve most of my problems while far away from the PC. I debugged something in my head the other day while on a bus listening to Van Halen. Then when I got home I took 5 minutes to retype out the new design I came up with, hit compile, and moved on to something else.

#9 sunandshadow   Moderators   -  Reputation: 4584

Posted 24 December 2012 - 11:50 PM

Do you wear corrective lenses? If yes, you may want to go get your prescription double checked; if no, you may want to go get your eyes checked and see if they would help you.

 

For years, I knew I couldn't see far away things, but thought I could see close up things just fine. I finally went to the eye doctor to get fitted for glasses a couple of years ago (I can't wear contacts because you blink less staring at a screen and my eyes dried out), and I was amazed that they helped with my near vision (I went to get them only for my far vision). I have astigmatisms in both eyes, and correcting these actually helped with both near and far vision. Despite the fact that I got them to help with my blurry far vision, I now wear them all the time because they help with my near vision too (which I never thought was a problem).

 

Almost two years later, I went back to the eye doctor and it turns out my prescription has changed a bit, and the right lens of my glasses is too strong of a correction. This explains why recently my eyes have felt strained and sometimes I'd get headaches.

 

Anyway, I suggest seeing an optometrist and just checking things out.

This.  My near/far vision is good enough that I can do most things without glasses, so I never had them, even though I knew I had astigmatisms in both eyes from the big halos and spikes of light I see around street lights and car lights at night.  But reading my computer screen got to be more and more straining and started giving me headaches, until I finally went this year and got some computer glasses.  Now I find looking at the computer comfortable for a lot longer.


Phone game idea available free to someone who will develop it (Alphadoku game - the only existing phone game of this type is both for windows phone only and awful. PM for details.)


I want to help design a "sandpark" MMO. Optional interactive story with quests and deeply characterized NPCs, plus sandbox elements like player-craftable housing and lots of other crafting. If you are starting a design of this type, please PM me. I also love pet-breeding games.


#10 Hodgman   Moderators   -  Reputation: 27883

Posted 25 December 2012 - 02:11 AM

I point a lamp at the wall behind my monitor to ensure fairly low lighting contrast, and also use a silver-on-dark-green colour scheme instead of black on white.

#11 Bregma   Crossbones+   -  Reputation: 4770

Posted 25 December 2012 - 08:30 AM

Yes, make the font reasonably sized.  If you need to see too much code on the screen it means you've got either a bad design or a poor implementation.

 

Make sure your lines are of reasonable horizontal length:  about 80 characters in a reasonably-size font of a fixed-width typeface is long enough.  About a thousand years of research has shown that about 3 inches (7 cm) is about the ideal horizontal line length for readability and the elimination of eye strain when reading the printed word.  Your eye are no different.  Many coding standards eschew this wisdom in favour of cramming more code on the screen to accommodate the bad design or implementation, at the cost of diminished readability and increased physical and mental strain on behalf of the reader.

 

Make sure your code has enough vertical whitespace.  You will notice when reading printed matter that paragraphs are often separated by a leading of 1 or 1.5 lines.  This gives a physical pause between the visual scan of conceptually related ideas, which is not only restful for your eye muscles but aids in readability and understanding of your code.  Many coding standards eschew this wisdom in favour of cramming more code on the screen to accommodate the bad design or implementation, at the cost of diminished readability and increased physical and mental strain on behalf of the reader.

 

As mentioned above, adjust the contrast of your monitor.  A typical computer monitor display really really crappy text and you're going to fatigue sooner or later, but a monitor at eye level and the right distance from your face, with appropriate ambient lighting and contrast, can make a dent.  Really, the only solution to the crap display problem is to get a nice 24" monitor with 600 dpi minimum.  Best of luck with that in the next few decades.

 

Most of all, programming should not involve long periods of time staring at a crummy display and reading poorly laid-out text.  As advised above, take breaks from typing to, for example, design, think, walk, get exercise, eat properly, nap.  Also, look up from your monitor at least once an hour and focus on something farther away, like the view out your window or the panel wall on the other side of your parent's finished basement.

 

These are all bits if wisdom gathered over many years.  If you're young, do ignore them and invent your own solution. They'll be there return to when you need something that works.


Stephen M. Webb
Professional Free Software Developer

#12 Koobazaur   Members   -  Reputation: 688

Posted 25 December 2012 - 09:03 PM

As been said taking a break is probably the best bet. Back at my gaming company we would make it a point to get lunch outside so that we could get out of the building, walk a bit, get a break from staring at the screen. Nowadays when I freelance I tend to break apart my day by going for a grocery run or a bike ride. It really makes a difference.

Postmortem: one must die -  Political narrative-adventure game playing an Agent of Death who must take ONE life that could change the fate of a conflict-torn Nation

 

Check out my DevBlog for news on the next title!


#13 superman3275   Crossbones+   -  Reputation: 2045

Posted 27 December 2012 - 01:36 AM

I have astigmatism in both eys also, and getting glasses is amazing. Everything looks cleaner, and I found myself looking at everyday scenes differently. (Now it's getting "cheesy" :))

I'm a game programmer and computer science ninja ph34r.png!

Here's my 2D RPG-Ish Platformer Programmed in Python + Pygame, with a Custom Level Editor and Rendering System!

 

Here's my Custom IDE / Debugger Programmed in Pure Python and Designed from the Ground Up for Programming Education!

Want to ask about Python, Flask, wxPython, Pygame, C++, HTML5, CSS3, Javascript, jQuery, C++, Vimscript, SFML 1.6 / 2.0, or anything else? Recruiting for a game development team and need a passionate programmer? Just want to talk about programming? Email me here:

hobohm.business@gmail.com

or Personal-Message me on here smile.png!





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS