[Mesa-dev] [Bug 108946] High memory usage in Black Mesa
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Wed Dec 5 04:06:12 UTC 2018
https://bugs.freedesktop.org/show_bug.cgi?id=108946
Bug ID: 108946
Summary: High memory usage in Black Mesa
Product: Mesa
Version: 18.2
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: Mesa core
Assignee: mesa-dev at lists.freedesktop.org
Reporter: marco.gerzb at gmail.com
QA Contact: mesa-dev at lists.freedesktop.org
Created attachment 142728
--> https://bugs.freedesktop.org/attachment.cgi?id=142728&action=edit
glxinfo
Hello,
Since some time this game keeps getting an out of memory error that makes it
crash (it's a 32bit binary). While reporting the issues to the game devs this
is the reason they gave to the users
(https://steamcommunity.com/app/362890/discussions/1/3307213006836757658/?ctp=7):
"... From what I noticed, more shaders game had - faster out of memory
occurred. Black Mesa has full (or almost full) support of SM 3.0 on Linux which
allowed us to use same shaders with same code on both platfroms, while opening
new horizons for our new dynamic lighting implementation. After first discovery
of issues with Mesa driver, to avoid out of memory I had to cut some of shader
combinations completely specifically for OpenGL version by introducing shader
platform flags that decide if particular part with some visual feature the of
shader will be compiled. That helped quite a lot, we were able to run Black
Mesa for a while on AMD with lowest settings and CSM being turned off. But
while Mesa is sharing same memory location in application's address space, it's
pretty hard to go further being 32 bit."
Also, they mention that with Nvidia propietary driver the game with full
setting doesn't go over 1.2 GB of ram (on my system, I detect a first peak of
almost 3Gb of ram usage before crashing). So, there is some way that Mesa
drivers could be leaking about 2Gb of ram? I understand that the memory usage
between propietary drivers a Mesa are quite different, but I feel that it's
quite suspicious that there is such a big ram usage for what seems to be
shaders compile output.
Finally, while running an apitrace I detected a lot this errors: "major shader
compiler issue 21156: 0:4(12): warning: extension `GL_EXT_gpu_shader4'
unsupported in vertex shader". Not sure if it could be related with any leak
though.
I'm attaching to the ticket my system information plus and the apitrace I got
until the crash. Let me know if there's any other information you need or if
it's necessary that I test this game with newer version of Mesa.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20181205/37a019ac/attachment.html>
More information about the mesa-dev
mailing list