Unreal shareDDC设置
Posted cartzhang
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Unreal shareDDC设置相关的知识,希望对你有一定的参考价值。
怎么设置DDC,简单记录下。
1、添加环境变量
使用一个BAT文件来实现。
setx /M UE-SharedDataCachePath \\\\10.0.20.5\\TestServer\\Project\\ShareDDC
pause
需要注意的是BAT需要管理员权限来运行,否则有可能会失败。
2、在defaultEngine.ini 配置
[DerivedDataBackendGraph]
Shared=(Type=FileSystem, ReadOnly=false, Clean=false, Flush=false, DeleteUnused=true, UnusedFileAge=10, FoldersToClean=10, MaxFileChecksPerSec=1, ConsiderSlowAt=70, PromptIfMissing=false, Path=\\\\10.0.20.5\\TestFileServer\\UEProject\\ShareDDC, EnvPathOverride=UE-SharedDataCachePath, EditorOverrideSetting=SharedDerivedDataCache)
3、成功运行后的结果
LogDerivedDataCache: Loaded boot cache 0.19s 81MB ../../../../dev_cartzhangTest_7141/DerivedDataCache/Boot.ddc.
LogDerivedDataCache: Display: Loaded Boot cache: ../../../../dev_cartzhangTest_7141/DerivedDataCache/Boot.ddc
LogDerivedDataCache: FDerivedDataBackendGraph: Pak pak cache file ../../../../dev_cartzhangTest_7141/DerivedDataCache/DDC.ddp not found, will not use a pak cache.
LogDerivedDataCache: FDerivedDataBackendGraph: EnginePak pak cache file ../../../Engine/DerivedDataCache/DDC.ddp not found, will not use a pak cache.
LogDerivedDataCache: Found environment variable UE-SharedDataCachePath=\\\\10.0.20.5\\TestFileServer\\UEProject\\ShareDDC
LogDerivedDataCache: Speed tests for //10.0.20.5/TestFileServer/UEProject/ShareDDC took 0.11 seconds
LogDerivedDataCache: Display: Performance to //10.0.20.5/TestFileServer/UEProject/ShareDDC: Latency=0.63ms. RandomReadSpeed=12.91MBs, RandomWriteSpeed=31.17MBs. Assigned SpeedClass 'Local'
LogDerivedDataCache: Using Shared data cache path \\\\10.0.20.5\\TestFileServer\\UEProject\\ShareDDC: Writable
LogDerivedDataCache: Saved boot cache 0.06s 81MB ../../../../dev_cartzhangTest_7141/DerivedDataCache/Boot.ddc.
LogNativeClassHierarchy: Verbose: Native class hierarchy updated for 'AddContentDialog' in 0.0002 seconds. Added 0 classes and 0 folders.
简单记录一下。
以上。
4、 参考
https://docs.unrealengine.com/4.26/en-US/ProductionPipelines/DerivedDataCache/
以上是关于Unreal shareDDC设置的主要内容,如果未能解决你的问题,请参考以下文章