private void processProfileSystem(SystemProfiler profiler, BaseSystem system) { if (profiler != null) profiler.start(); system.process(); if (profiler != null) profiler.stop(); }
private void processProfileSystem(SystemProfiler profiler, BaseSystem system) { if (profiler != null) profiler.start(); system.process(); if (profiler != null) profiler.stop(); }
/** * Processes all systems in order. * <p> * Should guarantee artemis is in a sane state using calls to #updateEntityStates * before each call to a system, and after the last system has been called, or if no * systems have been called at all. */ @Override protected void process() { BaseSystem[] systemsData = systems.getData(); for (int i = 0, s = systems.size(); s > i; i++) { if (disabled.get(i)) continue; updateEntityStates(); systemsData[i].process(); } updateEntityStates(); } }
/** * Processes all systems in order. * * Should guarantee artemis is in a sane state using calls to #updateEntityStates * before each call to a system, and after the last system has been called, or if no * systems have been called at all. */ @Override protected void process() { Object[] systemsData = systems.getData(); for (int i = 0, s = systems.size(); s > i; i++) { if (disabled.get(i)) continue; updateEntityStates(); ((BaseSystem)systemsData[i]).process(); } updateEntityStates(); } }
/** * Processes all systems in order. * <p> * Should guarantee artemis is in a sane state using calls to #updateEntityStates * before each call to a system, and after the last system has been called, or if no * systems have been called at all. */ @Override protected void process() { BaseSystem[] systemsData = systems.getData(); for (int i = 0, s = systems.size(); s > i; i++) { if (disabled.get(i)) continue; updateEntityStates(); systemsData[i].process(); } updateEntityStates(); } }