From 2f1a7a627bb9856b9fbb10d0c0c5de65b2c41a5d Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Fri, 21 Aug 2009 21:11:55 +0000 Subject: [PATCH] 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 --- src/as/com/threerings/whirled/client/SceneDirector.as | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/as/com/threerings/whirled/client/SceneDirector.as b/src/as/com/threerings/whirled/client/SceneDirector.as index 3f3ddb00..5bbcf991 100644 --- a/src/as/com/threerings/whirled/client/SceneDirector.as +++ b/src/as/com/threerings/whirled/client/SceneDirector.as @@ -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;