|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.threed.jpct.Virtualizer
public class Virtualizer
A Virtualizer can help to save memory by storing data on disk instead of
using the VM memory. If you want to use this feature, make sure that the app
can access the disk and that enough space is available. Then assign an
instance of this class to the TextureManager or an Object3D. For textures,
call TextureManager.virtualize(Texture) on those textures that should be
swapped to disk.
Creating a new instance of this will clean all previously stored data from
disk. If you want to reuse the affected data anyway, you'll run into
trouble...
It's mandatory to set the current context by calling setContext(Context)
before assigning it to anything.
Constructor Summary | |
---|---|
Virtualizer()
Creates a new instance of the Virtualizer with no maximum size. |
|
Virtualizer(int sizeInMb)
Creates a new instance of the Virtualizer with an estimated maximum size. |
Method Summary | |
---|---|
void |
cleanUp()
Cleans up the Virtualizer. |
void |
finalize()
|
void |
setContext(Context ctx)
Sets the context. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Virtualizer(int sizeInMb)
sizeInMb
- the maximum size. It might exceed this size, but not by a huge
amount.public Virtualizer()
Method Detail |
---|
public void setContext(Context ctx)
ctx
- the contextpublic void cleanUp()
public void finalize()
finalize
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |