# Huge playback lags on Switch

**URL:** <https://qa.fmod.com/t/huge-playback-lags-on-switch/15433>\
**Category:** Unreal Engine\
**Created:** [February 3, 2020, 4:05pm UTC](https://qa.fmod.com/t/huge-playback-lags-on-switch/15433 "2020-02-03T16:05:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![KrzysztofSiewiorek\_T](https://avatars.discourse-cdn.com/v4/letter/k/7c8e57/32.png) [@KrzysztofSiewiorek\_T](https://qa.fmod.com/u/KrzysztofSiewiorek_T)\
**Post date:** [February 3, 2020, 4:05pm UTC](https://qa.fmod.com/t/huge-playback-lags-on-switch/15433/1 "2020-02-03T16:05:00Z")

</div>

We are using FMOD on our switch project. We have an issue of huuge lags on loading/playing audio samples in some situation. When the sample is not being used for a long time, or it is supposed to be played for the first time, or right after streaming some big samples ( like music ), samples are being played with a big lag. Sometimes it’s even like 5-7s. I thought that maybe it’s IO issue, but after turning off streaming on everything exept music it’s still thesame.

Any ideas what might cause the issue ?  
Thanks!

---

<div class="post-metadata">

**Author:** ![KrzysztofSiewiorek\_T](https://avatars.discourse-cdn.com/v4/letter/k/7c8e57/32.png) [@KrzysztofSiewiorek\_T](https://qa.fmod.com/u/KrzysztofSiewiorek_T)\
**Post date:** [February 5, 2020, 9:41am UTC](https://qa.fmod.com/t/huge-playback-lags-on-switch/15433/2 "2020-02-05T09:41:46Z")

</div>

Resising Initial Audio Memory Poll Size to 128Mb, overriding Compression Time Threshold to 5sec, and changing codec do Vorbis halped a lot - but not totaly. There is still some playback lag - specially when playing sound for the first time. It happens to be up to 0.3-0.5s.  
We would still like to have it as it should be.

---

<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:** [February 13, 2020, 4:23am UTC](https://qa.fmod.com/t/huge-playback-lags-on-switch/15433/3 "2020-02-13T04:23:59Z")

</div>

Have you tried using the Studio Profiler to see what is causing the issue?  
[https://www.fmod.com/resources/documentation-studio?version=2.0&page=profiling.html](https://www.fmod.com/resources/documentation-studio?version=2.0&page=profiling.html)

It sounds like it could be caused by sample data loading at the time the event is being played, for non-streaming assets you can load the sample data ahead of time to avoid the loading delays.  
[https://www.fmod.com/resources/documentation-api?version=2.0&page=studio-guide.html#sample-data-loading](https://www.fmod.com/resources/documentation-api?version=2.0&page=studio-guide.html#sample-data-loading)

---

<div class="post-metadata">

**Author:** ![mgalach](https://avatars.discourse-cdn.com/v4/letter/m/94ad74/32.png) [@mgalach](https://qa.fmod.com/u/mgalach)\
**Post date:** [February 13, 2020, 10:14am UTC](https://qa.fmod.com/t/huge-playback-lags-on-switch/15433/4 "2020-02-13T10:14:24Z")

</div>

I had same issue on 20006 on PS4 even if all sample data was loaded, updating to 20007 fixed this for some reason, but it was not mentioned in changelog.
