pmndrs / racing-game

🏎 Open source racing game developed by everyone willing
https://racing.pmnd.rs/
MIT License
2.13k stars 171 forks source link

[Refactor] Separate Sounds #177

Closed bjornstar closed 3 years ago

bjornstar commented 3 years ago

I noticed on a low end system the horn could get quite delayed. This PR attempts to improve responsiveness of the sound effects by separating them into individual components. The trade-off is more boilerplate.

vercel[bot] commented 3 years ago

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/pmndrs/racing-game/6nWwHzDV96B1reEC3VEGzHNHF4w1
✅ Preview: https://racing-game-git-fork-bjornstar-fix-sounds-pmndrs.vercel.app