18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-12-01 19:57:06 +01:00
Files
maszyna/world
jerrrrycho 18d1c58994 perf(world): FastGetTFromS reads the curve's t and slope of a point side by side
TSegment kept the curve parameter t at equal steps of s (fTsBuffer) and the Hermite slopes at the same
points (fTsSlope) in two vectors, and FastGetTFromS(), called for every axle of every vehicle on every
step, read [i] and [i + 1] of both: four loads from two separate allocations. The two now go together in
one vector of {t, slope} (fTs), so the interpolation touches one or two cache lines. The values and the
arithmetic, in the same order, are unchanged.

Tomaszewo (raj40821) 600 s in --test, seed 12345: FastGetTFromS was 1.2% of the main thread; sim 259.7 s
median of 3 (255.0-271.3) against 268.3 s (262.5-279.2) before, which is about the run-to-run spread.
The 14 physics logs and the event log are byte-identical, unit tests 1205/1205 with exact golden traces.
2026-11-30 04:20:18 +01:00
..
2026-11-29 16:55:25 +01:00