Skip to content

Conversation

@deanlee
Copy link
Contributor

@deanlee deanlee commented Nov 21, 2025

This PR speeds up matrix computation in mici/AugmentedRoadView by improving caching in _calc_frame_matrix.

Performance Impact

mici/AugmentedRoadView/_calc_frame_matrix was a top-10 CPU hotspot in profile_onroad.py
By using cache keys and avoiding redundant numpy calculations, the function now runs about 4× faster.

Metric Before PR After PR Change
tottime $0.125 \text{ s}$ $0.031 \text{ s}$ -75.2%
cumtime $0.253 \text{ s}$ $0.054 \text{ s}$ -78.6%

@github-actions github-actions bot added the ui label Nov 21, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Nov 21, 2025

raylib UI Preview

All Screenshots

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant