예제 #1
0
        private void PlayBackInit(EntityMap localEntityMap, EntityMap remoteEntityMapLeft)
        {
            diffHandler.init();

            var localEntityMapClone = PlayBackEntityMap.Allocate(false);

            localEntityMapClone.AddAll(infoProvider.LocalEntityMap);
            lastLeftPlaybackSnapshotServerTime = infoProvider.InterpolationInfo.LeftServerTime;
            try
            {
                SingletonManager.Get <DurationHelp>().ProfileStart(CustomProfilerStep.PlaybackInit1);
                EntityMapCompareExecutor.Diff(localEntityMapClone, remoteEntityMapLeft, diffHandler, "playbackInit",
                                              compareAgent.Init(diffHandler, infoProvider.InterpolationInfo, localEntityMap));
                RefCounterRecycler.Instance.ReleaseReference(localEntityMapClone);
            }
            finally
            {
                SingletonManager.Get <DurationHelp>().ProfileEnd(CustomProfilerStep.PlaybackInit1);
            }
        }
예제 #2
0
        private void PlayBackInit(EntityMap localEntityMap, EntityMap remoteEntityMapLeft)
        {
            PlaybackDiffHandler diffDiffHandler = _diffDiffHandler.init();

            var localEntityMapClone = PlayBackEntityMap.Allocate(false);

            localEntityMapClone.AddAll(_infoProvider.LocalEntityMap);
            _lastLeftPlayBackSnapshot = _infoProvider.InterpolationInfo.LeftServerTime;
            try
            {
                SingletonManager.Get <DurationHelp>().ProfileStart(CustomProfilerStep.PlaybackInit1);
                EntityMapComparator.Diff(localEntityMapClone, remoteEntityMapLeft, diffDiffHandler,
                                         "playbackInit",
                                         _diffComparator.Init(diffDiffHandler, _infoProvider.InterpolationInfo, localEntityMap));
                localEntityMapClone.ReleaseReference();
            }
            finally
            {
                SingletonManager.Get <DurationHelp>().ProfileEnd(CustomProfilerStep.PlaybackInit1);
            }
        }