Using graphics cards to improve figure renduring performance

조회 수: 48 (최근 30일)
Darin
Darin 2011년 10월 26일
댓글: Walter Roberson 2020년 12월 23일
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

답변 (3개)

Walter Roberson
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
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
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.

댓글을 달려면 로그인하십시오.


Jan
Jan 2011년 10월 26일
Did you try to set the Renderer property of the FIGURE to 'OpenGL'?

John Melonakos
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 CenterFile Exchange에서 Graphics Performance에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by