yuzu icon indicating copy to clipboard operation
yuzu copied to clipboard

Vulkan memory leaks in any game.

Open OmarRod1314 opened this issue 1 year ago • 0 comments

I've been using this emulator since a while as I can, enough to get far in SMO, SSBU... Unfortunately, no matter the game or configuration, any game will unavoidably crash in loading screens or random compilation, with no errors. I checked the logs, and they cut midway whenever these crashes happen... So no errors are reported. These are my specs, they aren't ideal but demanding games run well as long as they're not crashing, so i'm sure it's not a hardware issue. Also, I tried to run it on Linux with the same API, and for my surprise... It ran perfectly, on par with Windows but no crashes, so that's one thing to have in mind.

Windows 10 21H2 (x64) Intel Core I3 3240. 8 GB RAM 1600mhz (In dual channel) AMD Radeon R5 240 1 GB. 1 TB HDD (Western Digital) Yuzu mainline 1115 (happening since a few)

Here are the logs, with no errors at all. I can't reproduce the bug in most games, as it's completely random, only in Metroid Dread (on the transition before the first EMMI cutscene) but still no errors. I'd like to use OGL as well, but this card is legacy GCN and the newest version with the performance fixes is unavailable. Something's very wrong with Vulkan's memory management here, and I'd like to know why.

yuzu_log.txt

OmarRod1314 avatar Jul 31 '22 21:07 OmarRod1314

Generally since you only have 7-8gb usable physical memory, you should consider setting a much larger windows pagefile (20-25gb). That should help for vulkan stability vs keeping windows set to auto.

G-Spawn avatar Aug 14 '22 00:08 G-Spawn

Generally since you only have 7-8gb usable physical memory, you should consider setting a much larger windows pagefile (20-25gb). That should help for vulkan stability vs keeping windows set to auto.

I had to do that, seems like it worked but it's not a perfect fix still. Is there any awareness of a memory leak for Vulkan in Windows?

OmarRod1314 avatar Aug 15 '22 15:08 OmarRod1314

Yes.

G-Spawn avatar Aug 15 '22 18:08 G-Spawn

The issue is also due to your hardware as well. Yuzu relies heavily on CPU & decent memory capacity-speed.

G-Spawn avatar Aug 15 '22 18:08 G-Spawn

I would be content with how it runs atm considering most hardware that predates the console by 5+ years fares very poorly here.

G-Spawn avatar Aug 15 '22 19:08 G-Spawn

For that hardware, use Linux. We don't target its outdated Windows drivers any more, and we require a minimum of 2GB of VRAM.

goldenx86 avatar Aug 15 '22 19:08 goldenx86

I'd assume the lack of VRAM is playing a part, too. I'm wondering if a similar Nvidia card (GT 730 DDR5) fares any better, as long as it's the 2 GB variant.

OmarRod1314 avatar Aug 18 '22 00:08 OmarRod1314