Changed static allocation to dynamic allocation to prevent stack frame allocation errors
Added some debug messages
Reverted for actual purpose
only renders one entity to better evaluate performance
Merge origin/master