Example #1
0
        IEnumerator Loop()
        {
            var sveltoEngines = new SortedDoofusesEnginesExecutionGroup(_enginesToTick);

            JobHandle jobs = default;

            while (true)
            {
                //Engines are executed in ordered fashion exploiting the Svelto ISequenceOrder pattern
                jobs = sveltoEngines.Execute(jobs);

                yield return(Yield.It);
            }
        }
Example #2
0
        IEnumerator Loop()
        {
            var sveltoEngines = new SortedDoofusesEnginesExecutionGroup(_enginesToTick);

            JobHandle jobs = default;

            while (true)
            {
                //Engines are executed in ordered fashion exploiting the Svelto ISequenceOrder pattern
                jobs = sveltoEngines.Execute(jobs);

                jobs.Complete(); //Job Sync Point

                _scheduler.SubmitEntities();

                yield return(Yield.It);
            }
        }