     @resizeView()
     @generateTriangles()
 
+    # If paused, we have to call it ourselves here
+    frame @draw if Session.get('backgroundPaused') and @autorunHandle
+
     return # Make sure CoffeeScript does not return anything
 
   resizeView: =>


    return # To not have CoffeeScript return a result of for loop

  draw: (time) =>
    return unless @renderer


    if Session.get 'backgroundPaused'
      # Remember the time when we were paused
      @pausedTime = time
      if not @autorunHandle # autorunHandle is set if we are calling this from resize while paused
        # And react to the change of backgroundPaused
        @autorunHandle = Deps.autorun =>
          unless Session.get 'backgroundPaused'
            # Cleanup after resume
            @autorunHandle.stop()
            @autorunHandle = null
            # Restart the loop
            frame @draw
      return

    frame @draw
