From a02d076d8e7381f2b650b02bce7563bdaed037fd Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Wed, 15 Oct 2003 23:20:40 +0000 Subject: [PATCH] Tone down the max path length, when searching for a path in unresolved space, it ends up considering up to 10,000 nodes with a max path length of 50 which causes the client to hang for like 5 seconds. Not so good. With a max path length of 20, that comes down to about 1,300 nodes which ends up being non-linearly faster. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2825 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/java/com/threerings/miso/client/MisoScenePanel.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/java/com/threerings/miso/client/MisoScenePanel.java b/src/java/com/threerings/miso/client/MisoScenePanel.java index 1835bdaa9..9c965c06b 100644 --- a/src/java/com/threerings/miso/client/MisoScenePanel.java +++ b/src/java/com/threerings/miso/client/MisoScenePanel.java @@ -1,5 +1,5 @@ // -// $Id: MisoScenePanel.java,v 1.50 2003/09/08 18:42:38 mdb Exp $ +// $Id: MisoScenePanel.java,v 1.51 2003/10/15 23:20:40 mdb Exp $ package com.threerings.miso.client; @@ -250,7 +250,7 @@ public class MisoScenePanel extends VirtualMediaPanel Point dest = MisoUtil.screenToTile(_metrics, x, y, new Point()); // TODO: compute this value from the screen size or something - int longestPath = 50; + int longestPath = 20; // get a reasonable tile path through the scene long start = System.currentTimeMillis();