mirror of
https://github.com/jcreek/CosmicClash.git
synced 2026-09-11 00:14:00 +00:00
7b086fbd8f
_apply_team_color() allocated a fresh StandardMaterial3D on every call, and ran at least twice per ship (once from _ready at the default team, once from the team setter when the game mode assigns the real team). Cache one StandardMaterial3D per team in a static dict on Ship and reuse it across every ship on that team.