ValveSoftware / Dota-2-Vulkan

Tracker for issues specific to the Vulkan version of Dota 2 on Windows, Linux, and macOS
99 stars 17 forks source link

Large RAM usage when using Vulkan #368

Open NotStirred opened 3 years ago

NotStirred commented 3 years ago

Please describe your issue in as much detail as possible:

Starting dota with -vulkan option it uses > 5GiB of ram on startup, with 7GiB peak after a couple of games Starting with -gl it uses around 1.6GiB with 3GiB peak after a couple of games

Steps for reproducing this issue:

  1. add -vulkan option to dota
  2. start dota
Turmfalke2 commented 3 years ago

For me with vulkan just in the demo mode I get

7529M virtual, 3831M resident and 351M shared.

with opengl I am at:

5803M virtual, 2080M resident and 33M shared.

I have 32G of ram so it isn't issue for me, but it might be for low end systems.

ghost commented 3 years ago

Got around 6-7GB RAM usage as well, with FPS drops under 75 FPS with Nvidia GTX 1070. I don't mind the RAM usage really, just the bad performance.

romulasry commented 3 years ago

This is bad since VULKAN is the DEFAULT now. @kisak-valve

romulasry commented 3 years ago

Still getting this? Report it here: https://github.com/ValveSoftware/Dota-2-Vulkan/issues

koreanfan commented 2 years ago

I have vulkan memory leak, when dota eat all my ram, my pc crash, only hard reset. Tested on all linux distros and got vulkan memory leak.

jmakip commented 2 years ago

Latest vulkan version seem to take more than 16G of memory for me. Game crashes random times caused by process being reaped for system being out of memory.

dmesg after crash:

[24810.253404] Out of memory: Killed process 17365 (dota2) total-vm:18845912kB, anon-rss:14547288kB, file-rss:434200kB, shmem-rss:22220kB, UID:1000 pgtables:32252kB oom_score_adj:0

[24810.504613] oom_reaper: reaped process 17365 (dota2), now anon-rss:0kB, file-rss:442140kB, shmem-rss:22236kB

top in main menu:

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 19981 jarno 20 0 17,1g 13,0g 22256 S 32,0 83,5 1:16.11 dota2

-gl takes less memory but I get 5fps in main menu. 120fps with -vulkan