# Loop Region - Condition Latency Issues

**URL:** https://qa.fmod.com/t/loop-region-condition-latency-issues/16330
**Category:** FMOD Studio
**Tags:** unity
**Created:** [October 21, 2020, 6:46am UTC](https://qa.fmod.com/t/loop-region-condition-latency-issues/16330 "2020-10-21T06:46:38Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![jacobleaney](https://avatars.discourse-cdn.com/v4/letter/j/96bed5/32.png) [@jacobleaney](https://qa.fmod.com/u/jacobleaney)
#### Post date: [October 21, 2020, 6:46am UTC](https://qa.fmod.com/t/loop-region-condition-latency-issues/16330/1 "2020-10-21T06:46:38Z")

</div>

Hi all,

I have a loop region that is controlled by a simple parameter - continue looping if parameter is 0, otherwise ignore loop is parameter is greater than 0.

However, if I change the parameter less than ~half a second before the end of the loop, the audio loops again. I know that the parameter is changing before the end of the loop because other audio tied to the parameter changes without any noticeable latency.

Is this something I have to live with, or are there workarounds?

You can see in this image a red box I’ve marked - if I change the parameter anytime from here the audio still loops. Yes, I have the parameter set to instant.

![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/3/3fd413764f823f5a9fd89e484a86381f84b6aaa9.png)

---

<div class="post-metadata">

### Author: ![richard\_simms](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/richard_simms/32/261_2.png) [@richard\_simms](https://qa.fmod.com/u/richard_simms)
#### Post date: [October 27, 2020, 1:05am UTC](https://qa.fmod.com/t/loop-region-condition-latency-issues/16330/2 "2020-10-27T01:05:38Z")

</div>

This is likely due to how often the FMOD system updates. You can add a transition marker at the beginning of the loop region to go to the “Start” destination marker with the same conditions of leaving the loop region. This could act like a “catch” for if the system doesn’t update in time to recognise the new parameter value

---

<div class="post-metadata">

### Author: ![jacobleaney](https://avatars.discourse-cdn.com/v4/letter/j/96bed5/32.png) [@jacobleaney](https://qa.fmod.com/u/jacobleaney)
#### Post date: [November 16, 2020, 4:36am UTC](https://qa.fmod.com/t/loop-region-condition-latency-issues/16330/3 "2020-11-16T04:36:34Z")

</div>

Thanks for your response - I only just saw this! I’ll try that 🙂

---

<div class="post-metadata">

### Author: ![jacobleaney](https://avatars.discourse-cdn.com/v4/letter/j/96bed5/32.png) [@jacobleaney](https://qa.fmod.com/u/jacobleaney)
#### Post date: [November 16, 2020, 5:06am UTC](https://qa.fmod.com/t/loop-region-condition-latency-issues/16330/4 "2020-11-16T05:06:00Z")

</div>

Just tried this and unfortunately doesn’t seem to work - I’ve found a workaround for the time being but unfortunately this is a pretty big dealbreaker for me for future projects!

Would there be any other code workaround / way to increase how often FMOD updates?

Thanks for your time 🙂

---

<div class="post-metadata">

### Author: ![richard\_simms](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/richard_simms/32/261_2.png) [@richard\_simms](https://qa.fmod.com/u/richard_simms)
#### Post date: [November 17, 2020, 5:11am UTC](https://qa.fmod.com/t/loop-region-condition-latency-issues/16330/5 "2020-11-17T05:11:54Z")

</div>

You can adjust the rate that the FMOD system updates by adjusting the `studioupdateperiod` in the `Studio::System::setAdvanceSettings()` function.

[https://fmod.com/resources/documentation-api?version=2.1&page=studio-api-system.html#fmod\_studio\_advancedsettings](https://fmod.com/resources/documentation-api?version=2.1&page=studio-api-system.html#fmod_studio_advancedsettings)

---

<div class="post-metadata">

### Author: ![jacobleaney](https://avatars.discourse-cdn.com/v4/letter/j/96bed5/32.png) [@jacobleaney](https://qa.fmod.com/u/jacobleaney)
#### Post date: [November 30, 2020, 3:45am UTC](https://qa.fmod.com/t/loop-region-condition-latency-issues/16330/6 "2020-11-30T03:45:54Z")

</div>

Thanks Richard, will take a look at that!
