This is a simple test app to find a sane way to draw a complex scene

We want to draw the scene using as few GPU batches as possible

Please see for the question with a +500 bounty!
(use C to sort-by-colour and Z to sort-by-Z, X to not sort before draw, Y to not use a quad-tree and press the key again to reverse the data submitted to the quadTree)
Fork me on GitHub Sorry, you don't have webGL enabled :(