       $("#arbitrary-info-canvas").show()
 
       @resize()
-      #render hack to avoid flickering
-      @renderer.setSize(constants.WIDTH, constants.WIDTH)
       # start the rendering loop
       @animate()
       # Dont forget to handle window resizing!

      @container.width(@width)
      @container.height(@height)

      @resize()

  setRouteClippingDistance : (value) =>


    return


  # throttle resize to avoid annoying flickering
  resizeThrottled : ->

    @resizeThrottled = _.throttle(
      => @resize()
      500
    )
    @resizeThrottled()


  # Call this after the canvas was resized to fix the viewport
  # Needs to be bound
  resize : =>

    @width  = @container.width()
    @height = @container.height()

    @renderer.setSize(@width, @height)

    @camera.aspect = @width / @height
    @camera.updateProjectionMatrix()
