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:
Charlie Groves
2008-06-06 21:15:05 +00:00
parent 97c5206983
commit 7d613a999a
2 changed files with 17 additions and 0 deletions
@@ -50,6 +50,15 @@ import static com.threerings.cast.Log.log;
public class CharacterManager
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.
*/
@@ -36,6 +36,14 @@ import com.threerings.resource.ResourceManager;
*/
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)
{
super(rmgr, icreator);