# Loading delay exceeded - even with preloaded sample data

**URL:** <https://qa.fmod.com/t/loading-delay-exceeded-even-with-preloaded-sample-data/22510>\
**Category:** Unity\
**Created:** [January 16, 2025, 12:24am UTC](https://qa.fmod.com/t/loading-delay-exceeded-even-with-preloaded-sample-data/22510 "2025-01-16T00:24:33Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![VoodooDetective](https://avatars.discourse-cdn.com/v4/letter/v/ecc23a/32.png) [@VoodooDetective](https://qa.fmod.com/u/VoodooDetective)\
**Post date:** [January 16, 2025, 12:24am UTC](https://qa.fmod.com/t/loading-delay-exceeded-even-with-preloaded-sample-data/22510/1 "2025-01-16T00:24:33Z")

</div>

I’m calling:  
RuntimeManager.LoadBank(“bank name”, true);

And still getting this error message:

> [FMOD] SoundSourceInstrumentInstance::startChannelIfReady : Loading delay exceeded, sound may play at incorrect time
> 
> UnityEngine.Debug:LogWarning (object)  
> FMODUnity.RuntimeUtils:DebugLogWarning (string) (at Assets/Plugins/FMOD/src/RuntimeUtils.cs:578)  
> FMODUnity.RuntimeManager:DEBUG\_CALLBACK (FMOD.DEBUG\_FLAGS,intptr,int,intptr,intptr) (at Assets/Plugins/FMOD/src/RuntimeManager.cs:108)

What could cause this warning message even with bank samples preloaded?

---

<div class="post-metadata">

**Author:** ![Leah\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/leah_fmod/32/3685_2.png) [@Leah\_FMOD](https://qa.fmod.com/u/Leah_FMOD)\
**Post date:** [January 17, 2025, 2:32am UTC](https://qa.fmod.com/t/loading-delay-exceeded-even-with-preloaded-sample-data/22510/2 "2025-01-17T02:32:39Z")

</div>

Hi,

Assuming all sample data is loading ahead of time correctly, this warning would usually be caused by issues when creating and playing FMOD Sound objects via the Core API, either directly or when using programmer instrument callbacks. This is especially likely when playing large files that are separate from the already loaded banks.

Could I get the following info from you?

- Your Unity version
- Your FMOD for Unity plugin version
- Your FMOD Studio version
- Whether you’re directly creating and playing sounds via the Core API, or making use of programmer instruments - if you’re using programmer instruments, whether you’re playing loose files, or files from an audio table
- In FMOD for Unity’s settings, set your [logging level](https://www.fmod.com/docs/2.02/unity/settings.html#logging-level) to “Log”, enable [API error logging](https://www.fmod.com/docs/2.02/unity/settings.html#enable-api-error-logging), and share a full log from Unity where the issue occurs

---

<div class="post-metadata">

**Author:** ![VoodooDetective](https://avatars.discourse-cdn.com/v4/letter/v/ecc23a/32.png) [@VoodooDetective](https://qa.fmod.com/u/VoodooDetective)\
**Post date:** [January 17, 2025, 7:11am UTC](https://qa.fmod.com/t/loading-delay-exceeded-even-with-preloaded-sample-data/22510/3 "2025-01-17T07:11:52Z")

</div>

Thanks for the response!

1. Unity 6000.0.28f1
2. FMOD Plugin 2.02.25
3. FMOD Studio 2.02.25
4. We’re using RuntimeManager.CreateInstance(/\* guid here \*/); from the unity plugin to create an instance and then call .start() and .release(). These are not programmer instruments.
5. Will do. I’ve attached the editor log.

[Editor copy.log](https://qa.fmod.com/uploads/short-url/owScfLnDmb2xHIAwM7yobRaqNJB.log) (418.7 KB)

---

<div class="post-metadata">

**Author:** ![VoodooDetective](https://avatars.discourse-cdn.com/v4/letter/v/ecc23a/32.png) [@VoodooDetective](https://qa.fmod.com/u/VoodooDetective)\
**Post date:** [January 21, 2025, 8:27pm UTC](https://qa.fmod.com/t/loading-delay-exceeded-even-with-preloaded-sample-data/22510/4 "2025-01-21T20:27:20Z")

</div>

@Leah_FMOD Is there anything else I could collect that would be helpful?

---

<div class="post-metadata">

**Author:** ![Leah\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/leah_fmod/32/3685_2.png) [@Leah\_FMOD](https://qa.fmod.com/u/Leah_FMOD)\
**Post date:** [January 22, 2025, 4:42am UTC](https://qa.fmod.com/t/loading-delay-exceeded-even-with-preloaded-sample-data/22510/5 "2025-01-22T04:42:21Z")

</div>

Thanks for the info and log!

There’s nothing that stands out in the log that indicates why you might be running into the warning, as all sound loading seems pretty standard, and there’s no concerning errors or logs besides the “ERR\_INVALID\_HANDLE” ones which don’t necessarily point to anything specific.

Are you hearing any audible issues when receiving the warnings, for example, any extra latency or artifacting? Also, could I get you to connect your Unity project or built game to FMOD Studio via [live update](https://www.fmod.com/docs/2.02/studio/editing-during-live-update.html), record a [profiler session](https://www.fmod.com/docs/2.02/studio/profiling.html#recording-a-new-session) in which the warning occurs, [package it with all options enabled](https://www.fmod.com/docs/2.02/studio/profiling.html#managing-sessions), and upload it to your [FMOD user profile](https://www.fmod.com/profile#uploads) for me to take a closer look?

---

<div class="post-metadata">

**Author:** ![VoodooDetective](https://avatars.discourse-cdn.com/v4/letter/v/ecc23a/32.png) [@VoodooDetective](https://qa.fmod.com/u/VoodooDetective)\
**Post date:** [January 22, 2025, 7:17pm UTC](https://qa.fmod.com/t/loading-delay-exceeded-even-with-preloaded-sample-data/22510/6 "2025-01-22T19:17:17Z")

</div>

Sure thing! I’ve just uploaded that to my profile. It’s called “Debugging.fspackage”

I’m not hearing any audible issues. Maybe the sounds are playing just a hair late? It’s hard to tell. No artifacting.

Please let me know if I can provide any further information. Thanks so much for your help! @Leah_FMOD

---

<div class="post-metadata">

**Author:** ![VoodooDetective](https://avatars.discourse-cdn.com/v4/letter/v/ecc23a/32.png) [@VoodooDetective](https://qa.fmod.com/u/VoodooDetective)\
**Post date:** [January 27, 2025, 6:06pm UTC](https://qa.fmod.com/t/loading-delay-exceeded-even-with-preloaded-sample-data/22510/7 "2025-01-27T18:06:58Z")

</div>

Hey @Leah_FMOD, I just wanted to make sure that upload worked OK. Did that come in?

---

<div class="post-metadata">

**Author:** ![Leah\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/leah_fmod/32/3685_2.png) [@Leah\_FMOD](https://qa.fmod.com/u/Leah_FMOD)\
**Post date:** [January 28, 2025, 2:36am UTC](https://qa.fmod.com/t/loading-delay-exceeded-even-with-preloaded-sample-data/22510/8 "2025-01-28T02:36:51Z")

</div>

Apologies - I’ve got your upload. I’ll take a look and get back to you soon.

---

<div class="post-metadata">

**Author:** ![VoodooDetective](https://avatars.discourse-cdn.com/v4/letter/v/ecc23a/32.png) [@VoodooDetective](https://qa.fmod.com/u/VoodooDetective)\
**Post date:** [January 31, 2025, 1:34am UTC](https://qa.fmod.com/t/loading-delay-exceeded-even-with-preloaded-sample-data/22510/9 "2025-01-31T01:34:59Z")

</div>

@Leah_FMOD Thanks very much! Please, let me know if I can provide any further information/captures/etc.

---

<div class="post-metadata">

**Author:** ![Leah\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/leah_fmod/32/3685_2.png) [@Leah\_FMOD](https://qa.fmod.com/u/Leah_FMOD)\
**Post date:** [January 31, 2025, 4:13am UTC](https://qa.fmod.com/t/loading-delay-exceeded-even-with-preloaded-sample-data/22510/10 "2025-01-31T04:13:13Z")

</div>

Thanks again for the uploaded profiler session!

The Loading delay exceeded" warning is being caused by the fact that a number of events (i.e. “event:/SFX/Golf/Dolf Impact”) are playing assets with _extremely_ short lengths that are approaching the FMOD mixer’s block size, causing issues when FMOD attempts to schedule their playback. This is a benign warning, but if you want to remove it from your log, you have a few options:

- Very slightly increase the schedule delay on the event using `eventInstance->setProperty(FMOD_STUDIO_EVENT_PROPERTY_SCHEDULE_DELAY, 1024);`, which will increase the delay before the event plays by a tiny amount, but should stop the warning
- Modify the playing assets by somehow increasing their total length. This could be done by adding silence to the end, combining the short assets with the tail that plays afterwards, etc.
- Manually filter the warning yourself, likely by modifying `DEBUG_CALLBACK()` in `RuntimeManager.cs` similar to how it’s been done in this post for a different warning: [Adding signal DSP causes starvation - #7 by Leah\_FMOD](https://qa.fmod.com/t/adding-signal-dsp-causes-starvation/22011/7)

---

<div class="post-metadata">

**Author:** ![VoodooDetective](https://avatars.discourse-cdn.com/v4/letter/v/ecc23a/32.png) [@VoodooDetective](https://qa.fmod.com/u/VoodooDetective)\
**Post date:** [February 3, 2025, 7:49pm UTC](https://qa.fmod.com/t/loading-delay-exceeded-even-with-preloaded-sample-data/22510/11 "2025-02-03T19:49:34Z")

</div>

Hey @Leah_FMOD, thank you so much for taking a look at the profiler capture!

I looked at the event you mentioned and here’s a screenshot of what it looks like:

 ![Screenshot 2025-02-03 114720](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/8/80fa7eb68011b6247604ec76442953684ed93dbe.png)

So the bottom (blue) clip is just about 2 seconds long, and the top clips are definitely very short. 00:00.030

So it sounds like the issue is those top (green) clips? I’ll try to extend them and see if the issues go away. Thank you so much for the suggestions!

---

<div class="post-metadata">

**Author:** ![Leah\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/leah_fmod/32/3685_2.png) [@Leah\_FMOD](https://qa.fmod.com/u/Leah_FMOD)\
**Post date:** [February 4, 2025, 5:10am UTC](https://qa.fmod.com/t/loading-delay-exceeded-even-with-preloaded-sample-data/22510/12 "2025-02-04T05:10:46Z")

</div>

The green clips would be the problem ones, yes - feel free to let me know if you still run into the issue after extending them.
