Using graphics cards to improve figure renduring performance
54 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(3 个)
Walter Roberson
2011-10-26
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 个评论
John Deer
2020-8-11
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
2020-12-23
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
2011-10-27
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
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Graphics Performance 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!