Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FSR2 memory leak in UE5.1 #104

Open
bonorumetmalorum opened this issue Mar 17, 2023 · 0 comments
Open

FSR2 memory leak in UE5.1 #104

bonorumetmalorum opened this issue Mar 17, 2023 · 0 comments

Comments

@bonorumetmalorum
Copy link

Hello!

Having recently integrated FSR2 for UE 5.1 we noticed that our memory usage was slowly climbing over the runtime of our game. Please find attached the various captures we made using Insights and LLM whilst diagnosing this problem. We found a fix to this which was to add the following lines to both, FSR2TemporalUpscalingD3D12.cpp:156 and FSR2TemporalUpscalingVulkan.cpp:113 in the function named ForceUAVTransition:

FRHITransition* ConstFreeTransition = const_cast<FRHITransition*>(Transition);
RHIReleaseTransition(ConstFreeTransition);
FConcurrentLinearAllocator::Free(ConstFreeTransition);

It would appear that the issue was this transition was not being deleted properly due to EndTransition not being called and freeing the memory in the linear allocator.

Thanks,

Govind Venkatesh and David Smith :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant