Added some fancy optimisations for rendering
rendering is kinda threaded now