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
This commit is contained in:
Michael Bayne
2003-10-15 23:20:40 +00:00
parent ba52e3cfa4
commit a02d076d8e
@@ -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();