dev-jjjjjeong-bin / Invaders-SDP

3 stars 15 forks source link

[REQUEST] Slight rework of the way sounds are played in the game #71

Open Guicha opened 1 week ago

Guicha commented 1 week ago

[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