mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-18 01:44:35 +08:00
add build EcsPipeline profiler marker
This commit is contained in:
parent
53259a92db
commit
e55dfbb23d
@ -170,12 +170,15 @@ namespace DCFApixels.DragonECS
|
||||
private readonly string _basicLayer;
|
||||
public readonly LayerList Layers;
|
||||
private readonly IEcsPipelineConfigWriter _config;
|
||||
private EcsProfilerMarker _buildBarker = new EcsProfilerMarker("Build Marker");
|
||||
|
||||
public IEcsPipelineConfigWriter Config
|
||||
{
|
||||
get { return _config; }
|
||||
}
|
||||
public Builder(IEcsPipelineConfigWriter config = null)
|
||||
{
|
||||
_buildBarker.Begin();
|
||||
if (config == null)
|
||||
{
|
||||
config = new EcsPipelineConfig();
|
||||
@ -240,6 +243,7 @@ namespace DCFApixels.DragonECS
|
||||
if (_systems.TryGetValue(item, out var list))
|
||||
result.AddRange(list);
|
||||
}
|
||||
_buildBarker.End();
|
||||
return new EcsPipeline(_config.GetPipelineConfig(), result.ToArray());
|
||||
}
|
||||
public class LayerList : IEnumerable<string>
|
||||
|
Loading…
Reference in New Issue
Block a user