Optimize GC for RMV pool.
This commit is contained in:
@@ -219,7 +219,7 @@ namespace Cryville.Crtr.Event {
|
||||
if (!CachedValues.TryGetValue(key, out tr))
|
||||
CachedValues.Add(key, tr = new CacheEntry { Valid = false });
|
||||
if (tr.Value == null)
|
||||
tr.Value = (Vector)ReflectionHelper.InvokeEmptyConstructor(ChartPlayer.motionRegistry[key].Type);
|
||||
tr.Value = RMVPool.Rent(key).AbsoluteValue;
|
||||
Vector r = tr.Value;
|
||||
#if !DISABLE_CACHE
|
||||
if (tr.Valid) return r;
|
||||
|
Reference in New Issue
Block a user