Optimize mover rendering and segment plan pipeline

This commit is contained in:
scamiv
2026-05-27 14:33:29 +02:00
parent 83a8dc00e4
commit 0a96ab8e30
17 changed files with 939 additions and 377 deletions
+2 -2
View File
@@ -3,7 +3,7 @@ import { PathFinderStepper } from "../src/core/pathfinding/PathFinderStepper";
import { PathStatus } from "../src/core/pathfinding/types";
describe("PathFinderStepper cache priming", () => {
it("does not prime next() cache via findPath()", () => {
it("primes next() cache via findPath()", () => {
let calls = 0;
const finder = {
findPath(from: number | number[], to: number) {
@@ -29,6 +29,6 @@ describe("PathFinderStepper cache priming", () => {
if (r1.status === PathStatus.NEXT) {
expect(r1.node).toBe(to);
}
expect(calls).toBe(2);
expect(calls).toBe(1);
});
});