# maximumScreenSpaceError: does not work

**URL:** <https://community.cesium.com/t/maximumscreenspaceerror-does-not-work/8662>\
**Category:** CesiumJS\
**Created:** [September 15, 2019, 7:22pm UTC](https://community.cesium.com/t/maximumscreenspaceerror-does-not-work/8662 "2019-09-15T19:22:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniele\_Suppo](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/daniele_suppo/32/2143_2.png) [@Daniele\_Suppo](https://community.cesium.com/u/Daniele_Suppo)\
**Post date:** [September 15, 2019, 7:22pm UTC](https://community.cesium.com/t/maximumscreenspaceerror-does-not-work/8662/1 "2019-09-15T19:22:34Z")

</div>

**1. A concise explanation of the problem you’re experiencing.**

I’ve set

viewer.scene.globe.maximumScreenSpaceError = 1.02; /// default is 2

Despite of this very low value (it should load very high resolution tiles until infinity) I get the same map with default value.

I’ve attached a picture to see that there’s no difference.

**2. A minimal code example. If you’ve found a bug, this helps us reproduce and repair it.**

viewer.scene.globe.maximumScreenSpaceError = 1.02; /// default is 2

**3. Context. Why do you need to do this? We might know a better way to accomplish your goal.**

Not to see the tile difference just by the camera

**4. The Cesium version you’re using, your operating system and browser.**

1.61

 ![maximumScreenSpaceError_issue.jpg](https://global.discourse-cdn.com/cesium/original/1X/844cb286361af9963b2700c690f3d4e69e016406.jpeg)

---

<div class="post-metadata">

**Author:** ![omar](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/omar/32/1999_2.png) [@omar](https://community.cesium.com/u/omar)\
**Post date:** [September 16, 2019, 6:59pm UTC](https://community.cesium.com/t/maximumscreenspaceerror-does-not-work/8662/2 "2019-09-16T18:59:18Z")

</div>

What happens if you set it to 1, or 0? Or just to make sure the value you’re setting is having some effect at all, what if you set it to 50 or 100? You should see much lower resolution tiles.

Another way you can debug this is by using the Cesium inspector. You can click “Terrain -\> Show tile coordinates” to see what tile level it’s loading:

[https://cesiumjs.org/Cesium/Apps/Sandcastle/index.html?src=Cesium%20Inspector.html](https://cesiumjs.org/Cesium/Apps/Sandcastle/index.html?src=Cesium%20Inspector.html)

This can help visually verify whether it’s loading the expected level.

---

<div class="post-metadata">

**Author:** ![Daniele\_Suppo](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/daniele_suppo/32/2143_2.png) [@Daniele\_Suppo](https://community.cesium.com/u/Daniele_Suppo)\
**Post date:** [September 17, 2019, 10:50am UTC](https://community.cesium.com/t/maximumscreenspaceerror-does-not-work/8662/3 "2019-09-17T10:50:22Z")

</div>

viewer.scene.globe.maximumScreenSpaceError = 1; // no noticeable improvement and soon it crash

viewer.scene.globe.maximumScreenSpaceError = 10; // the map is at very low resolution

---

<div class="post-metadata">

**Author:** ![omar](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/omar/32/1999_2.png) [@omar](https://community.cesium.com/u/omar)\
**Post date:** [September 18, 2019, 6:28pm UTC](https://community.cesium.com/t/maximumscreenspaceerror-does-not-work/8662/4 "2019-09-18T18:28:24Z")

</div>

It sounds like the screen space error is working, but that the loaded tiles are the highest resolution. You can verify this by zooming in to a particular tile and seeing if it loads an additional level.

---

<div class="post-metadata">

**Author:** ![Daniele\_Suppo](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/daniele_suppo/32/2143_2.png) [@Daniele\_Suppo](https://community.cesium.com/u/Daniele_Suppo)\
**Post date:** [September 19, 2019, 6:49pm UTC](https://community.cesium.com/t/maximumscreenspaceerror-does-not-work/8662/5 "2019-09-19T18:49:02Z")

</div>

The tiles are not at highest resolution, if I zoom higher resolution is loaded.  
Furthermore you can see that there’s a noticeable break in tiles resolution just in the center of the viewport, so for sure not all the tiles are at highest resolution.  
I guess that with “viewer.scene.globe.maximumScreenSpaceError = 1” Cesium should load the maximum resolution for all the tiles, but it seem to be not like that.

I suppose that the algorithm behind “maximumScreenSpaceError” take care of the camera height, and if the camera is more than xxxx meters it doesn’t work anymore… maybe.

Is it possible to better understand how “maximumScreenSpaceError” work?
