# Change the distance to unload tiles behind the camera

**URL:** <https://community.cesium.com/t/change-the-distance-to-unload-tiles-behind-the-camera/27427>\
**Category:** Cesium for Unity\
**Created:** [October 17, 2023, 5:24pm UTC](https://community.cesium.com/t/change-the-distance-to-unload-tiles-behind-the-camera/27427 "2023-10-17T17:24:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jaip-Coding](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/jaip-coding/32/19837_2.png) [@Jaip-Coding](https://community.cesium.com/u/Jaip-Coding)\
**Post date:** [October 17, 2023, 5:24pm UTC](https://community.cesium.com/t/change-the-distance-to-unload-tiles-behind-the-camera/27427/1 "2023-10-17T17:24:09Z")

</div>

This is maybe a stupid question, but how can I change the distance to unload tiles behind the camera? I‘m making a flight simulator and the tiles behind the camera (Cockpit view) are unloading too early so that there is no ground under the back part of the airplane.

---

<div class="post-metadata">

**Author:** ![janine](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/janine/32/5135_2.png) [@janine](https://community.cesium.com/u/janine)\
**Post date:** [October 17, 2023, 5:39pm UTC](https://community.cesium.com/t/change-the-distance-to-unload-tiles-behind-the-camera/27427/2 "2023-10-17T17:39:02Z")

</div>

You can uncheck the “Enable Frustum Culling” on your `Cesium3DTileset`. Frustum culling will cull tiles that are out-of-view of the camera, so disabling the option should retain the tiles even if they’re behind the camera. Hope that helps!

---

<div class="post-metadata">

**Author:** ![Jaip-Coding](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/jaip-coding/32/19837_2.png) [@Jaip-Coding](https://community.cesium.com/u/Jaip-Coding)\
**Post date:** [October 17, 2023, 6:27pm UTC](https://community.cesium.com/t/change-the-distance-to-unload-tiles-behind-the-camera/27427/3 "2023-10-17T18:27:41Z")

</div>

Hi!  
Thanks for the quick answer! It works great, but it decreases the performance a lot. Is there also something to just change the distance or isn’t it possible yet?

---

<div class="post-metadata">

**Author:** ![janine](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/janine/32/5135_2.png) [@janine](https://community.cesium.com/u/janine)\
**Post date:** [October 19, 2023, 2:03pm UTC](https://community.cesium.com/t/change-the-distance-to-unload-tiles-behind-the-camera/27427/4 "2023-10-19T14:03:24Z")

</div>

Hi @Jaip-Coding,

You could try to implement a `CesiumTileExcluder` to exclude tiles outside a certain area. The area could follow the plane as it moves, and leave just enough tiles behind the plane to be convincing.

Here’s a really crude drawing in MS Paint about what I mean:

 ![plane](https://global.discourse-cdn.com/cesium/original/3X/c/6/c6359613bc1e26f959920635a7e81758feae631e.png)

If you translate the center of the area (indicated by the red dot) by the same amount that the plane moves, the area of visible tiles should remain constant relative to the plane.

We don’t have an official tutorial for this yet, but you can check out this [PR](https://github.com/CesiumGS/cesium-unity/pull/248) for details on how to get started.

---

<div class="post-metadata">

**Author:** ![Jaip-Coding](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/jaip-coding/32/19837_2.png) [@Jaip-Coding](https://community.cesium.com/u/Jaip-Coding)\
**Post date:** [October 19, 2023, 4:22pm UTC](https://community.cesium.com/t/change-the-distance-to-unload-tiles-behind-the-camera/27427/5 "2023-10-19T16:22:24Z")

</div>

Hi @janine  
Thanks really much! I‘ll definitely try it!

---

<div class="post-metadata">

**Author:** ![mtor\_nav](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/mtor_nav/32/23812_2.png) [@mtor\_nav](https://community.cesium.com/u/mtor_nav)\
**Post date:** [April 18, 2024, 1:24pm UTC](https://community.cesium.com/t/change-the-distance-to-unload-tiles-behind-the-camera/27427/6 "2024-04-18T13:24:21Z")

</div>

Hi Jaip,

Did this method ever work out for you? I have an issue where I’m noticing frames getting culled around the edges of my [camera frustrum.](https://community.cesium.com/t/increase-frustrum-culling-tolerance/31570) If this worked for you, please let me know!
