protected override void OnUpdate() { try { Profiler.BeginSample("GetMessages"); worker.GetMessages(); Profiler.EndSample(); var diff = worker.Diff; Profiler.BeginSample("ApplyDiff ECS"); ecsViewSystem.ApplyDiff(diff); Profiler.EndSample(); Profiler.BeginSample("ApplyDiff Entity"); entitySystem.ApplyDiff(diff); Profiler.EndSample(); Profiler.BeginSample("ApplyDiff View"); view.ApplyDiff(diff); Profiler.EndSample(); } catch (Exception e) { worker.LogDispatcher.HandleLog(LogType.Exception, new LogEvent("Exception:") .WithException(e)); } }
protected override void OnUpdate() { try { worker.GetMessages(); var diff = worker.Diff; ecsViewSystem.ApplyDiff(diff); entitySystem.ApplyDiff(diff); view.ApplyDiff(diff); } catch (Exception e) { worker.LogDispatcher.HandleLog(LogType.Exception, new LogEvent("Exception:") .WithException(e)); } }