posted an update

Performance Improvement!

Over the summer, Vance and I re-designed Catan Companion's approach to manipulating hexagon intersections. During the hackathon, I had pushed for a design that would simplify the code needed to draw the tiles to the screen. Unfortunately, this came with a significant performance tradeoff when calculating which hexagons form intersections with each other. The result was that choosing the best starting intersection could take several seconds on older hardware. Not good.\ To remedy this, we looked into existing solutions to hexagon management, mostly from RedBlobGames.com. We ended up implementing an axial coordinate system that allowed us to find a straightforward relationship between intersection and hexagon coordinates. Now, constructing the favorability of each intersection and choosing a starting location takes very little time.

Log in or sign up for Devpost to join the conversation.