소스 검색

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;
 	}
 }