Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
possible optimization: sidebar movement tooltip loads all known terrain types #4283
An inefficient bit of code that I've found while refactoring the terrain code: to find the list of basic terrains (the ones which are used for defining movetypes), the sidebar tries to load all terrains that the user has ever encountered, even ones that are campaign-specific. This happens many times (probably every time a unit is selected).