# Error Message when running PSO Cache 'ShaderPipelineCacheTools' commandlet.

**URL:** <https://forums.unrealengine.com/t/error-message-when-running-pso-cache-shaderpipelinecachetools-commandlet/1165532>\
**Category:** Debugging, Optimization, & Profiling\
**Tags:** unreal-engine, question\
**Created:** [May 14, 2023, 4:00pm UTC](https://forums.unrealengine.com/t/error-message-when-running-pso-cache-shaderpipelinecachetools-commandlet/1165532 "2023-05-14T16:00:16Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![jaker3278](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jaker3278](https://forums.unrealengine.com/u/jaker3278)\
**Post date:** [May 14, 2023, 4:00pm UTC](https://forums.unrealengine.com/t/error-message-when-running-pso-cache-shaderpipelinecachetools-commandlet/1165532/1 "2023-05-14T16:00:16Z")

</div>

Hello, I am following documentation on how to use PSO caching and I am running into an error message when I am converting PSO Caches (also known as expansion). The link to the documentation is here. [UE5 PSO documentation](https://docs.unrealengine.com/5.1/en-US/optimizing-rendering-with-pso-caches-in-unreal-engine/) When I run the Run the `ShaderPipelineCacheTools` commandlet using the arguments below.

E:\Epic Games\Engine\UE\_5.1\Engine\Binaries\Win64\>UnrealEditor-Cmd.exe -run=ShaderPipelineCacheTools expand C:\PSOCache\*.rec.upipelinecache C:\PSOCache\*.shk C:\PSOCacheTEST\_HighTown51\_PCD3D\_SM6.spc

I get the following error message. I have tried putting the PSOCache folder in the E: drive and running the cmd as administrator. But to no avail. Any help would be welcome. Has anyone successfully done this yet in UE 5.1.

 ![PSOCache_Error_Message](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/5/1/a515c39a969a2b051b965ca9b8accb520b9bc471.jpeg)

---

<div class="post-metadata">

**Author:** ![jaker3278](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jaker3278](https://forums.unrealengine.com/u/jaker3278)\
**Post date:** [May 15, 2023, 9:55pm UTC](https://forums.unrealengine.com/t/error-message-when-running-pso-cache-shaderpipelinecachetools-commandlet/1165532/2 "2023-05-15T21:55:20Z")

</div>

1. if you cant read what is says 'failed to open descriptor file E;/Epic games/ Engine / UE5.1 / Expand / Expand.uproject

---

<div class="post-metadata">

**Author:** ![F1nansist](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@F1nansist](https://forums.unrealengine.com/u/F1nansist)\
**Post date:** [May 24, 2023, 11:16am UTC](https://forums.unrealengine.com/t/error-message-when-running-pso-cache-shaderpipelinecachetools-commandlet/1165532/3 "2023-05-24T11:16:23Z")

</div>

Same problem. What i tried:

1. Moving engine to drive C:
2. Checked correctness game’s name (is the same as .uproject file)

Still doesnt work

---

<div class="post-metadata">

**Author:** ![jaker3278](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jaker3278](https://forums.unrealengine.com/u/jaker3278)\
**Post date:** [May 27, 2023, 7:30pm UTC](https://forums.unrealengine.com/t/error-message-when-running-pso-cache-shaderpipelinecachetools-commandlet/1165532/4 "2023-05-27T19:30:23Z")

</div>

I have solved this problem now. I can let you know the answer tomorrow as I am away from my PC. There where a couple of things wrong in the documentation.

---

<div class="post-metadata">

**Author:** ![FrostyJas](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/frostyjas/32/1194640_2.png) [@FrostyJas](https://forums.unrealengine.com/u/FrostyJas)\
**Post date:** [May 28, 2023, 7:23am UTC](https://forums.unrealengine.com/t/error-message-when-running-pso-cache-shaderpipelinecachetools-commandlet/1165532/5 "2023-05-28T07:23:36Z")

</div>

Greetings @jaker3278

I just read your post and your follow up. Were you able to resolve this? If so, any information you can provide for future reference will help the community. Thank you!

---

<div class="post-metadata">

**Author:** ![jaker3278](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jaker3278](https://forums.unrealengine.com/u/jaker3278)\
**Post date:** [May 28, 2023, 8:48am UTC](https://forums.unrealengine.com/t/error-message-when-running-pso-cache-shaderpipelinecachetools-commandlet/1165532/6 "2023-05-28T08:48:14Z")

</div>

Okay so this is what worked for me.

1. In the section Setup and Required Settings - Set the following value in your `Engine.ini` file:  
[DevOptions.Shaders]  
NeedsShaderStableKeys=true ,this needs to be True capital “T”

2. Converting PSO Caches (also known as expansion)  
Here is my working commandlet  
E:\Epic Games\Engine\UE\_5.1\Engine\Binaries\Win64\>UnrealEditor-Cmd.exe “E:\Epic Games Projects\HighTown UE5.1 Post ALS\HighTown51.uproject” -run=ShaderPipelineCacheTools expand C:\PSOCache\*.rec.upipelinecache C:\PSOCache\*.shk C:\PSOCache\TEST\_HighTown51\_PCD3D\_SM6.spc

Please note the " \ " after PSOCache that are not there in the documentation. This will produce the .spc certificate.

---

<div class="post-metadata">

**Author:** ![F1nansist](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@F1nansist](https://forums.unrealengine.com/u/F1nansist)\
**Post date:** [May 31, 2023, 9:14am UTC](https://forums.unrealengine.com/t/error-message-when-running-pso-cache-shaderpipelinecachetools-commandlet/1165532/7 "2023-05-31T09:14:45Z")

</div>

Here is my commandlet  
E:\UE\_5.1\Engine\Binaries\Win64\UnrealEditor-Cmd.exe “E:\PolyCoreUE5\PolyCoreUE5.uproject” -run=ShaderPipelineCacheTools expand C:\PSOCache\*.rec.upipelinecache C:\PSOCache\*.shk C:\PSOCache\TEST\_PolyCoreUE5\_PCD3D\_SM6.spc

I recooked project and then recollect .rec.upipelinecache but is still doesnt work. Shader Tool works but is says that no one job was done. It doesnt create .spc file

---

<div class="post-metadata">

**Author:** ![jaker3278](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jaker3278](https://forums.unrealengine.com/u/jaker3278)\
**Post date:** [June 1, 2023, 9:11pm UTC](https://forums.unrealengine.com/t/error-message-when-running-pso-cache-shaderpipelinecachetools-commandlet/1165532/8 "2023-06-01T21:11:24Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/4/5/545519e28fe6e68682698db6cfe80a82cd484945.png)  
Do you have the .shk files in the folder as well? The PSOCache folder should look something like this. Mine has the .spc certificate in there as well after generation, yours wont.

---

<div class="post-metadata">

**Author:** ![F1nansist](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@F1nansist](https://forums.unrealengine.com/u/F1nansist)\
**Post date:** [June 2, 2023, 7:09am UTC](https://forums.unrealengine.com/t/error-message-when-running-pso-cache-shaderpipelinecachetools-commandlet/1165532/9 "2023-06-02T07:09:50Z")

</div>

I found the problem

1. Run cmd as administrator
2. Added "" after the folder like this:  
expand C:\PSOCache\*.rec.upipelinecache C:\PSOCache\*.shk C:\PSOCache\TEST\_PolyCoreUE5\_PCD3D\_SM5.spc

Build included certificate and i waited fps boost for my VR app, but nothing interesting happened. I checked RHI logs. It opened .stable.upipelinecache file with correct entries (which was included while cooking). Also checked windows-desktop setup and it looks like with included PSOs in showed less FPS on D3D12 than simple with DLSS on D3D11.

@jaker3278 did u note FPS boost?

---

<div class="post-metadata">

**Author:** ![jaker3278](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jaker3278](https://forums.unrealengine.com/u/jaker3278)\
**Post date:** [June 2, 2023, 10:06am UTC](https://forums.unrealengine.com/t/error-message-when-running-pso-cache-shaderpipelinecachetools-commandlet/1165532/10 "2023-06-02T10:06:28Z")

</div>

Its not supposed to give you an fps boost, PSO caching works by first creating a list of all the needed Shaders that are required by the [Materials] that are used in your UE project. This list is then used to help speed up the compiling process of these Shaders when they are first encountered by your UE project. This, in turn, helps reduce any hitches your project might encounter when a Material requires a new Shader to be compiled.

So your game should now run smoother with no micro hitches, your players will thank you for it.

---

<div class="post-metadata">

**Author:** ![hellounreal\_shi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@hellounreal\_shi](https://forums.unrealengine.com/u/hellounreal_shi)\
**Post date:** [June 26, 2023, 3:41pm UTC](https://forums.unrealengine.com/t/error-message-when-running-pso-cache-shaderpipelinecachetools-commandlet/1165532/11 "2023-06-26T15:41:54Z")

</div>

The \ must be before \*.  
My script which works:  
E:\UnrealEngine\Engine\Binaries\Win64\UnrealEditor-Cmd.exe E:\MyProject\MyProject.uproject -run=ShaderPipelineCacheTools expand E:\MyProject\Build\Windows\MyProject\Saved\CollectedPSOs\_Copy/\*.rec.upipelinecache E:\MyProject\Build\Windows\MyProject\Saved\CollectedPSOs\_Copy/\*.shk E:\MyProject\Build\Windows\MyProject\Saved\CollectedPSOs\_Copy\PSOCacheTest\_MyProject\_PCD3D\_SM6.spc

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [July 26, 2023, 3:42pm UTC](https://forums.unrealengine.com/t/error-message-when-running-pso-cache-shaderpipelinecachetools-commandlet/1165532/12 "2023-07-26T15:42:08Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
