FNA-XNA / FNA

FNA - Accuracy-focused XNA4 reimplementation for open platforms
https://fna-xna.github.io/
2.61k stars 265 forks source link

Terraria - Memory leaks with Vulkan renderer #443

Closed HunterCZ122 closed 12 months ago

HunterCZ122 commented 1 year ago

Sorry for an amateurish issue. Playing for about an hour with Vulkan renderer results in high CPU usage and memory leaks, resulting in lock up until OOM killer kicks in and kills Terraria. It doesn't happen with OpenGL renderer at all. Screenshot_20231007_225513 I haven't tried replacing FNA with a newer version. Driver is proprietary Nvidia 535.43.10 Also, is there a way to enable logs and detect FNA version used in Terraria? Just to make report more useful.

flibitijibibo commented 1 year ago

I would update FNA3D first, then update FNA.dll with a debug version if FNA3D doesn't fix it. It could be video memory fragmention or it could be a leak, which newer versions are better at pointing out.

HunterCZ122 commented 12 months ago

Played for about 2 hours with a friend and half an hour solo on updated FNA3D, no leaks or suspicious increase of memory usage (game stays at 1GB usage as it should). Reverting to Terraria's FNA3D version makes it obvious after few minutes it leaks memory slowly. So I guess Re-Logic will need to update FNA3D.

flibitijibibo commented 12 months ago

Next time I'm in a room with them I'll let them know, but definitely report on your findings as well to make sure they see it!