Geometry loader working

Changed the renderloop.