protected override void Update(GameTime gameTime) { PerformanceManager.StartStopwatch(PerformanceStopwatchType.GlobalUpdate); HandleKeyboardInputs(); base.Update(gameTime); if (Pause && !_computeNextFrame) { return; } Camera.Update(gameTime); ScreenManager.Update(gameTime); GuiManager.Update(gameTime); if (!GameManager.EndGame()) { SpriteBatchManager.Update(gameTime); } GameManager.Update(gameTime); PerformanceManager.StartStopwatch(PerformanceStopwatchType.PerformanceManagerUpdate); PerformanceManager.StopStopwatch(PerformanceStopwatchType.GlobalUpdate); PerformanceManager.StopStopwatch(PerformanceStopwatchType.PerformanceManagerUpdate); PerformanceManager.Update(gameTime); }
public ActionResult EditEntity(PerformanceInfo model) { if (!ModelState.IsValid) { return(Json( new OperateResult { content = Model.Utility.GetModelStateErrors(ModelState), }, JsonRequestBehavior.AllowGet )); } OperateResult or = PerformanceManager.Update(model); return(Json(or, JsonRequestBehavior.AllowGet)); }