Beispiel #1
0
        public void FreeBaselines()
        {
            if (Baseline != null)
            {
                Baseline.ReleaseRefrence();
                Baseline = null;
            }

            BaselineUpdateTick = -1;
            BaselineUsed       = 0;
        }
Beispiel #2
0
        public void SetSnapshot(FrameSnapshot snapshot)
        {
            if (_snapshot == snapshot)
            {
                return;
            }

            if (snapshot != null)
            {
                snapshot.AddRefrence();
            }

            if (_snapshot != null)
            {
                _snapshot.ReleaseRefrence();
            }

            _snapshot = snapshot;
        }