 //    view.drawableDepthFormat = .Format24
     view.drawableStencilFormat = .Format8
     
+    lastTime = startTime
     self.setupGL()
     self.setupSocket()
+    
+    
   }
   
   func setupSocket()

  // MARK: - GLKView and GLKViewController delegate methods
  
  func update() {
    let aspect = fabsf(Float(self.view.bounds.size.width / self.view.bounds.size.height))
    let drawWidth = display?.screenWidth ?? 1.0
    let drawHeight = display?.screenHeight ?? 1.0

  }
  func websocketDidReceiveMessage(socket: WebSocket, text: String)
  {
    // Just assign the data now, we don't need to update more than frame rate
    latestSocketData = text
  }
  
  func websocketDidReceiveData(socket: WebSocket, data: NSData)
