Add live spatial weight tuning

This commit is contained in:
2026-06-26 21:34:17 -05:00
parent c525c1edf9
commit 9966cf8272
4 changed files with 218 additions and 8 deletions
+9
View File
@@ -81,6 +81,15 @@ Active build note:
`GPSEdgeCost` (`0x44f838`), samples a generated traffic-lane spatial grid
using the search-state coordinates, and applies highway/road/pavement
multipliers to returned edge costs.
- When the spatial patch is enabled, the plugin hot-reloads
`spatial_weights.bin` from the same directory as the DLL. The file is exactly
five little-endian float32 values in this order:
`highway`, `road`, `GPSOnly`, `pavement`, `unknown`.
- `tools/write_spatial_weights.py` writes that file directly, or can generate
named preset files under `work/spatial-weights/` for live copy-over testing.
The prepared presets are:
`vanilla`, `current`, `highway-free`, `highway-expensive`, and
`surface-extreme`.
- The old verbose local-search probe is still available behind
`kEnableGpsLocalSearchHooks`. It hooks `GPSSearch` (`0x44f054`),
`GPSResolveHandle` (`0x44e1a8`), `GPSEdgeCost` (`0x44f838`), and the two