Using graphics cards to improve figure renduring performance
35 views (last 30 days)
Show older comments
Hi All,
So I generally have no problem compiling in reasonable times depending on what I'm doing of course, but my simple 2D figures really lag when trying to do anything e.g. saving, zooming in/out, etc.
In fairness, the plots have order 10^7 points, so that may be the issue.
My rig has an i7-930 with 6 gigs of RAM and dual HD5850s, I don't think any of the GPUs are being leveraged at all by Matlab, and I was wondering if that is the hangup.
So, I was wondering if it would be possible to use my VGA card to help handle those figures, and if it would help at all, or if I should take another approach.
Thanks
0 Comments
Answers (3)
Walter Roberson
on 26 Oct 2011
The GPUs are not specifically being leveraged by MATLAB.
With the Radeon cards, MATLAB just submits everything to the graphics drivers. The exact path to the graphics drivers and the rendering speed can depend upon the figure renderer that you have in effect; you might want to change that.
If you were doing 3D work then probably your graphics would be handed over to your system OpenGL drivers which would be responsible for optimizing GPU usage.
The situation is not actually much different for NVidia cards, but the Parallel Toolbox at the very least knows how to speak to CUDA version 1.3 and later, so hypothetically MATLAB could call upon CUDA for increasing rendering speeds. I have never heard of it actually doing that, though. Most of the NVidia cards do not reach CUDA 1.3 standards. For example, none of the integrated NVidia graphics cars for Apple systems can do CUDA 1.3 (but there are two cards available... provided you have a G5 Tower.)
Anyhow... MATLAB itself can't speak directly to the GPU in your Radeon, and even if you had a suitable souped-up NVidia card, current MATLAB versions would not speak directly to the GPUs for rendering assistance. Some day, maybe...
2 Comments
John Deer
on 11 Aug 2020
This is really annoying. 9 Years later, i have still the same problem with my NVIDIA card.
First i thought the slow behaviour was because of my cheap garphic card. But a much more capable card won't speed up the basic graphic things.
There is a lot of potential for Mathworks here to improve Matlab.
Walter Roberson
on 23 Dec 2020
MATLAB uses the available OpenGL drivers. NVIDIA supplies the OpenGL drivers; https://developer.nvidia.com/opengl so presumably if there were faster ways of implementing OpenGL then NVIDIA would already have done it.
MATLAB already went through a round of fundamental rewrites for the graphics system, with the new system "HG2" becoming available in R2014b. There were blog posts in that time from showing the speed ups MATLAB archived then.
John Melonakos
on 27 Oct 2011
Checkout Jacket's Graphics Library for truly fast (and OpenGL-capable) graphics in MATLAB (available for NVIDIA GPUs), http://wiki.accelereyes.com/wiki/index.php/Graphics_Library
See Also
Categories
Find more on Graphics Performance in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!