GPUOpen-Drivers / AMDVLK

AMD Open Source Driver For Vulkan
MIT License
1.7k stars 160 forks source link

Memory leak in Far Cry 6 #266

Closed DoomPenguin9 closed 2 months ago

DoomPenguin9 commented 2 years ago

There is a memory leak in Far Cry 6. By the time I load into the map and I can actually play the game, pretty much all of my RAM is full, and the performance is extremely poor as a consequence of that. 2022-01-02_21-31

This does not happen with RADV. Screenshot with RADV for comparison:

2022-01-02_21-49_2

System: OS: Arch Linux Kernel: 5.15.12-zen1-1-zen CPU: Ryzen 7 5800X GPU: RX 6700XT AMDVLK version: 2021.Q4.3 WINE Version: wine-tkg-staging-fsync-git 7.0rc3.r1.g440e5eee-326 VKD3D version: vkd3d-proton(git-c0a3fa8)

RicArch97 commented 2 years ago

Probably the same issue for me, using AMDVLK 2022.Q1.1;

In the loading screen of Horizon Zero Dawn where the game is presumably pre-compiling shaders, RAM and some swap filled up completely in seconds (I have 32GB RAM), and the game crashed after a few seconds.

Same behaviour in overwatch, during the pre-compiling fase, game crashed.

Not to mention that the pre-compiling takes ages on my AMD Ryzen 9 5950X, which has 32 logical cores, with only like 20-30% of those being used as well.

Toorero commented 2 years ago

I have pretty much the same issue as @RicArch97 but in Monster Hunter World with. 32 GB RAM full in seconds during pre-compilation in the loading-screen. The compilation is pretty quick though but always results in a live lock of the system before completion.


Now a comparison of RAM usage. The game was started at 40s and killed in the first graph, so I don't run into a live lock situation.

  1. AMDVLK: grafik
  2. Mesa: grafik

    System:

    • GPU: 5700XT
    • AMDVLK version: AMDVLK 2022.Q1.1
    • OS: Arch Linux
    • Kernel: 5.16.2-zen1-1-zen
    • Proton version: 1:7.0rc6.GE.1-1
pingubot commented 2 years ago

I guess https://github.com/GPUOpen-Drivers/AMDVLK/issues/230 is basically the same problem.