Use an LRUHashMap to store scene models, as per TODO.

(Note: this doesn't compile, because the actionscript libs are jacked.
 I'll try to sort that out now.)


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@867 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Ray Greenwell
2009-08-21 21:11:55 +00:00
parent 8c14879fdb
commit 2f1a7a627b
@@ -24,8 +24,8 @@ package com.threerings.whirled.client {
import flash.errors.IOError;
import flash.errors.IllegalOperationError;
import com.threerings.util.HashMap;
import com.threerings.util.Log;
import com.threerings.util.LRUHashMap;
import com.threerings.util.ResultListener;
import com.threerings.io.TypedArray;
@@ -558,7 +558,7 @@ public class SceneDirector extends BasicDirector
protected var _fact :SceneFactory;
/** A cache of scene model information. */
protected var _scache :HashMap = new HashMap(); // TODO: LRUHashMap(5)
protected var _scache :LRUHashMap = new LRUHashMap(5);
/** The display scene object for the scene we currently occupy. */
protected var _scene :Scene;