You are not logged in.

#1 2025-10-31 03:30:58

evangelion_air
Member
Registered: 2023-04-27
Posts: 7

[SOLVED] How to Enable Hardware-Accelerated Rendering in MATLAB 2025b

The old opengl command has been deprecated and replaced by rendererinfo.

In MATLAB 2025b, running rendererinfo returns the following:

ans = 
    GraphicsRenderer: 'WebGL'
              Vendor: 'Google Inc. (Google)'
             Version: 'WebGL 2.0 (OpenGL ES 3.0 Chromium)'
      RendererDevice: 'ANGLE (Google, Vulkan 1.3.0 (SwiftShader Device (Subzero) (0x0000C0DE)), SwiftShader driver)'
             Details: [1×1 struct]

According to MATLAB’s online documentation, if RendererDevice does not show a GPU name, it means rendering is on the CPU. The details field also confirms this:

HardwareSupportLevel: None

My system hardware is an AMD Ryzen 7 8845HS with integrated Radeon 780M graphics (no discrete GPU).
All dependencies are correctly set up, and the system can definitely use hardware acceleration:

❯ vulkaninfo | grep "GPU id"
                GPU id = 0 (AMD Radeon 780M Graphics (RADV PHOENIX))
GPU id : 0 (AMD Radeon 780M Graphics (RADV PHOENIX)) [VK_KHR_xcb_surface, VK_KHR_xlib_surface]:
GPU id : 0 (AMD Radeon 780M Graphics (RADV PHOENIX)) [VK_KHR_wayland_surface]:

❯ glxinfo | grep "OpenGL renderer"
OpenGL renderer string: AMD Radeon 780M Graphics (radeonsi, phoenix, LLVM 21.1.4, DRM 3.64, 6.17.5-arch1-1)

However, MATLAB 2025b still reports software (CPU) rendering via SwiftShader.
Does anyone know how to enable hardware-accelerated rendering in this new version?

Last edited by evangelion_air (2025-11-02 07:40:41)

Offline

#2 2025-10-31 04:21:14

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,061
Website

Re: [SOLVED] How to Enable Hardware-Accelerated Rendering in MATLAB 2025b

Mod note: moving to AUR Issues


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2025-10-31 10:40:00

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,387

Re: [SOLVED] How to Enable Hardware-Accelerated Rendering in MATLAB 2025b

It appears you need to use an environment variable to change what device is used.

https://www.mathworks.com/matlabcentral … nt_3342448


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#4 2025-11-02 07:37:00

evangelion_air
Member
Registered: 2023-04-27
Posts: 7

Re: [SOLVED] How to Enable Hardware-Accelerated Rendering in MATLAB 2025b

I found solution: hardware acceleration can be achieved by adding `export LD_PRELOAD=/usr/lib/libstdc++.so.6`.

Offline

Board footer

Powered by FluxBB