A play around with ray tracing and optimisation