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:
@@ -24,8 +24,8 @@ package com.threerings.whirled.client {
|
|||||||
import flash.errors.IOError;
|
import flash.errors.IOError;
|
||||||
import flash.errors.IllegalOperationError;
|
import flash.errors.IllegalOperationError;
|
||||||
|
|
||||||
import com.threerings.util.HashMap;
|
|
||||||
import com.threerings.util.Log;
|
import com.threerings.util.Log;
|
||||||
|
import com.threerings.util.LRUHashMap;
|
||||||
import com.threerings.util.ResultListener;
|
import com.threerings.util.ResultListener;
|
||||||
|
|
||||||
import com.threerings.io.TypedArray;
|
import com.threerings.io.TypedArray;
|
||||||
@@ -558,7 +558,7 @@ public class SceneDirector extends BasicDirector
|
|||||||
protected var _fact :SceneFactory;
|
protected var _fact :SceneFactory;
|
||||||
|
|
||||||
/** A cache of scene model information. */
|
/** 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. */
|
/** The display scene object for the scene we currently occupy. */
|
||||||
protected var _scene :Scene;
|
protected var _scene :Scene;
|
||||||
|
|||||||
Reference in New Issue
Block a user