> For the complete documentation index, see [llms.txt](https://polysphere-studio.gitbook.io/british-city-pack/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://polysphere-studio.gitbook.io/british-city-pack/optimization.md).

# Optimization

If you need, you can increase the performance in various ways:

* You can decrease the engine scalability. "Epic" is the default setting, you can set it to High setting, which will increase the performance with a low impact on visuals.

<div align="left"><figure><img src="https://4263937087-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpFQ4hNsRYtSQlN6ycjSk%2Fuploads%2FrLcm3GkJb0RwXuLgLsQy%2FOptimization.png?alt=media&amp;token=0fdf7364-4c0e-4f87-abff-7e347861ea6d" alt=""><figcaption></figcaption></figure></div>

* Disable "Use Hardware Ray Tracing when available" or at least set "Software Ray Tracing Mode" to "Global Tracing". This will increase the performance with a low impact on visuals.&#x20;

<div align="left"><figure><img src="https://4263937087-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpFQ4hNsRYtSQlN6ycjSk%2Fuploads%2FMt7zgUgqntnFoNEW19bV%2FOptimization%20(4).png?alt=media&amp;token=5e8ec289-7b53-4004-ac84-6842386ea09e" alt=""><figcaption><p><em>Edit - Project Settings - Engine - Rendering - Lumen</em></p></figcaption></figure></div>

<div align="left"><figure><img src="https://4263937087-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpFQ4hNsRYtSQlN6ycjSk%2Fuploads%2FxAXcaZPEcoDUVA5N72P4%2FOptimization%20(3).png?alt=media&amp;token=af5997d7-b517-4d74-9951-9a5143e907f7" alt=""><figcaption><p><em>Edit - Project Settings - Engine - Rendering - Lumen</em></p></figcaption></figure></div>

* Or disable Support Hardware Ray Tracing:

<div align="left"><figure><img src="https://4263937087-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpFQ4hNsRYtSQlN6ycjSk%2Fuploads%2FKmxZ55lq5qmwp0I6q81I%2FOptimization%20(1).png?alt=media&amp;token=25db5b72-bb78-4b2f-9b9c-d597fbd781a4" alt=""><figcaption><p><em>Edit - Project Settings - Engine - Rendering - Hardware Ray Tracing</em></p></figcaption></figure></div>

* Change Shadow Map Method to "Shadow Maps" (Default is Virtual Shadow Maps (Beta)

<div align="left"><figure><img src="https://4263937087-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpFQ4hNsRYtSQlN6ycjSk%2Fuploads%2FnwFA8WhqRPQSbxjFMqdR%2FOptimization%20(2).png?alt=media&amp;token=931d3aa4-eb20-4e38-845d-b3ce439a1e0d" alt=""><figcaption><p><em>Edit - Project Settings - Engine - Rendering - Shadows</em></p></figcaption></figure></div>

* You can gain a huge performance by disabling the lumen but it will impact the visuals drastically.

You can disable it from Project Settings or from Post Processing Volume:

<div align="left"><figure><img src="https://4263937087-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpFQ4hNsRYtSQlN6ycjSk%2Fuploads%2FT6PfnLbGPMZmmEXG6ClZ%2FOptimization%20(5).png?alt=media&amp;token=546e7637-38c1-43be-96fb-1ec7760b9fae" alt=""><figcaption><p><em>Edit - Project Settings - Engine - Rendering - Global Illumination</em></p></figcaption></figure></div>

<div align="left"><figure><img src="https://4263937087-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpFQ4hNsRYtSQlN6ycjSk%2Fuploads%2FRNzYY0Vq3ZrgWjW0BkfN%2FOptimization%20(6).png?alt=media&amp;token=1c69a594-e88c-4741-92d3-e77d80142b31" alt=""><figcaption><p>Post-Processing Volume</p></figcaption></figure></div>

You can increase the performance a lot by editing the level itself:

* You can create Packed Level Actor for each building from the scene or multiple buildings in a row. This will increase the performance by decreasing the draw calls, the engine will use more mesh instances than regular static meshes.

You can create your own building Packed Level Actor by selecting all the static meshes/blueprints from a building, then pressing on Actor -> Level -> Creating Packed Level Actor:

<figure><img src="https://4263937087-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpFQ4hNsRYtSQlN6ycjSk%2Fuploads%2FaGZ6cIbk30p3NSAAGs3x%2FCreatingBuildingPackedLevelActors.gif?alt=media&amp;token=c3e25ace-64aa-434f-accf-b2732f1d8293" alt=""><figcaption></figcaption></figure>

* You can merge each building from the scene or multiple buildings using the Tools - Merge Actors. This process is irreversible! Using this tool, you can merge all the static meshes and blueprints of a building into one static mesh. This also will increase the performance by decreasing the draw calls.

You can also increase the performance to a large level by using the World Partition + HLODs: <https://docs.unrealengine.com/5.1/en-US/world-partition-in-unreal-engine/>
