Abstract Variations in the size and shape of the eye have been observed in many species of fish. As eye size is positively related to visual acuity, larger eyes should favour foraging and detection of predators. However, few studies have examined the variation in eye morphology in relation to the complexity of lake conditions, including environmental perturbation and spatial variation in predation and competition. Such tests are especially important as the degrading of the visual climate is expected due to climate change, where browning, turbidity and variations in structural complexity should set different demands for visual acuity of foraging fish under predation risk. In this study, we tested the variation of the eye size among 667 individuals of an aquatic predator perch, Perca fluviatilis, from littoral and pelagic habitats of 14 lakes. We used Secchi depth to assess the effects of the visual climate of our lake systems, as fish foraging is highly related to visual conditions, and studied eye size variation in relation to the contribution of the pelagic resources to an individual's diet and the risk of predation. Secchi depth, the pelagic contribution to the diet and the percentage of piscivores had significant effects on eye size. These variable outcomes suggest that the lake environment in terms of visual climate, predation landscape and diet are major factors of eye size variation in this generalist predator. As many fish species trade off foraging against predation risk, future studies will show whether the complexity of intra‐ and interspecific interactions contribute to the variation in eye size in freshwater fish. Read the free Plain Language Summary for this article on the Journal blog.