# Set balance between performance & rendering?

**URL:** <https://community.cesium.com/t/set-balance-between-performance-rendering/12839>\
**Category:** CesiumJS\
**Created:** [March 31, 2021, 10:03am UTC](https://community.cesium.com/t/set-balance-between-performance-rendering/12839 "2021-03-31T10:03:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Image\_95](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/image_95/32/2442_2.png) [@Image\_95](https://community.cesium.com/u/Image_95)\
**Post date:** [March 31, 2021, 10:03am UTC](https://community.cesium.com/t/set-balance-between-performance-rendering/12839/1 "2021-03-31T10:03:14Z")

</div>

Good morning,  
I succeed in loading 3D tiles tilesets (Meshs & texture) with CesiumJS.  
I notice a “coarse”, “degrated” resolution/rendering in the background. Are there default seted parameters regarding balance between performance & rendering ? If yes, could you tell me which parameters set “level of detail based on location / zoom / scale”?  
Thanks a lot.  
 ![Rendering](https://global.discourse-cdn.com/cesium/original/2X/6/67f899eeb10eb2071fd5d0dc1a67f5604d5e7610.jpeg)

---

<div class="post-metadata">

**Author:** ![dzung](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/dzung/32/2996_2.png) [@dzung](https://community.cesium.com/u/dzung)\
**Post date:** [April 3, 2021, 2:10am UTC](https://community.cesium.com/t/set-balance-between-performance-rendering/12839/2 "2021-04-03T02:10:25Z")

</div>

There are some options in [Cesium3DTileset](https://cesium.com/docs/cesiumjs-ref-doc/Cesium3DTileset.html?classFilter=tileset) that you can change to improve the rendering quality. The one you are looking for (level of detail based on distance from camera) is `dynamicScreenSpaceError`. According to the CesiumJS documentation, this option “reduce the screen space error for tiles that are further away from the camera.” On the documentation page for Cesium3DTileset ([Cesium3DTileset - Cesium Documentation](https://cesium.com/docs/cesiumjs-ref-doc/Cesium3DTileset.html?classFilter=tileset)), you can see an example of common settings for dynamic screen space error:

```auto
// Common settings for the dynamicScreenSpaceError optimization
var tileset = scene.primitives.add(new Cesium.Cesium3DTileset({
     url : 'http://localhost:8002/tilesets/Seattle/tileset.json',
     dynamicScreenSpaceError : true,
     dynamicScreenSpaceErrorDensity : 0.00278,
     dynamicScreenSpaceErrorFactor : 4.0,
     dynamicScreenSpaceErrorHeightFalloff : 0.25
}));

```

You can also use the 3D Tiles Inspector ([example](https://sandcastle.cesium.com/?src=3D%20Tiles%20Inspector.html&label=All)) to experiment with the optimization settings to see which combination fit your use case the best!
