Project

General

Profile

Actions

Feature #2439

open

Cache pathfinding results between calls

Added by Sweet Tea Dorminy 1 day ago. Updated 1 day ago.

Status:
New
Priority:
Normal
Category:
Server
Target version:
-
Start date:
11/02/2026
Due date:
% Done:

0%

Estimated time:

Description

Currently, pathfinding is not reused between calls. This is particularly inefficient in late-game big maps, e.g. Europe around T250,
where assess_danger()'s pathfinding can take 1m/turn.

This patch adds a generation counter, allowing pathfinding caching, which will be used in the next tickets; on my saves, the combination reduces time taken by about 90%.


Files

Actions

Also available in: Atom PDF