[REQUEST] Slight rework of the way sounds are played in the game
Note
It is not a critical issue nor a highly important request, but we feel like it's a good practice to write the most efficient code possible.
Summary
We think it would be interesting to slightly rework the way sounds are played in the game. At present, each sound effect is loaded from disk each time it is called up, which is not very optimized. It might make more sense to load and store all sound effects when the game starts up, and play them once they've been called up without having to reload them from disk. This would significantly boost performance.
TODO
Load the sound files at the start of the program
Store them (in an array or a dictionnary for instance)
Simply reach for the sound in the array when you want to play it
[REQUEST] Slight rework of the way sounds are played in the game
Note
It is not a critical issue nor a highly important request, but we feel like it's a good practice to write the most efficient code possible.
Summary
We think it would be interesting to slightly rework the way sounds are played in the game. At present, each sound effect is loaded from disk each time it is called up, which is not very optimized. It might make more sense to load and store all sound effects when the game starts up, and play them once they've been called up without having to reload them from disk. This would significantly boost performance.
TODO