# Occlusion snapshot

**URL:** <https://qa.fmod.com/t/occlusion-snapshot/19469>\
**Category:** FMOD Studio\
**Created:** [November 2, 2022, 4:50pm UTC](https://qa.fmod.com/t/occlusion-snapshot/19469 "2022-11-02T16:50:21Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Molotovv](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@Molotovv](https://qa.fmod.com/u/Molotovv)\
**Post date:** [November 2, 2022, 4:50pm UTC](https://qa.fmod.com/t/occlusion-snapshot/19469/1 "2022-11-02T16:50:21Z")

</div>

Hey,

I’m working on creating an occlusion system. So I created an occlusion snapshot on an “Occlusion” bus. Then I add a snapshot instrument on each event I want occluded, and I can get the effect I want.

The thing is that I want to disable this snapshot when it’s not needed, so it’s better from a performance point of view (I think I saw somewhere it was possible to disable a snapshot). Because even if the occlusion parameter is at 0, the snapshot is still processed.

I don’t know if I was totally clear, but let me know ! Thanks !

---

<div class="post-metadata">

**Author:** ![DrewKski0](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/drewkski0/32/1775_2.png) [@DrewKski0](https://qa.fmod.com/u/DrewKski0)\
**Post date:** [November 3, 2022, 12:04am UTC](https://qa.fmod.com/t/occlusion-snapshot/19469/2 "2022-11-03T00:04:27Z")

</div>

Is your occlusion parameter also automating your occlusion snapshot’s intensity?

---

<div class="post-metadata">

**Author:** ![Molotovv](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@Molotovv](https://qa.fmod.com/u/Molotovv)\
**Post date:** [November 3, 2022, 8:58am UTC](https://qa.fmod.com/t/occlusion-snapshot/19469/3 "2022-11-03T08:58:59Z")

</div>

No, I’m only automating a low pass filter. I think i made my explanation misunderstood. The occlusion works just fine. What I want is to disable the snapshot if I don’t need it. Like, not only at value 0, but literally disabled. Correct me if I’m wrong, but It seems logical to me that the snapshot is processed at each frame if I don’t disable it, right ?

---

<div class="post-metadata">

**Author:** ![jojojo](https://avatars.discourse-cdn.com/v4/letter/j/96bed5/32.png) [@jojojo](https://qa.fmod.com/u/jojojo)\
**Post date:** [November 3, 2022, 10:03am UTC](https://qa.fmod.com/t/occlusion-snapshot/19469/4 "2022-11-03T10:03:29Z")

</div>

You can stop the snapshot like any normal event. But I wonder why you use a snapshot in the first place. Why not just a normal parameter?

---

<div class="post-metadata">

**Author:** ![Molotovv](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@Molotovv](https://qa.fmod.com/u/Molotovv)\
**Post date:** [November 4, 2022, 9:01am UTC](https://qa.fmod.com/t/occlusion-snapshot/19469/5 "2022-11-04T09:01:09Z")

</div>

I don’t use normals parameters because they can’t be disabled when they are not used, and their performance cost is not negligible. I’m working on a pretty big project, so I need to very meticulous on the performance and not waste any. Again, maybe I’m missing something on the engine side of FMOD, but to change a parameter value, it must be continuously checked on each frame, so not really performance friendly.

---

<div class="post-metadata">

**Author:** ![Alcibiade](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/alcibiade/32/4284_2.png) [@Alcibiade](https://qa.fmod.com/u/Alcibiade)\
**Post date:** [November 4, 2022, 9:46am UTC](https://qa.fmod.com/t/occlusion-snapshot/19469/6 "2022-11-04T09:46:47Z")

</div>

As said @jojojo, a snapshot is just a type of event. It’s either playing or stopped. If stopped, it shouldn’t use any CPU.

---

<div class="post-metadata">

**Author:** ![Molotovv](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@Molotovv](https://qa.fmod.com/u/Molotovv)\
**Post date:** [November 4, 2022, 4:00pm UTC](https://qa.fmod.com/t/occlusion-snapshot/19469/7 "2022-11-04T16:00:18Z")

</div>

Okay, this is more clear now, thank you all for your answers !
