Beispiel #1
0
        void ExecuteFlushJob(ref NarrowPhaseFlushJob job, BufferPool threadPool)
        {
            switch (job.Type)
            {
            case NarrowPhaseFlushJobType.RemoveConstraintsFromBodyLists:
                ConstraintRemover.RemoveConstraintsFromBodyLists();
                break;

            case NarrowPhaseFlushJobType.ReturnConstraintHandles:
                ConstraintRemover.ReturnConstraintHandles(deterministic, threadPool);
                break;

            case NarrowPhaseFlushJobType.RemoveConstraintFromBatchReferencedHandles:
                ConstraintRemover.RemoveConstraintsFromBatchReferencedHandles();
                break;

            case NarrowPhaseFlushJobType.RemoveConstraintFromTypeBatch:
                ConstraintRemover.RemoveConstraintsFromTypeBatch(job.Index);
                break;

            case NarrowPhaseFlushJobType.FlushPairCacheChanges:
                PairCache.FlushMappingChanges();
                break;
            }
        }
Beispiel #2
0
        void ExecuteFlushJob(ref NarrowPhaseFlushJob job)
        {
            switch (job.Type)
            {
            case NarrowPhaseFlushJobType.UpdateConstraintBookkeeping:
                ConstraintRemover.UpdateConstraintBookkeeping(deterministic);
                break;

            case NarrowPhaseFlushJobType.RemoveConstraintFromTypeBatch:
                ConstraintRemover.RemoveConstraintsFromTypeBatch(job.Index);
                break;

            case NarrowPhaseFlushJobType.FlushPairCacheChanges:
                PairCache.FlushMappingChanges();
                break;
            }
        }