tgmeow / guitar-hero-visualization

Visualizes the Guitar Hero Project
0 stars 0 forks source link

Key bindings are currently O(n) performance #2

Closed tgmeow closed 6 years ago

tgmeow commented 6 years ago

Try to shift to a HashMap key->function call for O(1) key mapping performance. However, this runs into other issues with object access. This should simplify listener pattern settings changes.

Future: Settings change updates the corresponding abstract callback event object. (Remove old from Hash, insert new)

Dependencies:

3 Create abstract callback event object with trigger event function

4 Change the StringManagerComponent into a singleton for better object accessibility

tgmeow commented 6 years ago

Was also fixed with 02307c6bcf575ef373d8f72ffb4b17c90eaae457.