FidelityFX-FSR2
FidelityFX-FSR2 copied to clipboard
FSR2 Stomps Memory in UE4
In UE4 4.27.1.
- Launch a the game using the editor, with stomp allocator (
UE4Editor.exe <project> -game -stompmalloc) - Make sure FSR2 is enabled obviously
- Modify a shader (ex:
PostProcessFFX_FSR2CreateReactiveMask.usf) - Recompile the shader (
recompileshaders changed) - You'll see the corruption in the allocator.
The issue seem to be due to the very hacky way shaders are swapped using class FFSR2ShaderMapContent. Since we dont use it, I just commented that whole thing out and it fixes the issue.
You should look for a cleaner way to swap shaders. Good luck.
-Mat