Page 1 of 1

[1.1.74] Wrong video memory size detected

Posted: Sat Dec 31, 2022 2:10 pm
by mgeisler
Hi there,

I've installed Factorio via Steam on Debian Unstable. When trying to increase the graphics quality, I was told that I don't have enough VRAM:
We detected that this computer has 512 MB of video memory (VRAM). That is too low for the high-quality sprites. You may experience performance issues, missing graphics, crashes, or the game may not be able to start at all. The recommended video memory size for high-quality sprites is at least 2 GB.
However, I have a 16 GB AMD Radeon RX 6950 XT in my machine. I can see with glxinfo:

Code: Select all

$ glxinfo -B
name of display: :0
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: AMD (0x1002)
    Device: AMD Radeon RX 6950 XT (navi21, LLVM 15.0.6, DRM 3.48, 6.0.0-6-amd64) (0x73a5)
    Version: 22.3.1
    Accelerated: yes
    Video memory: 16384MB
    Unified memory: no
    Preferred profile: core (0x1)
    Max core profile version: 4.6
    Max compat profile version: 4.6
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.2
Memory info (GL_ATI_meminfo):
    VBO free memory - total: 14664 MB, largest block: 14664 MB
    VBO free aux. memory - total: 31651 MB, largest block: 31651 MB
    Texture free memory - total: 14664 MB, largest block: 14664 MB
    Texture free aux. memory - total: 31651 MB, largest block: 31651 MB
    Renderbuffer free memory - total: 14664 MB, largest block: 14664 MB
    Renderbuffer free aux. memory - total: 31651 MB, largest block: 31651 MB
Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 16384 MB
    Total available memory: 48109 MB
    Currently available dedicated video memory: 14664 MB
OpenGL vendor string: AMD
OpenGL renderer string: AMD Radeon RX 6950 XT (navi21, LLVM 15.0.6, DRM 3.48, 6.0.0-6-amd64)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 22.3.1
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.6 (Compatibility Profile) Mesa 22.3.1
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile

OpenGL ES profile version string: OpenGL ES 3.2 Mesa 22.3.1
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
Can I somehow tell Factorio about the actual video memory size?

I tried ignoring the warnings and things seem to work okay — though I get a bit of stutter when I zoom out and run around the map.

Re: [1.1.74] Wrong video memory size detected

Posted: Sat Dec 31, 2022 3:08 pm
by Loewchen
512MB is correct, it is running on the integrated gpu.

Re: [1.1.74] Wrong video memory size detected

Posted: Sat Dec 31, 2022 3:48 pm
by mgeisler
Loewchen wrote: Sat Dec 31, 2022 3:08 pm 512MB is correct, it is running on the integrated gpu.
Oh...! but, I'm very sure that the monitor is connected to the graphics card — not to the motherboard.

You're completely right that there is another GPU on the motherboard (part of the Ryzen CPU, apparently). I did not do anything actively to disable that, I just figured the external graphics card would be used since it's, well, where I connected my monitor. Are you saying that's not the case?

Re: [1.1.74] Wrong video memory size detected

Posted: Sat Dec 31, 2022 4:12 pm
by mgeisler
Wow, I went to the BIOS and disabled the integrated graphics card — and voila, Factorio now sees all 16 GB of video memory. My other games suddenly run at a rock steady 60 FPS too. Thank you very much for this :)