daily update on 20230724 by nitload youmu, bigM128map added

This commit is contained in:
Nitload
2023-07-24 22:50:19 +08:00
parent 80cdd610ce
commit e11c88b051
135 changed files with 1733 additions and 9965 deletions
+9
View File
@@ -1,4 +1,6 @@
using StgSharp.Control;
using StgSharp.Math;
using System;
namespace StgSharp
{
@@ -25,5 +27,12 @@ namespace StgSharp
{
}
internal static void InitM128map(Pool target)
{
M128Map map = new M128Map();
TimeLine.GetCurrentPool()._m128mapContainer.Add(map);
}
}
}
+30
View File
@@ -1,5 +1,6 @@
using StgSharp.Control;
using StgSharp.Logic;
using StgSharp.Math;
namespace StgSharp
{
@@ -17,5 +18,34 @@ namespace StgSharp
/**/
}
internal static M128Map GetAvailabem128map()
{
Pool p = TimeLine.GetCurrentPool();
M128Map lastMap = p._m128mapContainer.Tail;
if (lastMap.isFull)
{
lastMap = new M128Map();
p._m128mapContainer.Add(lastMap);
}
return lastMap;
}
internal static long GetAvailableM128ptr()
{
Pool p = TimeLine.GetCurrentPool();
M128Map lastMap = p._m128mapContainer.Tail;
if (lastMap.isFull)
{
lastMap = new M128Map();
p._m128mapContainer.Add(lastMap);
}
long ptr = lastMap.RegistManagedM128Ptr();
return ptr;
}
}
}
+1 -1
View File
@@ -6,7 +6,7 @@ namespace StgSharp.Control
{
public static void Point(Point p)
{
TimeLine._currentPool._pointContainer.Remove(p);
}
+2
View File
@@ -7,6 +7,8 @@ namespace StgSharp.Control
{
public static class TimeLine
{
public const long version = 10;
[AllowNull]
internal static Pool _currentPool = default;
internal static LinkedList<Pool> allPool = new LinkedList<Pool>();