Speedup: new renderer

This pull request is here so that I don't forget about it.

WIP, please ask before merging.