Bobo1239 / java-universal-tween-engine

Automatically exported from code.google.com/p/java-universal-tween-engine
0 stars 0 forks source link

Add a way to set the initial size of tweens/pool arrays #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
E.g. a new TweenManager(int size) constructor and Tween.setPoolSize(int size). 
Currently both are hardcoded at 20.

Original issue reported on code.google.com by Thotep on 31 Oct 2011 at 10:56

GoogleCodeExporter commented 9 years ago
It may be interesting to avoid array resizing during gameplay, especially on 
embedded devices. I need to find a way to include this while keeping the API 
quite simple.

Original comment by aurelien.ribon on 2 Nov 2011 at 8:41

GoogleCodeExporter commented 9 years ago
Fixed. Added ensureCapacity() method to Tween.java (as static) and 
TweenManager.java

Original comment by aurelien.ribon on 2 Nov 2011 at 10:19