Optimize some code, and fix up dust stack rendering (colour) once and for all