# Buffer Starvation warning in Unity

**URL:** <https://qa.fmod.com/t/buffer-starvation-warning-in-unity/15242>\
**Category:** Unity\
**Created:** [November 22, 2019, 3:56am UTC](https://qa.fmod.com/t/buffer-starvation-warning-in-unity/15242 "2019-11-22T03:56:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![FishEyes95](https://avatars.discourse-cdn.com/v4/letter/f/8c91f0/32.png) [@FishEyes95](https://qa.fmod.com/u/FishEyes95)\
**Post date:** [November 22, 2019, 3:56am UTC](https://qa.fmod.com/t/buffer-starvation-warning-in-unity/15242/1 "2019-11-22T03:56:34Z")

</div>

Hi there,

I’m struggling with this warning that I am getting in my Unity project. Does anyone know how to ‘get more bytes’? This is currently using a lot of my CPU with only a handful of sound elements playing at once.

[FMOD] OutputRingBuffer::read : Buffer starvation detected, requested 2048 bytes, 0 / 16384 bytes available.

UnityEngine.Debug:LogWarning(Object)  
FMODUnity.RuntimeManager:DEBUG\_CALLBACK(DEBUG\_FLAGS, StringWrapper, Int32, StringWrapper, StringWrapper) (at Assets/Plugins/FMOD/RuntimeManager.cs:33)

---

<div class="post-metadata">

**Author:** ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)\
**Post date:** [November 27, 2019, 4:31am UTC](https://qa.fmod.com/t/buffer-starvation-warning-in-unity/15242/2 "2019-11-27T04:31:08Z")

</div>

> [@FishEyes95](#):
>
> [FMOD] OutputRingBuffer::read : Buffer starvation detected, requested 2048 bytes, 0 / 16384 bytes available.

This is a symptom of an issue, the mixer isn’t being fed enough data to produce sound consistently. This is likely due to the high CPU usage and/or if there is any lagging/freezing.

What exactly is using up all the CPU?

---

<div class="post-metadata">

**Author:** ![FishEyes95](https://avatars.discourse-cdn.com/v4/letter/f/8c91f0/32.png) [@FishEyes95](https://qa.fmod.com/u/FishEyes95)\
**Post date:** [November 27, 2019, 8:26am UTC](https://qa.fmod.com/t/buffer-starvation-warning-in-unity/15242/3 "2019-11-27T08:26:10Z")

</div>

Hi Cameron,

Thanks for getting back to me.

Currently, I have 2 separate events running simultaneously. Each event has 3 separate ambisonic WAV files (compressed and very small - only around 350kb per file) that I have volume automation on event orientation and elevation parameters.

Cheers,

---

<div class="post-metadata">

**Author:** ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)\
**Post date:** [November 28, 2019, 12:05am UTC](https://qa.fmod.com/t/buffer-starvation-warning-in-unity/15242/4 "2019-11-28T00:05:39Z")

</div>

What are you using to measure the CPU usage? Unity has a built in profiler you can use for your game and FMOD Studio has a profiler you can use for the audio.

---

<div class="post-metadata">

**Author:** ![xushunwang](https://avatars.discourse-cdn.com/v4/letter/x/e495f1/32.png) [@xushunwang](https://qa.fmod.com/u/xushunwang)\
**Post date:** [August 2, 2021, 2:45am UTC](https://qa.fmod.com/t/buffer-starvation-warning-in-unity/15242/5 "2021-08-02T02:45:51Z")

</div>

Hey，did you solved the problem?  
I’m encountering the same thing with fmod 2.00.18
