Tags: ebitengine/oto
Tags
.github/workflows: skip tests for Windows Updates #259
oto: stop suspending and resuming when the machine is slept on macOS This logic was introduced for hajimehoshi/ebiten#1259, but now this seems no longer needed. Rather, this logic caused unexpected resuming. Updates hajimehoshi/ebiten#3297
internal/mux: optimize memory re-use by using one buffer pool for all… … players. (#265) This way different player instances can re-use memory buffers. This helps keeping the allocation rate low and reduces gc. Sharing is fine under the assumption that after a short while all buffers are at least as large as we currently need them to be. If we get a buffer from the pool that is smaller than the current required buffer size, we'll alloc a bigger buffer and return that one into the pool. Next time, we'll probably get a buffer of the correct size. We now also share the p.buf buffer between players. If a player is stopped or has reached eof, the buffer is put back into the pool. In total, this change helps to reduce the allocation rate (and in turn garbage pressure) when playing a lot of short lived sound effects, and it does not hinder long running playback.
internal/mux: do not put back an old buffer Theoretically, it is possible to put an old-sized buffer to the pool. Closes #258
PreviousNext