daily uodate on 20231208 by nitload youmu, preparation for multi thread rendering

This commit is contained in:
Nitload
2023-12-08 05:36:04 +08:00
parent ae804553ce
commit ab85c1a9fe
297 changed files with 157896 additions and 5170 deletions
+1 -40
View File
@@ -5,48 +5,9 @@ using StgSharp.Math;
namespace StgSharp
{
public static unsafe partial class Control
public static unsafe partial class Operation
{
public static LinkedList<T> GetAllActivatedPool<T>() where T : Pool
{
/**/
LinkedList<T> pool = new LinkedList<T>();
foreach (Pool item in TimeLine.allPool)
{
pool.Add((T)item);
}
return pool;
/**/
}
internal static Vector4Map GetAvailabeVector4map()
{
Pool p = TimeLine.GetCurrentPool();
Vector4Map lastMap = p._Vector4mapContainer.Tail;
if (lastMap.isFull)
{
lastMap = new Vector4Map();
p._Vector4mapContainer.Add(lastMap);
}
return lastMap;
}
internal static long GetAvailableVector4ptr()
{
Pool p = TimeLine.GetCurrentPool();
Vector4Map lastMap = p._Vector4mapContainer.Tail;
if (lastMap.isFull)
{
lastMap = new Vector4Map();
p._Vector4mapContainer.Add(lastMap);
}
long ptr = lastMap.RegistManagedVector4Ptr();
return ptr;
}
/// <summary>
/// Get the status of a certain key on the keyboard.