Introduction

The design of eyes has long fascinated biologists with its variations, innovations, numerous adaptations of form to function, and insights into the evolution of organs, both rudimentary and perfectly contrived (Darwin, 1859; Land & Fernald, 1992; Nilsson & Land, 2012; Oakley & Speiser, 2015; Walls, 1942). We address a question of eye design that has not been considered before, but is familiar to people who construct imaging systems on tight budgets. How should the resources invested in an eye be divided between an eye’s two major components, the optical system that forms images and the photoreceptor array that captures images?

The benefits of enlarging the dioptric apparatus and the photoreceptor array are well understood, consequently numerous studies relate measures of eye morphology (radius, width, length, lens diameter, pupil area, and photoreceptor length) to optical, geometrical and physiological constraints on performance to show how morphology adapts an eye to lifestyle and habitat (Barlow, 1952; Kirschfeld, 1976; Labhart & Nilsson, 1995; Land, 1981; Land, 1997; Nilsson & Land, 2012; Niven et al., 2007; Snyder, 1979; K. N. Thomas et al., 2020). However, the fact that an eye’s performance depends on two systems that effectively compete for the resources invested in an eye, the dioptric apparatus and the photoreceptor array, is rarely considered (Kirschfeld, 1976; Kröger & Biehlmaier, 2009). We investigate how trade-offs between dioptrics and photoreceptor array determine an eye’s performance and efficiency by developing a new cost:benefit approach, which uses measures of eye morphology to calculate costs, and relates these measures to optical, geometrical and physiological constraints to calculate benefits.

We consider three basic eye types, two types of apposition compound eye, neural superposition and fused rhabdom, and a simple eye (Figure 1). We establish and road test our cost:benefit approach using apposition compound eyes because they offer a unique combination of advantages. The optical and physiological constraints are well documented, their effects on performance are measured and modelled, (Hardie & Postma, 2008; Heras & Laughlin, 2017; Howard et al., 1987; Snyder, 1979; Song et al., 2012; Stavenga, 2004b) and their influence on eye design is well established. For example, the compound eyes of housefly, praying mantis, dragonfly and robber fly have foveas for detecting, locating and catching flying mates or prey. Here the facet lens are enlarged to reduce the diffraction limit to optical resolving power, the ommatidia are more densely packed to increase angular resolution, and photoreceptors are elongated to increase signal to noise ratio by transducing more photons (Burton & Laughlin, 2003; Hardie, 1985; Labhart & Nilsson, 1995; Rossel, 1979; Wardill et al., 2017). In addition, there are clear indications that photoreceptors are costly and investments in optics and photoreceptors are matched. Apposition eyes’ photoreceptor arrays obviously fill a substantial fraction of eye volume because photoreceptors construct long photoreceptive waveguides (rhabdomeres, rhabdoms), substantial photoreceptor energy costs increase with rhabdomere length (Niven et al., 2007), and there is a precise, fine scale covariation of acuity and photoreceptor length, measured in two apposition eyes (Labhart & Nilsson, 1995; Rossel, 1979) and obvious in many others (e.g. Figure 1b).

Eye structure and geometry defines resolution and costs. a) Fused rhabdom apposition eye, photoreceptors coding a pixel form fused rhabdom and send axons to a single neural module; b) neural superposition (NS) apposition eye, photoreceptor forms its own rhabdomere, photoreceptors with same optical axes code single pixel and send axons to single neural module; c) simple eye, as in a camera each photoreceptor codes a single pixel. d) Gradient of investment in spatial acuity: apposition eye, honeybee drone, Apis mellifera. From dorsal to ventral, D increases and Δϕ decreases to increase spatial resolution, rhabdom length,L, increases to increase SNRph. 10 µm thick longitudinal section, (DA) dorsal eye area (VA) ventral area. BM - retina’s basement membrane; E – equator separating dorsal and ventral regions. From Menzel et al., 1991, original micrograph, courtesy of Doekele Stavenga. e) Schematic section of locally spherical apposition eye region. Volumes of optics and photoreceptor array are determined by dimensions that constrain the quality of the spatial image coded by photoreceptors: lens diameter D, focal distance f, interommatidial angle Δϕ = D/R where R is eye radius, and rhabdom(ere) length L.

Our new cost:benefit approach establishes that photoreceptor cost is a major factor in eye design that influences optics by competing for the resources invested in an eye. Consequently matching investments in optics and photoreceptors to improve efficiency is a principle of eye design. This principle can explain why apposition eyes have longer photoreceptors than simple eyes and photoreceptor length increases with spatial acuity in apposition and simple eyes. We suggest that our approach can advance our understanding of visual ecology by costing the benefits of the adaptions observed in eyes (Cronin et al., 2014; Nilsson & Land, 2012). Moreover, because the allocation of resources to optics and photoreceptors both promotes cost-effectiveness, and depends upon developmental and physiological mechanisms (Casares & McGregor, 2021; Niven & Laughlin, 2008), our cost:benefit approach may well contribute to our understanding of how and why eyes evolve (Nilsson & Pelger, 1994).

Results

We start with the neural superposition (NS) eyes of flies. This type of apposition compound eye provides both the detailed analyses of optical and physiological constraints required to develop a model that relates investments in optics and photoreceptor arrays to performance, and the published data on dioptrics and photoreceptor arrays required to test our model. Moreover, because fly NS eyes vary in size between species while retaining similar structure and function we simplify our study by developing and using a generic fly NS model. We then model and examine fused rhabdom apposition eyes to identify general principles of apposition eye design. Finally we model a simple (camera) eye to demonstrate that changing eye type changes the distribution of costs. In all three types, we consider diurnal eyes operating in daylight when the number of available photons is not limiting. Although this restriction eliminates the many ways in which eyes are designed to operate efficiently at lower light levels (Nilsson & Land, 2012), it makes it easier to establish points of principle by reducing the numbers of variables in our models.

Calculating the benefits and costs of investing in optics

In daylight, when the number of available photons is not limiting, investments in optics buy increased optical contrast and spatial resolving power by reducing optical and geometrical constraints, as follows. An apposition eye forms and captures images with an array of ommatidia (Figure 1). Each ommatidium uses a facet lens of diameter, D, and focal length (in air), f, to focus light onto the entrance aperture of photoreceptive waveguides, a single fused rhabdom or several rhabdomeres (Figure 1) of diameter drh. Increasing D sharpens a photoreceptor’s angular sensitivity by reducing the blur produced by the Airy disk diffraction pattern, whose half-width ΔρL = λ/D radians, where λ is the wavelength of light, taken to be 500 nm. Increasing f and reducing drh also sharpen angular sensitivity by reducing the angular subtense of the photoreceptor entrance aperture, drh/f, and changing the acceptance angle of the photoreceptive waveguide, Δρrh (Snyder, 1979). Sharpening angular sensitivity has two benefits: it increases spatial resolving power and increases image contrast.

We calculate the effects of D, drh and f on the half-width of a fly photoreceptor’s angular sensitivity, Δρ, using two formulae, Snyder’s simplification, his Convolution of Gaussians , where ΔρL = λ/D and Δρrh = drh/f ; and Stavenga’s better approximation, Δρ = 1.26ΔρL, obtained using a comprehensive wave-optics model (WOM) of flies’ NS eyes operating in bright light (see Methods for more details). For CoG we fix drh = 1.9 µm because this value is typical of fly R1-6 (Hardie, 1985). CoG provides a lower bound to optical resolving power and WOM a more efficient upper bound that, in bright light, makes better use of investments in optics by operating closer to the diffraction limit.

The benefits of investing in optics come at a cost: increasing D and lengthening f to reduce Δρ expands the volume of the dioptric apparatus, Vo, which in apposition eyes is easily calculated from eye geometry (Figure 1e). D and Δϕ define the radius R = D/Δϕ of a locally spherical eye region, in which the dioptric apparatus (lens, cone and screening pigment) is a shell of thickness f′, the focal distance from lens front surface to focal plane. Thus

Because Vo is a specific measure, volume per unit solid angle of visual space, we can compare investments in eye regions that differ in radius and angular extent. Thus Vo handles the regional variations in R observed in many compound eyes.

To simplify our expression for Vo (equation 1) we fix lens F-number, F = f/D and apply the formula for image formation by a convex cornea, f′ = f.ni, where ni is the refractive index of the internal medium (Nilsson & Land, 2012). This formula describes several apposition eyes, including fly NS eyes (Rossel, 1979; Stavenga, 2003a; Stavenga et al., 1990; Zeil, 1983). Thus

We use values measured in blowfly, F = 2.0 (Stavenga, 2003a) and ni, = 1.34, (Seitz, 1968).

Fixing F both simplifies our models by reducing the number of free parameters and accounts for the dependence of the photon flux entering an ommatidium on D by making image brightness (the flux per unit area of rhabdomere entrance aperture) independent of D. We use the specific volume of optics, Vo, as our measure of the cost of optics, Co µm3 sr1. This usage assumes that the cost of materials, the cost of metabolic energy for maintaining function, and the energy cost of carriage all increase in equal proportion to volume, in all parts of the dioptric apparatus, namely the corneal lens, cone, and surrounding pigment cells. Given the lack of definitive data on composition and costs, this assumption is a reasonable starting point (Discussion).

Calculating the benefits and costs of investing in photoreceptors

Investing in photoreceptors buys photoreceptor signal to noise ratio, SNRph, by reducing the effects of an optical constraint, the Poisson statistics of photon absorption (Nilsson & Land, 2012), and at higher light levels a physiological constraint, the saturation of a photoreceptor’s transduction units - its light sensitive microvilli (Heras & Laughlin, 2017; Howard et al., 1987; Song et al., 2012). A microvillus contains rhodopsin molecules, the intermediate molecules of the phototransduction cascade and the ion channels they activate, and it uses these to generate a brief pulse of depolarising current, a quantum bump, following the activation of a single rhodopsin molecule by an absorbed photon. This all-or-none response takes time to complete, during which the microvillus cannot respond to the absorption of another photon (Hardie & Postma, 2008; Song & Juusola, 2014). Therefore, as light intensity rises to daylight levels, SNRph falls below the Poisson limit because a photoreceptor’s transduction units saturate (Howard et al., 1987). At any given time a significant fraction of microvilli are failing to respond to the absorption of a photon by rhodopsin because they are already engaged in processing a bump. Consequently the transduction rate ψ no longer increases linearly with the absorption rate, and bump statistics change from Poisson to binomial. In daylight, flies activate a photomechanical response, a longitudinal pupil, to prevent excessive saturation and maintain SNRph close to the maximum permitted by binomial statistics,

where SNRph is defined with respect to a signal of unit contrast (Howard et al., 1987). Note that by operating at this upper limit the fly obtains maximum benefit from investing in Nvil. Thus the benefit of investing in a longer rhabdomere is an increase in SNRph in bright light, according to

where L is rhabdomere length and ν is the number of microvilli per unit length. We assume ν is constant along the rhabdomere and from published results we estimate ν = 230 µm1 (Methods). We acknowledge that diameter, cross section and taper often vary within and among rhabdomeres. We are fixing ν at a plausible value for a generic model.

The cost of increasing SNRph by increasing L is easily calculated. In fly NS eyes, L is also the depth of the photoreceptor array because the rhabdomeres of the six largest photoreceptors, R1-6, stretch from the focal plane of the lens to the basement membrane (Hardie, 1985). Thus in a locally spherical eye region (Figure 1) the photoreceptor array’s specific volume is

Substituting f′ = F.ni.D

According to eye geometry (Figure 1), the total specific volume of an eye region is

Observe that because both Vo (eqtns 1 & 2) and Vph (eqtns 5 & 6) depend upon R and R = D/Δϕ, both Vo and Vph increase with the number of ommatidia per unit solid angle.

For the photoreceptor array we assume that the costs of space, materials and energy for carriage increase in proportion to volume with the same constants of proportionality as optics. Again, in the absence of measurements this assumption is a reasonable starting point (Discussion). We account for the exceptionally high energy consumption of photoreceptors (Laughlin et al., 1998; Niven et al., 2007; Pangršič et al., 2005) by applying an energy surcharge, SE. To equate with our other estimates of cost this surcharge has units of µm3 sr1, and we assume that it increases in proportion to Nvil because Nvil determines the magnitude of the photoreceptor’s light-gated conductance (Hardie & Postma, 2008; Heras & Laughlin, 2017). We satisfy these two requirements by defining

where KE, the photoreceptor energy tariff, converts the energy consumed by a photoreceptor per microvillus into an equivalent volume.

We estimate KE (Methods) by adopting the method used to estimate the energy cost of weapons carried by flying beetles (Goyens et al., 2015). We divide the energy consumed per microvillus by the animal’s mass specific metabolic rate, SMR, to obtain an equivalent body mass which, assuming a density of 1.0, is our volume equivalent, KE µm3 per microvillus. KE is at present poorly determined: it depends upon several ecological, physiological and behavioural factors, it will vary among species and among individuals of the same species, and there is barely enough data (Methods). Given this uncertainty, we model a range of values from KE = 0 to KE = 0.64 that covers the range we estimate for blowfly, KE= 0.13 to KE = 0.52 (Methods).

To summarise costs, for the photoreceptor array

and for the optics

Because Co and Cph have the same units and are specific (per unit solid angle), we can transfer resources between optics and photoreceptors within the constraint of total specific cost

Modelling the effects of resource allocation on NS eye performance

When Ctot is fixed, allocating a smaller proportion to optics and a larger proportion to photoreceptors trades the benefits of investing in optics for the benefits of investing in photoreceptors (Figure 2).

The effect of trading investment in photoreceptor array for investment in dioptric apparatus. Schematic shows two eye regions of equal specific volume, the left investing more heavily in photoreceptors, the right more heavily on optics. The images they capture show that transferring resources from photoreceptor array to optics increases image sharpness and contrast at the expense of increasing noise.

Having used constraints to link investments in dioptrics and photoreceptor array to three major determinants of the quality of the achromatic images captured by fly photoreceptors R1-6, namely Δρ, Δϕ and SNRph, we can now model how trade-offs between optics and photoreceptors change an eye’s ability to support vision. Several measures of visual performance depend on Δρ, Δϕ and SNRph. To establish proof of principle we use a general measure that embraces a wide variety of resolvable achromatic image details - spatio-temporal information capacity in bits sr1 s1. Information capacity has proved useful for measuring the performance of compound eyes (de Ruyter van Steveninck & Laughlin, 1996), discovering design principles (Hateren, 1992; Howard & Snyder, 1983; Snyder et al., 1977), and illuminating the evolution of simple eyes (Nilsson & Pelger, 1994). The measure is particularly relevant for a fly NS eye because coding by second order neurons is adapted to maximise information capacity (Hateren, 1992; Laughlin, 1981).

To model the effects of resource allocation on information capacity, we fix Ctot and generate pairs of D and L that cover the range of values permitted by eye geometry. Each D, L pair specifies an investment in optics, Co(D, L), an investment in photoreceptors Cph(D, L) and hence the three determinants of image quality, Δρ(D, L), Δϕ(D, L), and SNRph(D, L), that specify spatio-temporal information capacity H(D, L) bits sr1 s1.

We calculate H(D, L) (Methods) in the frequency domain (Hateren, 1992; Howard & Snyder, 1983). In brief, a 2-D power spectrum typical of natural scenes is low-pass filtered by the photoreceptor angular sensitivity function, Δρ(D, L), and sampled by an hexagonal lattice of photoreceptors specified by Δϕ(D, L). Movement of the retinal image modulates the flux of photons entering a photoreceptor by converting spatial frequencies into temporal frequencies, according to the distribution of angular velocities generated during behaviour. Then during transduction, the photoreceptors low-pass filter these temporal frequencies and add the noise generated by sampling the photon flux stochastically with transduction units (microvilli). We use Hateren’s (1992) formulae for the 1/f 2 power spectrum of natural scenes and the distribution of image velocities appropriate for blowfly, and we temporally low pass filter according to the measured properties of a fully light-adapted blowfly photoreceptor R1-6 (Methods). We also modify Hateren’s method to take account of the spatial aliasing that occurs when an array of ommatidia undersamples an image (Methods).

By calculating information capacities for each D, L pair we define the performance surface H(D, L) that covers the morphospace of model eyes of given F-number, F, and specific cost, Ctot. The performance surface is a flat-topped ridge with steep flanks (Figure 3). Atop the ridge, a single point of maximum capacity, H(Dopt, Lopt), sits in an extensive zone within which capacity, and hence efficiency, is > 95% maximum (red zone in Figure 3). With efficiency dropping steeply away from the ridge, approximately two thirds of D, L combinations have efficiencies < 70%. The shape of the performance surface depends upon photoreceptor energy cost (Figure 3). Increasing the energy tariff KE reduces Lopt from the maximum permitted by eye geometry to one quarter of maximum. However, because the ridge is flat-topped, Lopt still lies in an extensive high-efficiency zone, within which L can be changed three-fold and D by 40%, while maintaining > 95% efficiency (Figure 3).

The performance surface H(D, L) describes how information capacity changes across all geometrically permissible configurations of an eye of fixed cost - the eye’s morphospace. Red area: high-performance zone in which capacity is > 95% maximum. Surfaces plotted for model fly neural superposition (NS) eyes, with F-number, F = 2 and total cost, Ctot = 4 × 109 µm3 sr1 at 3 values of photoreceptor energy tariff KE. Acceptance angle Δρ calculated using Snyder’s (1979) CoG approximation.

Patterns of investment in optimised NS eye models

We next establish how, in theory, eye structure and investments in optics and photoreceptor array vary with total investment when efficiency is optimised by maximising information capacity. We run our fly NS eye model with different combinations of Ctot and KE and for each combination find the values of Lopt, Dopt and Δϕopt that maximise information capacity and the corresponding investments in optics and photoreceptor array, Co and Cph. For each combination of Ctot and KE we run two versions of our NS model, one calculates Δρ using CoG (Snyder, 1979) and the other WOM, which produces a narrower Δρ that comes closer to the lens diffraction limit (Stavenga, 2004a). The two versions give similar patterns of investment (Figure 4).

When model fly NS eyes are optimised for information capacity, eye structure, eye performance and the division of resources between optics and photoreceptor array depend on total investment, Ctot and photoreceptor energy tariff, KE. a) lens diameter D; b) interommatidial angle, Δϕ; c) rhabdomere length, L. Key in c) applies to a) and b). d) information capacity H in the region where plot of L vs Ctot at KE = 0.12 jumps. e) %Ctot allocated to photoreceptor array; f) photoreceptor energy cost as %Ctot. CoG, acceptance angle approximated by convolving Gaussians (Snyder, 1979); WOM, acceptance angle approximated according to wave optics model (Stavenga, 2004).

Rhabdomere length is matched to acuity and rhabdomeres are long

As Ctot increases, Dopt widens to increase lens contrast transfer and resolving power by reducing Δρ, Δϕopt narrows to increase spatial resolution, and Lopt lengthens to improve SNRph, reaching several hundred microns in larger eyes. Thus efficient resource allocation can, in theory, explain why NS eye rhabdomeres are long and rhabdomere length increases with spatial acuity. Note that improving the performance of the optical system by approaching the lens diffraction limit to resolving power improves an eye’s performance in full daylight. With the WOM approximation for Δρ the lens diameter D required to achieve a given Δρ is decreased, and this allows Δϕ to decrease (Figure 4b), thereby increasing the spatial resolution achieved by an efficient eye of given total cost.

Photoreceptor energy cost changes the structure of an efficient eye

Increasing the photoreceptor energy tariff KE reduces Lopt, and hence the depth of the photoreceptor array, by as much as 90% (Figure 4c). Lopt is most sensitive to KE in the range 0.04 to 0.16. Note the tendency for Lopt to jump up and down as Ctot increases. Although these jumps change resource allocation and eye structure, they have relatively little effect on the steady rise of information capacity with Ctot (Figure 4d) because the performance surface is flat topped (Figure 3). The effects of KE on eye structure are also sensitive to optical performance: increasing KE has a greater effect on Lopt in the more sharply focussed WOM model at all but the highest values of Ctot (Figure 4c). As expected, increasing KE reduces the spatial resolution achieved at a given Ctot by reducing the resources available for investment in the volume costs Vo and Vph.

Photoreceptor arrays are allocated more resources than optics

When our NS eye models are optimised for information capacity, more than 50% of Ctot is allocated to photoreceptor arrays over the range Ctot = 2×106 to 3×1011 µm3 sr1, irrespective of optical effectiveness (CoG c.f. WOM) and photoreceptor energy tariff, KE (Figure 4e). At lower values of KE, the optimum allocation to photoreceptor arrays is strongly dependent on Ctot, increasing from 45% to 90% Ctot over the range Ctot = 1×106 µm3 sr1 to 1×1010 µm3 sr1, and then jumping down to approximately 60% between Ctot =1×1010 µm3 sr1 and Ctot = 1×1011 µm3 sr1 (Figure 4e). At higher values of KE, the optimum photoreceptor allocation is relatively insensitive to Ctot and lies between 60% Ctot and 65% Ctot. We conclude that, in theory, the cost of the photoreceptor array is as significant as the cost of optics. Therefore to fully understand eye design both costs must be taken into account.

The relative contributions of photoreceptor array volume, Vph, and photoreceptor energy cost SE to total array cost, Cph, depends on total investment, Ctot (Figure 4f). At our lowest Ctot, i.e. in the lowest acuity eyes regions, the energy cost is 25% to 50% of Ctot, depending on KE, but as eye size increases the costs associated with array volume come to dominate and photoreceptor energy cost drops to 5% of Ctot.

Flies invest efficiently in costly photoreceptor arrays

Our new method for calculating costs enables us to estimate, for the first time, the total investment an animal makes in an eye or eye region, and break this down into its two major components, optics and photoreceptors. Using published measurements of D, Δϕ and L we determine the specific volumes of dioptric apparatus, Vo, and photoreceptor array, Vph in fly neural superposition (NS) eyes. Note that true volumes are used because the total costs expressed as volumes, Ctot, and Cph, depend on a parameter that is poorly determined and must vary among species, the energy tariff KE (eqtns. 9 & 10; Methods). Although numerous publications give values of D and Δϕ (Feller et al., 2021; Land, 1997), very few include L. We have values for just 12 eye regions, taken from 7 species of flies (Table 1). For each region we insert the values, L, D, Δϕ and f′, into equations 1 to 4 to calculate Vo, Vph, and Vtot (eqtns). Where focal distance f′ is not reported (Table 1) we follow our models (eqtn. 2) and calculate f′ = FDni with F = 2 and ni = 1.34.

Measurements of Dipteran neural superposition (NS) eyes, extracted from published sources, 1. Land 1997; 2. Hardie 1985; 3. Stavenga et al. 1990; 4. Stavenga 2003a; 5. Land and Eckert 1985 ; 6. Stavenga 2003b; 7. Gonzalez Bellido et al. 2011; 8. Zeil 1983; 9. Wardill et al. 2017. Further details of the measurements used and results obtained are given in supplementary table S1.

The 12 eye regions provide a well-distributed set of empirical values of L, D, Δϕ, Vo, Vph and Vtot (Table 1) that spans almost five orders of magnitude of Vtot, from 1.4×106 µm3 sr1 and 2.1×106 µm3 sr1 for the low acuity eye region of the March fly Dilophus febrilis and the eye of Drosophila melanogaster respectively, to 9×1010 µm3 sr1 for the remarkable fovea of the small robber fly Holcocephala fusca (Wardill et al., 2017). These empirical values are compared with the theoretical curves from model NS eyes optimised for information capacity (Figure 5). Looking across the 12 fly eye regions, D increases and Δϕ decreases as Vtot increases. In regions of lower specific volume D is larger than predicted by our optimised models but at higher specific volumes D lies within, or close to, the theoretical envelope defined by the CoG model with KE = 0 and KE = 0.32 (Figure 5a). Δϕ is wider than predicted (Figure 5b) in all but the largest eyes. The eye parameter, p = DΔϕ, (Figure 5c) indicates the degree to which an apposition compound eye sacrifices spatial resolution by sampling below the lens diffraction limit. Only one eye regions comes close to the diffraction limit p = 0.29 (Snyder, 1979), Holcocephala fovea. As previously observed (Wehner, 1981) most eye regions undersample: p ranges from 1.4 to 0.8 and tends to decrease with increasing Vtot (Figure 5c). Our optimised models also undersample but to a lesser extent (Figure 5c). Our models indicate that improving lens quality (WOM c.f. CoG) allows an optimised eye to operate much closer to the diffraction limit (results from WOM models not plotted). We conclude that, although our optimised models significantly undersample, most eyes regions are not optimised for spatio-temporal information capacity.

Parameters defining the configurations of 12 fly NS eye regions, taken from 7 species (Table 1), compared to model NS eyes optimised for information capacity at given values of photoreceptor energy tariff KE, and total specific volume Vtot. a) lens diameter D, b) interommatidial angle Δϕ and c) eye parameter p = DΔϕ (keys as in a), d) rhabdomere length L. e) Log:log plot of L vs D, dashed line shows slope for isomorphic scaling, L ∝ D;. f) Specific volume of photoreceptor array, Vph expressed as % total specific volume of eye, %Vtot. CoG - acceptance angle approximated by convolving Gaussians (Snyder, 1979).

Rhabdomere length, L, increases with Vtot from 60 µm to 340 µm (Figure 5d; Table 1), within or close to the theoretical envelope defined by KE = 0 and KE = 0.16. Thus L is increasing with acuity and optical radius (i.e. with increasing D and decreasing Δϕ), as required for efficient resource allocation. The notable exception, the shorter than predicted rhabdomeres in Holcocephala fovea, is easily explained: this fovea points forward in a head that is less than 250 µm from front to back (Wardill et al., 2017).

The log-log plot of L versus D (Figure 5e) shows that the increase in L with Vtot is not explained by proportional scaling because the empirical values do not lie on a straight line of slope 1, L = kD. Indeed, as expected of a physiological system subject to several competing constraints (G. K. Taylor & Thomas, 2014), the slope changes continuously. We conclude that rhabdomere length L consistently increases with acuity, both within and among fly NS eyes. Although the eye regions we analyse are not optimised for spatio-temporal information capacity (at least according to the assumptions of our model), we argue that the matching of rhabdomere length to spatial resolution seen in flies promotes the efficiency of their total investments in eye: L lies within, or close to, the theoretical envelope predicted by models optimised for efficiency and the theoretical performance surface has a wide flat high-efficiency zone (Figure 3).

To accommodate photoreceptors’ lengthy rhabdomeres, flies allocate between 56% and 78% of eye volume, Vtot, to photoreceptor arrays (Figure 5f). The smaller remainder, between 44% and 22%, is allocated to optics. There is a slight trend for the percentage allocated to photoreceptors to increase with Vtot. With the exception of Holcocephala’s fovea, the volumes allocated to photoreceptor arrays lie within or close to the theoretical envelope defined by KE = 0 and KE = 0.16. We conclude that flies generally allocate a larger fraction of eye volume to photoreceptors than to optics to promote the efficiency of their total investment in eye. Thus photoreceptor costs are playing a major role in determining the design and efficiency of flies’ NS eyes.

Fused rhabdom apposition eyes show similar patterns of investment

We investigate diurnal apposition eyes with fused rhabdoms by modifying our NS eye model and comparing theoretical results with empirical data using the procedures developed for NS eyes. The modifications are straightforward. We increase lens F-number to 5.5 and reduce drh to 1.8 µm. These values are in the middle of the wide range found in our sample of apposition eye regions (Table 2). We also adjust the relationship between L and the number of microvilli Nvil to account for a fused rhabdom (Methods). For simplicity we assume that all photoreceptors contribute equal numbers of microvilli along the full length of the rhabdom so that Nvil increases in proportion to the depth of the photoreceptor array.

Measurements of fused-rhabdom apposition eyes, extracted from published sources, 1. Rossel 1979; 2. Labhart and Nilsson, 1995; 3. Menzel et al 1991; 4. Varela and Wiitanen, 1970; 5. Kelber and Somanathan, 2019. Details of measurements are given in supplementary table S1.

We then compare the models’ predictions of the optimum values of L, D, Δϕ, Vo, Vph and Vtot with empirical values extracted from published measurements of D, Δϕ, L and f′, (Table 2). The necessary data is only available from studies of four species, the mantid Tenodera australis (Rossel, 1979), the honeybee Apis mellifera (Kelber & Somanathan, 2019; Menzel et al., 1991; Varela & Wiitanen, 1970), and two species of the Libellulid dragonfly Sympetrum that are so similar that their data are lumped together (Labhart & Nilsson, 1995). These species provide empirical values for 16 eye regions, which span a range of Vtot, from 4.4×107 µm3 sr1 for Apis worker ventral eye to 1.8×1011 µm3 sr1 for Sympetrum dorsal fovea (Figure 6).

Theoretical results from apposition eye models optimised for information capacity compared to empirical data from 16 apposition eye regions taken from 3 species (Table 2). a) D vs specific volume Vtot; b) Δϕ vs Vtot c) L vs Vtot; d) photoreceptor array specific volume Vph as %Vtot vs Vtot. (e & f) Models demonstrate impact of photoreceptor costs and its dependence on total cost, Ctot. e) Photoreceptor cost, Cph, as %Ctot; f) Photoreceptor energy cost as %Cph. Models run with F-number F = 5.5, using COG approximation for acceptance angle (Snyder, 1979) and values of energy tariff KE given in keys.

Looking across our limited sample of fused rhabdom apposition eyes, D increases with Vtot, Δϕ decreases, and L increases from 280 µm to 1100 µm (Figure 6a to c). These empirical values are more widely scattered than those for NS eyes (Figure 5a,b,d), and the discrepancies between empirical and predicted values are larger. We expect a wider scatter because our sample of fused rhabdom eyes is more diverse than our sample of NS eyes, both structurally and phylogenetically. In addition, the scatter is dominated by regional differences within eyes (Figure 6), several of which adapt a region for a specific task. For example, the 1100 µm rhabdomeres of the dragonfly Sympetrum, which are the longest photoreceptive waveguides found in any eye, adapt the fovea for detecting small prey against a bright blue sky by enhancing SNRph (Labhart & Nilsson, 1995). Despite the scatter in data points, fused rhabdom eyes follow the trends seen in NS eyes (Figure 6 c.f. Figure 5). In most eye regions, D and Δϕ are larger than predicted by models optimised for efficiency (Figure 6a,b), so therefore is the eye parameter p. At low Vtot, L lies within the theoretical envelope defined by models run with plausible values of photoreceptor energy tariff, KE. However, at higher specific volumes L falls increasingly short (Figure 6c). As with flies’ NS eyes, large investments are made in photoreceptor arrays. The volume fractions of photoreceptor arrays increase from 33%Vtot to 75%Vtot as Vtot increases, and the majority of values lie between 40%Vtot and 60%Vtot (Figure 6d). Our information maximisation models predict an increase from 33%Vtot to 85%Vtot.

Our models also give the relative contribution of photoreceptor cost to total cost when fused rhabdom apposition eyes are optimised for spatial information capacity. The percentage of total investment devoted to the photoreceptor array increases with the energy tariff KE and climbs steadily with increasing Ctot, from 43% to more than 80% (Figure 6e). As in NS eyes, the contribution of photoreceptor energy consumption to array cost is progressively marginalised by array volume cost as Ctot increases, falling to less than 20% in the largest eyes (Figure 6f).

We conclude that the 16 eye regions in our sample of fused rhabdom apposition eyes are not optimised for spatio-temporal information capacity, at least according to our models. However, the regions exhibit three trends that are associated with efficient resource allocation - rhabdomeres are relatively long, length increases with acuity, and the photoreceptor array occupies a large fraction of eye volume. These trends suggest that, as in NS eyes, resources are being allocated to optics and to photoreceptor array to promote efficiency, consequently photoreceptor costs play a major role in the design of fused-rhabdom apposition eyes.

Patterns of efficient investment are different in simple eyes

To further investigate how investment patterns differ according to eye type, we construct a basic hemispherical model of a simple eye with rhabdomeric photoreceptors (Methods; Figure 7a) that captures the equivalence of D, f′ and Δϕ in apposition and simple eyes (Kirschfeld, 1976). We then follow the procedures described above to see how optimum patterns of investment depend on total investment, Ctot and photoreceptor energy tariff, KE. We consider the same 5 orders of magnitude of total investment, Ctot = 1×106 to 2.5×1011 µm sr1, and for simple eye models this encompasses a 100 fold range of lens diameters, D = 29 µm to 2.9 mm, and focal distances, f′ = 79 µm to 7.9 mm.

Resource allocation in model simple eyes optimised for information capacity compared to optimised model neural superposition apposition eyes (NS). a) Schematic showing apposition eye and simple eye with identical spatial resolution, as defined by lens diameter, D, focal distance f′, rhabdom(ere) diameter drh and rhabdom(ere) length, L (after Kirschfeld, 1976). Note denser packing of photoreceptors inside the simple eye. (b - e) Properties of simple and NS eye models optimised for information capacity in full daylight. b) Photoreceptor length, L vs specific volume Vtot; c) photoreceptor specific volume Vph expressed as %Vtot vs Vtot. d) Photoreceptor investment Cph as %Ctot vs Ctot. e) photoreceptor energy cost as %Ctot vs Ctot. Models use Snyder’s (1979) CoG approximation for acceptance angle.

For each Ctot there is an optimum division of resources between optics and photoreceptors that maximises information capacity. Lopt increases with Vtot, scaling close to (Ctot)1/3 (Figure 7b). Increasing the energy tariff, KE, greatly reduces Lopt without changing this scaling exponent. At any given Ctot and KE, Lopt is much shorter in simple eyes and the difference increases with Ctot from at least 50% shorter at Ctot = 1×106 µm3 sr1 to over 90% shorter at Ctot = 1×109 µm3 sr1. We conclude that, in theory, efficient resource allocation explains why photoreceptors in diurnal simple eyes have much shorter light-sensitive waveguides than photoreceptors in diurnal apposition eyes.

Patterns of investment differ from apposition eyes in other respects (Figure 7). In simple models the optimum volume fraction of the photoreceptor array is insensitive to Ctot whereas in apposition models it increases with Ctot. In addition, a simple eye is much more sensitive to photoreceptor energy consumption. The small energy tariff, KE = 0.04, reduces simple eye array volume from 35%Vtot to 12%Vtot, but has a negligible effect on an NS eye. Raising the tariff to KE = 0.32, reduces the simple eye’s array volume to just 3%Vtot but in apposition models it is always > 30%Vtot. Despite this ten-fold reduction in %Vtot the total resources allocated to photoreceptor array increases from 35% to 57% (Figure 7d) because the relative contribution of photoreceptor energy consumption increases from 40% Ctot to 55%Ctot. Finally, in simple eyes the relative contribution of photoreceptor energy consumption is insensitive to Ctot, but in apposition models it falls steadily with increasing Ctot, to around 5 %Ctot (Figure 7d). This difference between eye types can be attributed to differences in eye geometry (Figure 7a). As Ctot increases, the simple eye maintains its dense packing of photoreceptors but an apposition eye’s photoreceptors become increasingly widely spaced as larger lenses force the boundaries between ommatidia further apart. We conclude that when resources are efficiently allocated, the differences in geometry that define eye type can profoundly influence both the impact of photoreceptor energy consumption on eye morphology and the distribution of costs within an eye.

Information capacity and investment

In all optimised eye models, apposition and simple, the spatio-temporal information capacity Hopt increases sub-linearly with total investment (Figure 8a), making a bit of information more expensive in a larger eye. In simple eyes, Hopt increases as (Ctot)0.8 across the full range of Ctot while in apposition models the exponent is lower, decreasing from 0.6 to 0.5 as Ctot increases. Thus the simple eye model is 10 times more efficient when Ctot = 1×106 µm3 sr1 and approximately 100 times more efficient when Ctot = 1×1011 µm3 sr1. Increasing the photoreceptor energy tariff reduces the efficiency of all eye types, but this effect declines as apposition eye models increase in size (Figure 9b) because, for reasons of geometry, volume costs marginalise photoreceptor energy cost.

Information rate, H v.s. total cost Ctot for simple and apposition model eyes optimised to maximise information capacity in full daylight. a) Rates are higher in simple eyes and more sensitive to photoreceptor energy tariff, KE b) Efficiency, bits per unit specific volume per second, falls less steeply with increasing Ctot in simple eyes. Models use Snyder’s CoG approximation (1979) for acceptance angle.

Discussion

To investigate how the division of resources between an eye’s dioptric apparatus and photoreceptor array influences an eye’s performance, efficiency and design, we introduce a measure of cost, specific volume, that relates the investments made in dioptrics and photoreceptor array to image quality via optical, physiological and geometrical constraints. Because this common currency allows resources to be transferred between dioptrics and photoreceptor array we are able, for the first time, to model performance across the morphospace of eyes of the same total cost (Figure 3). We discover that efficiently configured diurnal apposition eyes should invest heavily in deep photoreceptor arrays with long rhabdomeres and rhabdoms, and match investments in optics and photoreceptor arrays so that rhabdom(ere) length increases with spatial resolution. Our novel analysis of published data shows that the apposition eyes of fast flying diurnal insects conform to these trends. A basic model of a simple (camera) eye shows that, when optimised for efficiency, their rhabdomeres are much shorter than apposition eyes’, nonetheless they invest heavily in photoreceptor arrays because, for reasons of eye geometry, photoreceptor energy costs have more impact. We conclude that when simple and apposition eyes are configured to maximise efficiency the cost of photoreceptor arrays is as significant as the cost of optics. Consequently matching investments in optics and photoreceptor arrays to increase efficiency is an important principle of eye design. Our analysis, the first to account for the costs of both photoreceptors and optics, shows that a simple eye is one to two orders of magnitude more efficient at gathering information than an apposition eye of the same total cost. We now discuss the validity of our methodology, our findings, and their contributions to our understanding of eye design and evolution.

Specific volume is a useful measure of cost

This new measure of cost has several advantages. First, specific volume is defined by dimensions and angles that are measured anatomically and optically (eqtns 1, 2, 5, 6) and relates directly to benefits via optical, geometrical and physiological constraints on spatial acuity and sensitivity. Thus, like previous indicators of cost - eye radius, eye length, pupil area and corneal area (Brandon et al., 2015; Brandon & Dudycha, 2014; Snyder et al., 1977; K. N. Thomas et al., 2020; R. J. Thomas et al., 2004) - specific volume can evaluate investments and trade-offs that adapt eyes for specific purposes. Second, specific volume is more flexible and far reaching than previous indicators of cost because it can be applied to eyes that are not well approximated by solid spheres. Third, it applies to small eye regions. Fourth, it provides a common currency for comparing investments in different eyes, eye regions, and components within an eye (Figures 5, 6 & 7). This facility enables one to investigate how and why resources are distributed across visual fields and, as we demonstrate here, evaluate trade-offs between investments in an eye’s components. Given that biological processes and systems evolve to become more cost-efficient because costs depress fitness (Alexander, 1996; Niven & Laughlin, 2008; G. K. Taylor & Thomas, 2014), we suggest a fifth advantage: specific volume will help us understand how eyes are adapted and evolve.

How well does specific volume represent costs? Volume accurately measures one limiting resource, space, but because there are insufficient data, we have to make assumptions to calculate the costs of energy and materials. Assuming that the densities of an eye’s cells, extracellular materials and fluid-filled cavities are close to 1, space is a reasonable proxy for three costs that increase in proportion to mass: the energy expended carrying an eye (carriage cost), materials, and cellular energy consumption (Witter & Cuthill, 1993).

Equating mass and carriage cost is a reasonable starting point. Experiments on individual animals - a human walker carrying a backpack (Bastien et al., 2005), a flightless ant carrying nectar (Duncan & Lighton, 1994), and a flying beetle carrying a heavy weapon (Goyens et al., 2015) - show that the cost of carrying an additional load is the load’s mass times the individual’s mass specific metabolic rate when moving unloaded.

Turning to the costs of the materials and energy used within the eye, there is no data for an apposition eye’s dioptric apparatus. Nonetheless, its corneal lenses, pigment cells, and cones cells are densely packed with macromolecules, and because their optical function is passive (they refract and absorb) they contain very few, if any, mitochondria. Indeed, the corneal cuticle and the fluid filled pseudo-cone of fly NS eye are extracellular (Hardie, 1985). Thus, the assumption that the costs of materials and energy for the dioptric apparatus increase in fixed proportion to volume is a reasonable starting point.

To support transduction the photoreceptor array has an exceptionally high metabolic rate (Laughlin et al., 1998; Niven et al., 2007; Pangršič et al., 2005). We account for this energy cost by using the animal’s specific metabolic rate (power per unit mass and hence power per unit volume) to convert an array’s power consumption into an equivalent volume (Methods). Photoreceptor ion pumps are the major consumers of energy and the smaller contribution of pigmented glia (Coles, 1989) is included in our calculation of the energy tariff KE (Methods). The higher costs of materials and their turnover in the photoreceptor array can be accounted for by increasing the energy tariff KE, but given the magnitude of the light-gated current (Laughlin et al., 1998), the increase will be small. For want of sufficient data, KE is uncertain, therefore we model a reasonable range of values (Methods). Because the optimum eye configuration is most sensitive to KE in the lower half of this range (Figures 4 & 7), we are unlikely to seriously underestimate the effects of photoreceptor costs on eye morphology and efficiency.

Matching photoreceptor length to spatial acuity

The systematic increase in rhabdomere or rhabdom length, L, with spatial acuity observed in apposition eyes (Figures 1, 5, & 6) and simple eyes (see below), and predicted by our models, is an obvious manifestation of efficient resource allocation (Figures 4, 6 & 7). Two studies of apposition eyes, one of dragonfly and the other of praying mantis (Labhart & Nilsson, 1995; Rossel, 1979), map the covariation of lens diameter, D, interommatidial angle, Δϕ, and rhabdom length, L, across an entire eye. Both show that when acuity is increased by enlarging the dioptric apparatus and increasing ommatidial density, i.e. by reducing Δϕ, L is increased to improve SNRph. In both insects L peaks in a fovea that is used to detect and capture prey, and in dragonfly dorsal fovea the 1.1 mm rhabdomeres (the longest light sensitive waveguides reported in any eye, diurnal or nocturnal) are adapted to improve the detection and localisation of small flying prey (Labhart & Nilsson, 1995; Rigosi et al., 2017). However, specialisation for prey capture is unlikely to explain why L varies systematically with acuity across an entire eye.

We find that the trend to increase rhabdomere length with acuity is more generally advantageous. The trend is widespread: looking across 28 eye regions drawn from 10 species of fast flying insect, L increases with acuity over a 25-fold range of interommatidial angle (Figures 5 & 6). Modelling shows that matching L to acuity improves a general measure of performance, spatial information capacity and the widespread covariation of L and acuity observed in apposition eyes follows the trend predicted by modelling (Figures 5 & 6). Finally, because information capacity captures the interplay between three basic determinants of image quality, Δρ, Δϕ and SNRph, several tasks could benefit from an increase in L with acuity.

Other factors can link L to acuity. One possibility, developmental constraints impose inflexible scaling relationships on apposition eyes, can be dismissed. Scaling changes across apposition compound eyes (Perl & Niven, 2016; Scales & Butler, 2016; G. J. Taylor et al., 2019), and our empirical log-log plots of L v.s. eye volume and L v.s. D continuously change slope (Figure 5d,e), as required for the efficient allocation of resources (Figure 4c). Head size is an obvious constraint: smaller insects have smaller heads, consequently they will tend to have smaller eyes with lower acuity and shorter rhabdom(ere)s. The strongest evidence that lack of headroom reduces the length of photoreceptors comes from the fovea of a small insect, Holcocephala (Wardill et al., 2017), that is adapted for exceptionally high acuity (Table 2; Figure 5d). One must also consider the costs associated with enlarging the head by adding more eye, such as mechanical support, wind resistance, and conspicuousness. We suggest that more comparative studies are required to establish the influence of head size on eye design.

Then there is the difference in L that is so obvious and widespread that it has been accepted without question - L is generally much longer in diurnal apposition eyes than in diurnal simple eyes. Comparing eyes with rhabdomeric photoreceptors, L ranges from 60 µm to 1100 µm in apposition eyes (Table 1), and from 10 µm to 90 µm, in spiders’ simple eyes (Land, 1985). Efficient resource allocation provides an explanation: optimised simple eye models predict that L is approximately x10 shorter than in apposition compound eyes of the same cost (Figure 7b). L also increases with acuity (increasing D and decreasing Δϕ) in optimised simple eye models and there is evidence that this matching occurs in diurnal spiders. L increases with increasing D when comparing eyes in different species (Land, 1985), different eyes in the same individual, and the same eye increasing in size and acuity as a juvenile spider grows to adulthood (Gote et al., 2019). However, models of these spiders’ eyes are needed prove that this co-variation is increasing efficiency. The degree to which the lengthening of cone outer segments in primate fovea (Provis et al., 2013) increases the efficiency of resource utilisation is also an open question. A critical ingredient, a physiological constraint that links investments in outer segments to noise levels in full daylight, has yet to be identified in ciliary photoreceptors. In addition, the economics of eye design are different because photoreceptors compete with neural circuits for resources within the eye (Kröger & Biehlmaier, 2009; Sterling & Laughlin, 2015).

Photoreceptor costs are a major factor in eye design

In apposition eye models optimised for spatio-temporal information capacity more than 40% of total investment, Ctot, is allocated to photoreceptor arrays (Figures 4e, 6e) and, in line with this theoretical finding, our analysis of data from diurnal insects shows that arrays occupy 30% to 75% of eye volume (Figures 5f; 6d). For simple eye models the efficient allocation is 30% to 60% of Ctot (Figure 7d). Our modelling identifies roles for two types of array cost, the rarely considered costs associated with array volume (Baden & Nilsson, 2022; Kirschfeld, 1976; Kröger & Biehlmaier, 2009), and the well-known energy costs associated with phototransduction (Ames, 2000; Fain & Sampath, 2021; Laughlin et al., 1998; Okawa et al., 2008; Pangršič et al., 2005). We find that this energy cost greatly influences the configuration of an efficient eye: increasing the energy tariff KE reduces array depth, L, as much as tenfold (Figures 4c, 5d, 6c & 7b). Reducing L reduces SNRph (eqtn. 4), however the SNRph that remains is obviously worth paying for because the %Ctot allocated to photoreceptor energy consumption increases (Figures 4f & 7e). We conclude that because SNRph is valuable, photoreceptor costs are always significant and this necessitates efficient resource allocation. It follows that photoreceptor costs influence the morphologies of both photoreceptor array and dioptric apparatus because optics and array compete for the resources invested in an eye.

The impact of photoreceptor costs depends on eye type

Photoreceptor energy cost has more impact on both the total cost and the design of a simple eye than an equivalent apposition compound eye because the simple eye has more photoreceptors per unit volume (Figure 7a). Applying our lowest energy tariff, KE =0.04 µm3/microvillus to an optimised apposition eye model has almost no effect on the depth of the photoreceptor array, L, but in the simple model it reduces L by more than 80% and array volume by more than 60% (Figure 7c).

Despite this shrinkage, investment in the simple eye’s photoreceptor array increases from 35 %Ctot to 50% Ctot because energy costs have risen from 30% Ctot to 55% Ctot (Figure 7d). Also, in the simple eye models the percentages of Ctot allocated to the photoreceptor array volume and energy change very little as Ctot increases, whereas in apposition eyes the relative contribution of photoreceptor energy consumption falls steeply as photoreceptors become increasingly widely spaced (Figure 7a). Thus the distribution of costs within an efficiently configured eye changes with eye type, according to the eye’s typical geometry.

Efficiency depends on eye type and photoreceptor energy cost

In both apposition and simple eye models, efficiency decreases with increasing Ctot (Figure 8b), making a bit of information more expensive in a larger eye. The decline in efficiency with increasing eye size is steeper in apposition models, as expected from the well-known scaling relationships enforced by lens diffraction and eye geometry, spatial resolution increases as eye radius, R, in a simple eye and as in an apposition eye (Kirschfeld, 1976). However, as noted above, using R as a measure of investment excludes the contribution of the photoreceptor array. When our more realistic measure of cost, specific volume, is used a Drosophila size apposition eye is 10 times less efficient than a simple eye of the same cost and a dragonfly size eye 100 times less efficient (Figure 8b). Efficiency is also depressed by increasing the photoreceptor energy tariff KE, and in line with the greater impact of photoreceptor energy costs in simple eyes, the reduction in efficiency is much greater in simple eyes (Figure 8b).

Expanding our understanding of apposition eye design

We build on theoretical studies that show how constraints imposed by apposition optics, eye geometry and eye size determine spatial resolution and information capacity when eye radius R, and hence corneal area, represent the limiting resource (Howard & Snyder, 1983; Kirschfeld, 1976; Snyder et al., 1977). Howard & Snyder (1983) introduced the physiological constraint, transduction unit saturation, and showed that it increases the optimum value of eye parameter, p, in bright light by placing a fixed ceiling on SNRph that is equivalent to operating at a lower light level. We extend Howard and Snyder’s (1983) approach by using a measure of cost, specific volume, that allows eye radius R to vary while total cost remains constant. This added realism allows us to raise and lower the SNR ceiling imposed by transduction units by trading investments in rhabdomere length against investments in dioptric apparatus. In so doing we discover that it is advantageous for photoreceptors to lengthen rhabdomeres so as to reduce shot noise. Indeed, in daylight Calliphora vicina R1-6 achieve the lowest level of photoreceptor noise reported to date, an equivalent contrast of 0.0084 (Anderson & Laughlin, 2000). This extreme specialisation resembles Autrum’s proposition that apposition eye photoreceptors compensate for poor spatial resolution by increasing temporal resolution (Autrum, 1958), thereby achieving the highest flicker fusion frequencies known, in excess of 400 Hz (Tatler et al., 2000). Perhaps enhancing photoreceptor performance to compensate for optical inefficiency is a principle of apposition eye design?

Increasing temporal resolution increases photoreceptor energy consumption, so to improve efficiency apposition eye photoreceptors match temporal bandwidth to the properties of the images they form (Laughlin & Weckström, 1993; Niven et al., 2007). Eye regions that have lower spatial resolution and encounter more slowly moving images save energy by reducing photoreceptor bandwidth (Burton et al., 2001). Although this matching makes large energy savings it is not included in our models because, to reduce the burden of establishing proof of principle, we fix photoreceptor bandwidth at the high value measured in a fully light-adapted blowfly. Nonetheless, our models can accommodate the costs and benefits of changing temporal bandwidth because they operate in the frequency domain (Methods). Boosting temporal resolution will be more cost-effective in large apposition eyes because photoreceptor energy costs are marginalised by costs associated with array volume (Figure 4 e,f), therefore investments of energy that increase temporal band-width are increasing the return on the much larger investment in array volume (e.g. carriage cost). Some fast flying diurnal insects with large facet lenses reduce the carriage cost of the photoreceptor array by surrounding each ommatidium with a palisade of air-filled tracheae (Horridge, 1969; Laughlin & McGinness, 1978; Smith & Butler, 1991; Wardill et al., 2017). The volumes and savings involved can be large. Published micrographs of dragonfly dorsal eye (Horridge, 1969) suggest that air fills at least 50% of array cross section.

How efficiently do insects allocate resources within their apposition eyes?

In principle one can establish the efficiency of an insect’s investments by computing the performance surface for model eyes with the same F-number, rhabdom(ere) diameter and total cost, then observing how closely the insect approaches the optimum configuration. We are unable do this because a critical parameter, the photoreceptor energy tariff KE, is not well-established (Methods). Nevertheless, we have two reasons to conclude that flying diurnal insects allocate resources to the optics and photoreceptor arrays of their apposition eyes efficiently. The empirical values we extract from published data lie within or close to the boundaries defined by our theoretical curves (Figure 5 & 6), and the broad high-efficiency zones in performance surfaces allow values to vary considerably, while retaining 95% of maximum information capacity (Figure 3).

Efficient resource allocation is a general principle

Efficient resource allocation is observed at many levels of biological organization, from single molecules to life histories (Bigman & Levy, 2020; Garland et al., 2022; Nijhout & Emlen, 1998; Stearns, 1989). Eyes are no exception. In an apposition eye, optical radius, R, represents corneal surface area per unit solid angle, therefore models that maximise spatial acuity or information capacity at constant R show that corneal area can be allocated to facet lenses to maximise spatial acuity and information capacity by trading spatial resolution for SNR (Snyder, 1977; Snyder et al., 1977). In the POL region of fly NS eye a fixed resource, the number of microvilli in the central rhabdom, is allocated to a pair of photoreceptors, R7 and R8, to increase the efficiency of polarisation coding (Heras & Laughlin, 2017), and in primate eye retinal area is allocated to cone spectral types to increase coding efficiency (Garrigan et al., 2010; Zhang et al., 2022).

Matching the sampling density of the photoreceptor array to lens resolving power (Nilsson & Land, 2012) also allocates the resources invested in photoreceptors more efficiently by avoiding wasteful overcapacity, according to the principle of symmorphosis (Piersma & van Gils, 2011; C. Taylor & Weibel, 1981; Weibel, 2000). How-ever, unlike the matching of L to Δϕ that allocates resources efficiently to optics and photoreceptors, the matching of capacities does not consider the individual cost:benefit functions of a system’s components. When these are taken into account, the allocation of investment that maximises efficiency can instal over-capacity in components with more favourable cost:benefit ratios, as demonstrated for bones in racehorse forelegs (Alexander, 1997) and chains of signalling molecules (Schreiber et al., 2002).

Understanding the adaptive radiation of eyes

The method we introduce here can be developed to view several aspects of eye adaptation and evolution through a cost:benefit lens because it is flexible. Our approach is not wedded to information capacity: it supports other measures of visual performance because it relates investments to fundamental determinants of image quality. Moreover, the method can be applied to several trade-offs that influence eye design by relaxing the simplifying assumptions we make here. To give a concrete example, the trade-offs between acuity and sensitivity that adapt eyes for nocturnal or diurnal vision can be viewed through a cost:benefit lens by allowing F-number and rhabdom(ere) diameter to vary, and by adopting a method that calculates the mean and variance of photon transduction rate on Nvil in rhabdomeres of any given length and variable cross section, at any biologically plausible light intensity (Heras & Laughlin, 2017).

One can also relax the restrictions we place on eye geometry. Our approach does not depend on spherical geometry, it depends on being able to relate the shapes, sizes and constituents of an eye’s components to their costs and performance. Advances in scanning, imaging and digital reconstruction offer opportunities to determine shapes, volumes and constituents directly, and advances in modelling optical and physiological processes are extending our ability to relate these properties to performance (Kim, 2014; Song et al., 2012; Sumner-Rooney et al., 2019; G. J. Taylor et al., 2019). These powerful new methods can take us closer to the goal of understanding of how costs, benefits and innovative mechanisms drive eye evolution (Sumner-Rooney, 2018), and our flexible cost:benefit approach can support this endeavour.

Our approach also identifies factors that contribute to selective pressure, and gauges their effects. For example, the pressure to reduce photoreceptor energy cost depends on a photoreceptor’s impact on an animal’s energy budget. This effect is captured by our photoreceptor energy tariff, KE, because it relates a photoreceptor’s energy consumption to the animal’s metabolic rate (Methods). We also find that photoreceptor energy costs are marginalised when apposition eye size increases and this encourages the use of wide bandwidth, high SNR photoreceptors with high metabolic rates. Most interestingly, the derivation of performance surfaces (Figure 3) reveals a large area, the robust high-performance zone within which an eye’s morphology can be adapted to a particular task while retaining more than 95% of a measure of general-purpose capability, information capacity. This low “loss of opportunity” cost helps to explain the remarkable degree of fine tuning observed in apposition compound eyes (Burton et al., 2001; Land, 1997; Nilsson & Land, 2012; Sumner-Rooney et al., 2019; G. J. Taylor et al., 2019), in line with suggestions that robustness increases evolvability (Drack & Betz, 2022).

Two key steps in the early evolution of eyes were the stacking of photoreceptive membranes to absorb more photons, and the formation of optics to intercept more photons and concentrate them according to angle of incidence (Nilsson, 2013, 2021). Our modelling of extant image forming eyes shows that stacked membranes (rhabdomeres) compete with optics for the resources invested in an eye, and this competition profoundly influences both form and function. It follows that folded membranes competed with optics in ancient eyes, and they too were shaped by the need to allocate resources efficiently. Thus the developmental mechanisms that allocate resources in modern eyes (Casares & McGregor, 2021) by controlling cell size and shape and, as our study emphasises, setting up gradients of shape and size across the eye, might have analogues or homologues in ancient eyes. Their discovery will not only tell us how Nature constructs perfectly contrived instruments, it will illuminate the evolutionary pathway to perfection.

Methods

Calculating a photoreceptor array’s information rate

Our calculations of the rate at which an eye’s photoreceptor array codes achromatic information, in bits per steradian per second, take account of five factors. 1) The statistics of the signals presented to an eye under natural conditions; 2) the blurring of the spatial image by the eye’s dioptric apparatus; 3) the sampling of the spatial image by the photoreceptor array; 4) the introduction of noise by the stochastic activation of a finite population of transduction units and 5) the temporal smoothing of signals and noise during phototransduction. We calculate information rates in the frequency domain using methods developed for apposition eyes (de Ruyter van Steveninck and Laughlin, 1996; Hateren, 1992; Howard and Snyder 1983, Snyder et al. 1977).

Natural intensity signals

We calculate the spatial and temporal power spectra of naturalistic signals using the model established for blowfly (Hateren, 1992). An eye images an ensemble of natural scenes in which power decreases as the square of spatial frequency, as measured and predicted theoretically (Burton and Moorehead, 1987; Hateren, 1992, Ruderman, 1997). Consequently the two dimensional power spectrum of the spatial frequencies viewed by the eye is

The proportionality constant cc is chosen to set the total contrast of the image formed by the eye (defined as the square root of the ratio between the power of the signal and the square of the mean level of signal) to an appropriate value. This contrast depends on the eye that observes the scene. For images spatially filtered by a blowfly compound eye the average contrast, calculated locally over intervals of 25-50 degrees, is 0.4 (Laughlin, 1981). Accordingly we use a proportionality constant that scales the power of frequencies between one cycle per 50 degrees and the upper cut-off frequency dictated by sampling, one cycle per 1.5 degrees, to be (0.4)2 = 0.16.

To add the temporal dimension van Hateren (1992) modelled how the movement of an eye through an ensemble of uniformly distributed objects generates temporal structure. For the case of an eye moving in a straight line, the structure is adequately described by a random distribution of angular speeds

where av(v) is the probability of encountering image speed v, cv is the normalization constant that sets the sum of probabilities over the distribution to 1, and σv is a constant that regulates the width of the distribution. Local movements produced by objects moving within a scene, although acknowledged to be biologically significant, have little impact on the statistics of the signal encountered by an eye moving in a straight line (Hateren, 1992).

Distributions of this form peak at lower speeds and have a long tail that extends to speeds faster than σv. The exact value of σv will depend on the behaviour of the animal. For Calliphora vicina yaw, pitch and roll movements rarely exceed 3.5 rad s1 between saccades (Hateren & Schilstra, 1999). Assuming a similar limit in translational movements, we take σv to be 1 rad s1. In his earlier 1992 paper van Hateren assumed σv is 0.29 rad s1 and noted that the information capacities he calculated are not particularly sensitive to σv.

The three-dimensional power density of naturalistic signals generated by the aforementioned distributions is

where and cc is the proportionality constant used in equation 12. We checked that this distribution retains the local contrast value of 0.4 for different values of the parameter |σv|.

Blurring by the optics

The lens point spread function and the angular sensitivity of the photoreceptor entrance aperture combine to determine photoreceptor angular sensitivity, which in the eyes we consider approximates a Gaussian function of half-width Δρ. The transfer function of this spatial filter is

The lens is diffraction limited and the photoreceptive rhabdomeres and rhabdoms are waveguides, consequently calculating the acceptance angle of this coupled system is a complicated problems of wave optics, especially when, with narrow drh, waveguide effects are significant (Stavenga, 2003a, 2003b, 2004a, 2004b). We employ two expressions for photoreceptor acceptance angle. One is Snyder’s (1979) convolution of Gaussians (CoG) approximation

where λ is the wavelength of light, D is lens diameter, λ/D is the half-width of the Airey disk and Δρr is the angular acceptance of the rhabdomere, taken to be its angular subtense, Δρr = drh/f.

The other is Stavenga’s more principled expression, obtained using his wave optics model (WOM) of larger fly NS eyes (Stavenga, 2004a)

Stavenga’s WOM shows that the coefficient in eqtn.17 reduces progressively as the fly’s longitudinal pupil closes, reaching a minimum of 1.14 when fully closed in full daylight. We use an intermediate value, 1.26, because the pupil closes progressively over the upper two log units of daylight intensity, while holding SNRph close to maximum.

Temporal filtering during phototransduction

A photoreceptor’s elementary response to a single photon, a quantum bump, is generally fitted with functions of the type.

whose Fourier transform is

Thus transduction’s first temporal low pass filter has the form

We use the fit of α = 3.12 measured in Musca (Burton, 2006) and τ = 0.001 s obtained in Calliphora at the highest light intensities (Juusola et al., 1994). According to these values photon shot noise power falls to half-maximum at around 170 Hz.

Following the activation of a microvillus by an absorbed photon the quantum bump is produced with a variable delay. This latency dispersion low-pass filters signals that are composed of many bumps by widening the impulse response. We use the low-pass filter

where αd = 2 (Wong et al., 1980). With τd = 0.0014 s this filter produces a signal corner frequency close to the 55 Hz measured in Calliphora vicina (Anderson & Laughlin, 2000). The trends we observe in our study are not critically dependent on the exact values of these bump parameters.

Sampling

For one dimensional receptor arrays, frequencies will not be correctly sampled above the Nyquist limit (Snyder, 1979)

where ϕ, as defined above, is the sampling angle of the array.

For a two dimensional hexagonal lattice, only frequencies up to can be sampled independently of the orientation of the array (Snyder et al., 1977). These authors also noted that frequencies up to can be sampled for special orientations of the array, however we will assume that the highest spatial frequencies sampled by an array is .

Deriving the signal coded by the array

To obtain the power spectral density of the signal coded by a photoreceptor the natural image signal derived above is spatially filtered by the dioptric apparatus, converted to a stream of shot events, quantum bumps, with mean rate ψ, and temporally filtered during phototransduction. We start with van Hateren’s (1992) expression for the signal coded by a photoreceptor that is transducing photons at a rate ψ

This expression assumes that the photoreceptor signal increases linearly with photon capture rate, as happens at low light levels when the saturation of transduction units is negligible, and signal and noise follow Poisson statistics.

In brighter conditions the saturation of microvilli changes the relationship between transduction rate, ψ and photoreceptor signal ΔS (Howard et al., 1987). The probability that a microvillus generates a signal is given by

where I, the effective intensity, is the rate at which microvilli are absorbing photons, and the cycling time τr is the average time taken to reset a microvillus to its receptive state, following activation by a photon capture (Howard et al., 1987).

The transduction rate is given by

There are some limits to this treatment. Because light intensity decreases along the rhabdom(ere), microvilli in the distal part will, in principle, absorb more photons than microvilli in the proximal part, making it impossible for all microvilli to have the same probability of being active. However, adaptations have been described that partially compensate for this effect by reducing the quantum capture efficiency of distal microvilli (Labhart & Nilsson, 1995).

According to the saturation equation, 24, the light intensity that activates half the microvilli, I50 = Nvilr. Therefore the dependence of transduction rate on I is given by

and

Δψ, the change in ψ produced by a change in intensity, ΔI, is given by

where c is the stimulus contrast (Howard et al., 1987)

Under the condition we model, half-saturation of transduction units, I = 2ψ and . Consequently the photoreceptor signal is

where

In the fly NS eye 6 photoreceptors sample the same point in space, therefore the signal transmitted for each pixel in the array is

Noise

We consider shot noise generated at the first step in the generation of a quantum bump, the absorption of a photon by a rhodopsin molecule in a microvillus that is not currently processing a bump. Noise generated elsewhere in photoreceptors is not incorporated in our model. Assuming that the photon capture rate ψ is never far from its average value, the shot noise power in a single photoreceptor is given by:

where |H(ft)| is the Fourier transform of the quantum bump and the factor 2 takes account of the fact that at half-saturation the statistics of microvillus activation are binomial (Howard et al., 1987).

Substituting from eqtn.20

We assume that the shot noise in different photoreceptors is uncorrelated, therefore the shot noise generated by the 6 photoreceptors coding a pixel is

Because we assume that the shot noise in different photoreceptors is uncorrelated the power spectrum of shot noise, is on average, the same across the photoreceptor array

with the proportionality constant being the inverse of the area in frequency space that is sampled by the photoreceptor array.

Aliasing

When the image projected to the photoreceptor array contains spatial frequencies that are beyond the spatial resolving power of the array, these are aliased to lower frequencies, thereby distorting the sampled image (Snyder et al., 1994). We assume that all aliased spatial frequencies act as noise, shared equally between the correctly sampled spatial frequencies:

Calculating Information

We calculate the spatial information gathered by the photoreceptor array by modifying the formula for a square spatial sampling lattice (Howard & Snyder, 1983). For a hexagonal array, the equation for spatial information has the form

where the array cut-off frequency is . To obtain the factor A, we consider the extreme case where the signal-to-noise ratio is constant across all spatial frequencies, in which case

where is the number of discriminable levels of contrast coded by each ommatidium. The factor multiplying log2[Ni] is the number of ommatidia in a steradian, which for a hexagonal lattice is . Thus . Therefore spatial information capacity per steradian is

We then extend this equation for spatial information capacity to the temporal domain (Hateren, 1992). For a spatio-temporal signal the information capacity is

Inserting signal and noise

Ballpark estimate of the photoreceptor energy tariff

Energy consumed per microvillus

Our estimates are based on high resolution measurements of the oxygen consumed by isolated Calliphora vicina compound eyes, made using a magnetic diver balance (Pangršič et al., 2005). In bright light, an eye consumes 1.8×109 litres of oxygen per second which, converting to the units commonly used to express metabolic rates, is 6.48 mm3 of oxygen per hour. With 5000 ommatidia, 60,000 microvilli in the rhabdomere of a photoreceptor R1-6, and taking the central rhabdom formed by R7 and R7 to be equivalent to a single R1-6, the eye contains 2 × 109 microvilli, giving an oxygen consumption per microvillus in bright light oxygen per microvillus per hour. In darkness the eye’s oxygen consumption drops to one third, giving oxygen per microvillus per hour.

Because these estimates are based on measurements from whole eyes they include consumption by all cell types. There are three reasons why photoreceptors dominate total consumption. First, the values of an eye’s oxygen consumption in light and in darkness are close to the total photoreceptor consumption predicted from elec-trophysiological estimates of the ATP consumed by single photoreceptors (Laughlin et al., 1998; Pangršič et al., 2005). Second, photoreceptors are the compound eye’s most active cells because transducing photons at high light intensities necessarily requires large fluxes of ions and chemical intermediates. Third, to support their activity photoreceptors contain most of a compound eye’s mitochondria.

The rate of oxygen consumption averaged over the course of 24 hrs Ōvil, depends on the hours of daylight, DL

Energy consumed by the fly

To convert the energy consumption of the eye per microvillus into an equivalent volume we should ideally use the animal’s average specific metabolic rate, measured under natural conditions, but to the best of our knowledge this field metabolic rate has not been measured in blowflies. Therefore, we combine a value of the specific metabolic rate in continuous flight that is towards the high end of the range measured in Calliphora, sFMR = 30 mm3 oxygen per mg per hour (Yurkiewicz & Smyth, 1966), with the resting metabolic rate measured in the blowfly Phormia, RMR = 2.6 mm3 oxygen per mg per hour (Keister & Buck, 1961; Niven & Scharlemann, 2005), according the number of hours per day spent flying, TF, to estimate the daily average specific metabolic rate

Estimating the energy tariff, KE

Assuming that the density of the eye is 1

To obtain a plausible range of values we calculate KE in four conditions (Table 3)

Dependence of energy surcharge KE on time spent flying TF and hours of daylight DL, calculated for blowfly.

Note that, as expected, our measure of the impact of photoreceptor energy costs, KE, depends on both the energy consumption per microvillus and the animal’s metabolic rate: KE is increased by increasing daily consumption by photoreceptors and decreased by increasing the animal’s overall metabolic rate by increasing time flying, TF.

Preliminary model of a simple eye

Our generic simple eye model has the same F-number F = 2 as our generic fly NS model, and its rhabdom diameter equals the rhabdomere diameter in in fly drh = 1.9 µm. The simple eye is hemispherical (Figure 7a), therefore the specific volume of optics is given by

and with a photoreceptor array with rhabdoms of length L, the total specific volume of the eye is given by

and the specific volume of the photoreceptor array by

The receptor spacing, Δϕ, depends on the lens focal length, f and drh,

This is an important difference between simple eyes and apposition eyes. In apposition eyes model Δϕ is can be varied at constant f and D by changing the optical radius R. However, in a simple eye with a diffraction limited lens the relationship between the optical resolving power of the lens and the anatomical resolving power of the photoreceptor mosaic depends on F-number, F, as follows (Snyder, 1979). For a hexagonal mosaic of photoreceptors the diffraction limit is reached when

When λ, the wavelength of light is 500 nm, and drh = 2 µm, then F = 6.9. It follows that our model simple eye with F = 2 is undersampling by a factor of approximately 3.5. Running our simple eye model with F = 4 had very little effect on the optimum L (data not shown), suggesting that our conclusion that efficient simple eyes have much shorter rhabdoms than efficient apposition eyes is robust with respect to undersampling.

Calculating Nvil as a function of L

We estimate v, the number of microvilli per unit length of rhabdomere, for our NS eye model using findings from photorevceptors R1-6 in female blowflies. Dividing the number of microvilli in a rhabdomere, 6×104 (Howard et al., 1987), by L = 260 µm, which is towards the upper end of the range L = 220 µm - 280 µm reported for blowfly (Hardie, 1985), gives v = 230 µm1. Although fly rhabdomeres vary in both diameter and degree of taper according to eye region, sex and species, and this sculpting adapts photoreceptor arrays to visual ecology, e.g.(Gonzalez-Bellido et al., 2011), we fix v to simplify the derivation of points of principle.

For our generic model of a fused rhabdom apposition eye we consider a column of six photoreceptors that, like the short visual fibres R1-6 in fly, terminate in the first optic neuropile. Their six rhabdomeres form the triradiate rhabdom described in locust (Wilson et al., 1978). This fused rhabdom has a cross-section that approximates an equilateral triangle in which each side is constructed by a pair photoreceptors whose parallel microvilli are equivalent to a single fly R1-6 rhabdomere. Thus each pixel is coded by a set of six rhabdomeres that are equivalent to three fly R1-6 rhabdomeres. Therefore, the number of transduction units coding a pixel is half that in fly and the resulting changes in signal and noise are simply accounted for by replacing the factor (3ψ)2 in equation 29 with , and 3ψ in equations 33 and 34 with .

For our generic model of a diurnal simple eye we assume that, as in spiders, the rhabdomeres of adjacent photoreceptors abut; i.e. there are no gaps between photoreceptors, therefore a photoreceptor’s rhabdomeres project from a central column of cytoplasm. To compare with our apposition models we assume that the diameter of the photoreceptor entrance aperture, drh = 1.9 µm and contains microvilli projecting in three directions. In this case, the simple eye photoreceptor is equivalent to the triradiate fused rhabdom.

Authors’ contributions

FJHH and SBL conceived of the project, FJHH developed, constructed, programmed and ran the models, FJHH and SBL applied the models, curated and analysed published data, and wrote the paper. FJHH’s contributions were made while he was a member of the University of Cambridge.

Acknowledgements

We are grateful to Doekele Stavenga for his expert advice on optics, to Jeremy Niven for his advice during the project and his comments on the manuscript, and to Daniel Osorio and James Herbert-Read for their comments on the manuscript.

Funding

Francisco Heras was supported by a La Caixa Postgraduate Scholarship and a Caja-Madrid Postgraduate Scholarship. Simon Laughlin was supported by an honorarium from H. Britton Sanderford. The funders had no role in study design, data collection and analysis, the decision to publish, and the preparation of the manuscript.