Sorted the texture generation and done a few more optimisations on the memory side.
A reminder that the demo is now a separate project at :