mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-18 09:54: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;
|
private readonly string _basicLayer;
|
||||||
public readonly LayerList Layers;
|
public readonly LayerList Layers;
|
||||||
private readonly IEcsPipelineConfigWriter _config;
|
private readonly IEcsPipelineConfigWriter _config;
|
||||||
|
private EcsProfilerMarker _buildBarker = new EcsProfilerMarker("Build Marker");
|
||||||
|
|
||||||
public IEcsPipelineConfigWriter Config
|
public IEcsPipelineConfigWriter Config
|
||||||
{
|
{
|
||||||
get { return _config; }
|
get { return _config; }
|
||||||
}
|
}
|
||||||
public Builder(IEcsPipelineConfigWriter config = null)
|
public Builder(IEcsPipelineConfigWriter config = null)
|
||||||
{
|
{
|
||||||
|
_buildBarker.Begin();
|
||||||
if (config == null)
|
if (config == null)
|
||||||
{
|
{
|
||||||
config = new EcsPipelineConfig();
|
config = new EcsPipelineConfig();
|
||||||
@ -240,6 +243,7 @@ namespace DCFApixels.DragonECS
|
|||||||
if (_systems.TryGetValue(item, out var list))
|
if (_systems.TryGetValue(item, out var list))
|
||||||
result.AddRange(list);
|
result.AddRange(list);
|
||||||
}
|
}
|
||||||
|
_buildBarker.End();
|
||||||
return new EcsPipeline(_config.GetPipelineConfig(), result.ToArray());
|
return new EcsPipeline(_config.GetPipelineConfig(), result.ToArray());
|
||||||
}
|
}
|
||||||
public class LayerList : IEnumerable<string>
|
public class LayerList : IEnumerable<string>
|
||||||
|
Loading…
Reference in New Issue
Block a user