Beispiel #1
0
        /// <inheritdoc />
        public override void Update(ref SharedUpdateData sharedData)
        {
            _mainChart.AddSample(sharedData.Stats.UpdateTimeMs);

            // Gather CPU events
            var events = sharedData.GetEventsCPU();

            if (_events == null)
            {
                _events = new SamplesBuffer <ProfilingTools.ThreadStats[]>();
            }
            _events.Add(events);
        }
Beispiel #2
0
        /// <inheritdoc />
        public override void Update(ref SharedUpdateData sharedData)
        {
            // Gather GPU events
            var data = sharedData.GetEventsGPU();

            if (_events == null)
            {
                _events = new SamplesBuffer <ProfilerGPU.Event[]>();
            }
            _events.Add(data);

            // Peek draw time
            _drawTimeCPU.AddSample(sharedData.Stats.DrawCPUTimeMs);
            _drawTimeGPU.AddSample(sharedData.Stats.DrawGPUTimeMs);
        }