High-rate Modeling and Computing for Optical Systems---Gigapixel Image Formation and X-ray Imaging Physics