Allow cache sizes to be set programatically
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@527 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
@@ -50,6 +50,15 @@ import static com.threerings.cast.Log.log;
|
|||||||
public class CharacterManager
|
public class CharacterManager
|
||||||
implements DirectionCodes
|
implements DirectionCodes
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* Sets the size of the cache used for composited animation frames. This must be called before
|
||||||
|
* the CharacterManager is created.
|
||||||
|
*/
|
||||||
|
public static void setCacheSize (int cacheKilobytes)
|
||||||
|
{
|
||||||
|
_cacheSize.setValue(cacheKilobytes);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs the character manager.
|
* Constructs the character manager.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -36,6 +36,14 @@ import com.threerings.resource.ResourceManager;
|
|||||||
*/
|
*/
|
||||||
public class ClientImageManager extends ImageManager
|
public class ClientImageManager extends ImageManager
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* Sets the size of the image cache. This must be called before the ImageManager is created.
|
||||||
|
*/
|
||||||
|
public static void setCacheSize (int cacheKilobytes)
|
||||||
|
{
|
||||||
|
_cacheSize.setValue(cacheKilobytes);
|
||||||
|
}
|
||||||
|
|
||||||
public ClientImageManager (ResourceManager rmgr, OptimalImageCreator icreator)
|
public ClientImageManager (ResourceManager rmgr, OptimalImageCreator icreator)
|
||||||
{
|
{
|
||||||
super(rmgr, icreator);
|
super(rmgr, icreator);
|
||||||
|
|||||||
Reference in New Issue
Block a user