瀏覽代碼

Remove arbitrary lastUse increment. Consequence was to dispose a maximum of one buffer from each pool each second.

clementlandrin 1 年之前
父節點
當前提交
bdcff72d12
共有 1 個文件被更改,包括 0 次插入1 次删除
  1. 0 1
      hxd/impl/CacheAllocator.hx

+ 0 - 1
hxd/impl/CacheAllocator.hx

@@ -34,7 +34,6 @@ private class Cache<T> {
 		if( b == null ) b = disposed.pop();
 		if( b == null ) return false;
 		if( onDispose != null ) onDispose(b);
-		lastUse += 1;
 		return true;
 	}
 }