mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-18 18:14:37 +08:00
Update EcsDebug.cs
This commit is contained in:
parent
94a99e3121
commit
d636d94549
@ -98,7 +98,7 @@ namespace DCFApixels.DragonECS
|
||||
|
||||
public static Action<DebugService> OnServiceChanged = delegate { };
|
||||
|
||||
private IntDispenser _idDispenser = new IntDispenser(-1);
|
||||
private IdDispenser _idDispenser = new IdDispenser(4, -1);
|
||||
private Dictionary<string, int> _nameIdTable = new Dictionary<string, int>();
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
@ -110,7 +110,7 @@ namespace DCFApixels.DragonECS
|
||||
int id;
|
||||
if (!_nameIdTable.TryGetValue(name, out id))
|
||||
{
|
||||
id = _idDispenser.GetFree();
|
||||
id = _idDispenser.UseFree();
|
||||
_nameIdTable.Add(name, id);
|
||||
}
|
||||
OnNewProfilerMark(id, name);
|
||||
|
Loading…
Reference in New Issue
Block a user