I’ve been working on a game which requires thousands of very small images (20^20 px) to be rendered and rotated each frame. A sample snippet is provided. I’ve used every trick I know to speed it up to increase frame rates but I suspect there are other things I can do to optimise this. Current optimisations include: Replacing save/restore with