Hey everyone,
I’ve been running into some issues with audio playback and wanted to see what best practices you all follow for managing sounds efficiently.
Right now, I’m experiencing occasional sound lag, especially when the same audio file gets triggered multiple times simultaneously. I’ve already tried preloading all my sounds into RAM to avoid runtime loading delays, which helped a bit, but the lag still happens in some cases.
So I’m wondering, are there recommended approaches for handling multiple instances of the same sound without causing lag?
Also, I’d like some advice on automatic weapon audio.
like, for something like an automatic gun, is it better to use a single-shot sample and loop it while firing? Or should I use a longer, continuous recording of the firing sound instead?
Any tips, optimization strategies, or common pitfalls to avoid would be really helpful. Thanks in advance!