|
|
---
|
|
|
title: Zen Server / Derived Data Cache (Shader Cache)
|
|
|
---
|
|
|
**Table of Contents**
|
|
|
|
|
|
[[_TOC_]]
|
|
|
|
|
|
## General Information
|
|
|
# General Information
|
|
|
|
|
|
Unreal offers a feature, that allows to store compiled shaders and other material related stuff in a _Derived Data Cache_. This cache is hierarchical and can contain local and shared caches.
|
|
|
|
|
|
For **newer versions** (UE5.4+) Unreal uses [Zen Storage Server](https://dev.epicgames.com/documentation/en-us/unreal-engine/zen-storage-server-for-unreal-engine) to server the DDC instead of the old fileshare method.
|
|
|
|
|
|
For more info on DDCs see the [official docs](https://docs.unrealengine.com/4.27/en-US/ProductionPipelines/DerivedDataCache/).
|
|
|
|
|
|
# Zen Storage Server
|
|
|
|
|
|
We are hosting our own Zen Storage Server which address can be found here: [Zenserver URL](https://git-ce.rwth-aachen.de/vr-vis/group-wiki/-/wikis/Hardware/Group-Servers#zen-server-url).
|
|
|
|
|
|
This server is included per default in pipeline builds, to accelerate the packaging process.
|
|
|
You can additionally add it to your own project to accelerate builds by including the following lines in your `DefaultEngine.ini`:
|
|
|
|
|
|
```
|
|
|
[StorageServers]
|
|
|
Shared=(Host="http://134.130.186.200:8558", Namespace="projectname.ddc", EnvHostOverride=UE-ZenSharedDataCacheHost, CommandLineHostOverride=ZenSharedDataCacheHost, DeactivateAt=60)
|
|
|
```
|
|
|
|
|
|
# Old (deprecate) Fileshare Method
|
|
|
|
|
|
## Adding DDCs to your project
|
|
|
|
|
|
Edit the `DefaultEngine.ini` in the Config folder of your project and append e.g. the following:
|
... | ... | @@ -40,7 +59,10 @@ Boot=(Type=Boot, Filename="%GAMEDIR%DerivedDataCache/Boot.ddc", MaxCacheSize=512 |
|
|
Pak=(Type=ReadPak, Filename="%GAMEDIR%DerivedDataCache/DDC.ddp")
|
|
|
Local=(Type=FileSystem, ReadOnly=false, Clean=false, Flush=false, PurgeTransient=true, DeleteUnused=true, UnusedFileAge=34, FoldersToClean=-1, PromptIfMissing=true, Path=%GAMEDIR%DerivedDataCache, EnvPathOverride=UE-LocalDataCachePath, EditorOverrideSetting=LocalDerivedDataCache)
|
|
|
```
|
|
|
## Our shared DDC
|
|
|
## Our shared DDC - Deprecated
|
|
|
|
|
|
**The old shared DDC is deprecated in favor of Zen. Keeping this section for documentation purposes.**
|
|
|
|
|
|
This example illustrates how to store your DDC in our shared DDC. Once you start up your project the editor tries to contact the shared drive and you have to enter credentials. Use the ones below. To store them in your profile, just open a file explorer and paste [Internal URL](https://git-ce.rwth-aachen.de/vr-vis/group-wiki/-/wikis/Hardware/Group-Servers#shared-derived-data-cache) into the address bar. Enter the same credentials and check the "save"-mark. The DDC is only reachable inside the RWTH network (and VPN). If the editor can't connect you can disable the DDC for that launch:
|
|
|
|
|
|
You can find the user and password in Keepass.
|
... | ... | |