Simple optimisations and perspective projection fix.