Skip to content

Commit e102294

Browse files
fix: update default maxLoop to 1000 and reduce debugTime to 1 for improved performance
1 parent 49ca521 commit e102294

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/pathFinder.test.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ test('PathFinder default tunables match spec', () =>
2020
{
2121
const pf = new PathFinder(vec2(5, 5));
2222
assert.equal(pf.heuristicWeight, 1);
23-
assert.equal(pf.maxLoop, 500);
23+
assert.equal(pf.maxLoop, 1e3);
2424
assert.equal(pf.smoothPath, true);
2525
assert.equal(pf.debug, false);
26-
assert.equal(pf.debugTime, 2);
26+
assert.equal(pf.debugTime, 1);
2727
});
2828

2929
test('PathFinder.buildNodeData populates walkable=true for all cells by default', () =>

0 commit comments

Comments
 (0)