Matlab 2025a incredibly laggy on Fedora 42 (no hardware acceleration)

107 visualizaciones (últimos 30 días)
Viktor
Viktor el 18 de Mayo de 2025
Comentada: Walter Roberson el 20 de Jun. de 2025
Matlab 2025a is incredibly laggy on Fedora 42 Gnome (Wayland). I have a laptop with AMD APU (Ryzen 7 5800h) and Nvidia 3050 mobile, but the Matlab checks on startup always decide for software rendering (same for 2024b, for instance). From my debugging it tends to say that the driver is somehow corrupt even though it isn't. The UI on 2025a is incredibly laggy as even highlights lag a second behind the cursor as can be seen here: https://youtu.be/xXxbaS35zkw (for older versions it is OK)
I tried Ubuntu 25.04 (Gnome, Wayland) and Debian 12 (XFCE, X11) VMs and in both Matlab 2025a successfully uses hardware acceleration for the AMD APU (Nvidia can't be passed through virt-manager). Moreover, they work fine even without hardware acceleration with the "-softwareopengl" flag.
What might be going wrong on Fedora's end and how to fix it?
Could it be that Matlab 2025a still doesn't support the latest Mesa drivers? But then, it doesn't even work when I force launch it with Nvidia
__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia /usr/local/MATLAB/R2025a/bin/matlab
as then even the gui doesn't load up.
Alternatively, could it be that Matlab doesn't like the dual GPU setup of the laptop?
This is the OpenGL version on Ubuntu 25.04:
glxinfo | grep -i "opengl"
OpenGL vendor string: Mesa
OpenGL renderer string: llvmpipe (LLVM 19.1.7, 256 bits)
OpenGL core profile version string: 4.5 (Core Profile) Mesa 25.0.3-1ubuntu2
OpenGL core profile shading language version string: 4.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 4.5 (Compatibility Profile) Mesa 25.0.3-1ubuntu2
OpenGL shading language version string: 4.50
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 25.0.3-1ubuntu2
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
OpenGL ES profile extensions:
and this is on Fedora 42:
OpenGL vendor string: AMD
OpenGL renderer string: AMD Radeon Graphics (radeonsi, renoir, ACO, DRM 3.61, 6.14.6-300.fc42.x86_64)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 25.0.4
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 4.6 (Compatibility Profile) Mesa 25.0.4
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 25.0.4
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
OpenGL ES profile extensions:
  3 comentarios
Viktor
Viktor el 3 de Jun. de 2025
Editada: Viktor el 3 de Jun. de 2025
HI @Suman, thanks for your reply. I am certainly not going to switch to X11 and I don't think this is a solution. Like I said, Matlab 2025a works great on Ubuntu with GNOME under Wayland, so there must be a way to achieve the same in Fedora.
Walter Roberson
Walter Roberson el 20 de Jun. de 2025
Note that MATLAB R2025a no longer uses OpenGL -- it uses WebGL exclusively. -softwareopengl is now ignored.
I am not clear as to whether mesa drivers would be used for WebGL on Linux.

Iniciar sesión para comentar.

Respuestas (1)

Raymond Norris
Raymond Norris el 20 de Jun. de 2025
@Viktor can you contact MathWorks Technical Support (support@mathworks.com)? Perhaps they can help track down the issue.

Categorías

Más información sobre Get Started with MATLAB en Help Center y File Exchange.

Productos


Versión

R2025a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by