The influence of resource variability on aquatic communities