Sebaestschjin / gloomhaven-campaign-manager

Simplify the management of your Gloomhaven campaign progress in Tabletop Simulator.
MIT License
7 stars 5 forks source link

Improve performance of creating a save file #82

Closed Sebaestschjin closed 3 years ago

Sebaestschjin commented 3 years ago

Checking ability cards for characters is very slow. All objects in a player's zone are checeked with different pattern matchings and calculating the levenshtein distance to known abilties. This makes the whole save process very slow especially in a 4 player game. It would be nice to have a different way of identifying ability cards. One approach might be to tag abilities cards at load. During load it's clear with decks from the character boxes are abilty cards as their decks are always named the same. This wouldn't effect first saves, but would all subsequent saves much faster. Maybe another approach for the first save can be found as well.