运行时缓存优化
This commit is contained in:
@@ -63,9 +63,9 @@ namespace Demo.Game
|
||||
{
|
||||
Entries.Sort((x, y) => x.TimePoint.CompareTo(y.TimePoint));
|
||||
CompiledEntries = new(
|
||||
new NativeArray<float>(Entries.Count, Allocator.Persistent),
|
||||
new NativeArray<DataType>(Entries.Count, Allocator.Persistent),
|
||||
new NativeArray<MathExtension.EaseCurveType>(Entries.Count, Allocator.Persistent),
|
||||
new NativeArray<float>(Entries.Count, Allocator.Persistent, NativeArrayOptions.UninitializedMemory),
|
||||
new NativeArray<DataType>(Entries.Count, Allocator.Persistent, NativeArrayOptions.UninitializedMemory),
|
||||
new NativeArray<MathExtension.EaseCurveType>(Entries.Count, Allocator.Persistent, NativeArrayOptions.UninitializedMemory),
|
||||
Entries.Count
|
||||
);
|
||||
int index = 0;
|
||||
|
||||
Reference in New Issue
Block a user