mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-18 01:44:35 +08:00
remove EcsProfilerMarker from EcsWhereExecutor
This commit is contained in:
parent
29f656f394
commit
8aac055712
@ -16,7 +16,7 @@ namespace DCFApixels.DragonECS
|
|||||||
private long _lastWorldVersion;
|
private long _lastWorldVersion;
|
||||||
|
|
||||||
#if (DEBUG && !DISABLE_DEBUG) || ENABLE_DRAGONECS_ASSERT_CHEKS
|
#if (DEBUG && !DISABLE_DEBUG) || ENABLE_DRAGONECS_ASSERT_CHEKS
|
||||||
private readonly EcsProfilerMarker _executeMarker = new EcsProfilerMarker("Where");
|
//private readonly EcsProfilerMarker _executeMarker = new EcsProfilerMarker("Where");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#region Properties
|
#region Properties
|
||||||
@ -51,7 +51,7 @@ namespace DCFApixels.DragonECS
|
|||||||
public EcsSpan ExecuteFor(EcsSpan span)
|
public EcsSpan ExecuteFor(EcsSpan span)
|
||||||
{
|
{
|
||||||
#if (DEBUG && !DISABLE_DEBUG) || ENABLE_DRAGONECS_ASSERT_CHEKS
|
#if (DEBUG && !DISABLE_DEBUG) || ENABLE_DRAGONECS_ASSERT_CHEKS
|
||||||
_executeMarker.Begin();
|
//_executeMarker.Begin();
|
||||||
if (span.IsNull) throw new System.ArgumentNullException();//TODO составить текст исключения.
|
if (span.IsNull) throw new System.ArgumentNullException();//TODO составить текст исключения.
|
||||||
if (span.WorldID != WorldID) throw new System.ArgumentException();//TODO составить текст исключения.
|
if (span.WorldID != WorldID) throw new System.ArgumentException();//TODO составить текст исключения.
|
||||||
#endif
|
#endif
|
||||||
@ -67,7 +67,7 @@ namespace DCFApixels.DragonECS
|
|||||||
result = new EcsSpan(WorldID, _filteredEntities, _filteredEntitiesCount);
|
result = new EcsSpan(WorldID, _filteredEntities, _filteredEntitiesCount);
|
||||||
}
|
}
|
||||||
#if (DEBUG && !DISABLE_DEBUG) || ENABLE_DRAGONECS_ASSERT_CHEKS
|
#if (DEBUG && !DISABLE_DEBUG) || ENABLE_DRAGONECS_ASSERT_CHEKS
|
||||||
_executeMarker.End();
|
//_executeMarker.End();
|
||||||
#endif
|
#endif
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user