Visual cortical function and energy usage are largely maintained in female mice under food restriction, while they are robustly reduced in males.