-
Notifications
You must be signed in to change notification settings - Fork 115
@PooledWeaver
DaanVanYperen edited this page Dec 27, 2014
·
21 revisions
Automatically rewrite components so that instances are recycled.
This feature helps mitigate garbage collection related freezes and stuttering on the Android platform.
Processing of @PooledWeaver
annotated components is done by the maven plugin or by running the Command Line Tool.
###What you type:
@PooledWeaver
public class ExampleComponent extends Component {
public float x;
public float y;
public String someObject;
}
###What the JVM gets:
public class ExampleComponent extends PooledComponent {
public float x;
public float y;
public String someObject;
protected void reset() {
x = 0;
y = 0;
// non-primitive types are left intact (someObject)
}
}
- Overview
- Concepts
- Getting Started
- Using
- More guides
- Plugins
- Game Gallery
- Tools and Frameworks
- API reference