internal DualProfilerSource(string name, int len) : base() { this.sink = new Sink(name, len); this.name = name; this.scenes = new ProfilerSource(LoadingManager.instance.m_loadingProfilerScenes, sink); this.assets = new LineSource(sink, () => true); }
internal void SetProgress(float min, float max, int assetsCount, int assetsTotal, int beginMillis, int nowMillis) { minProgress = min; maxProgress = max; if (assetsCount > 0 && nowMillis > beginMillis) { LineSource loader = LoaderSource; loader.Add(string.Concat(assetsCount.ToString(), " / ", assetsTotal.ToString())); loader.Add(string.Concat((assetsCount * 1000f / (nowMillis - beginMillis)).ToString("G3"), " / sec")); } }