How to render opengl in Matlab 2015a on Mac

Hi,I upgraded Matlab from 2014a to 2015a in my MAC and I found that my customized GUI software run much slower in 2015a compared to 2014a. I tried opengl software/hardware, none of them work. The opengl info is as follows: >> opengl info Version: '2.1 INTEL-10.2.46' Vendor: 'Intel Inc.' Renderer: 'Intel Iris OpenGL Engine' MaxTextureSize: 16384 Visual: 'Visual (Undefined), (RGBA 32 bits (8 8 8 8), Z depth 16 bi...' Software: 'false' SupportsGraphicsSmoothing: 1 SupportsDepthPeelTransparency: 1 SupportsAlignVertexCenters: 1 Extensions: {128x1 cell} MaxFrameBufferSize: 16384
And error informations:
>> opengl hardware Error using opengl Switching to hardware OpenGL rendering is not supported on the MAC platform
>> opengl software Error using opengl Switching to software OpenGL rendering is not supported on the MAC platform
My license is Academic License, could this be an issue ?

5 Comments

Why do you think you aren't getting opengl? The output from 'opengl info' seems to be saying that you are getting your graphics card's driver.
Before you go too far down in that direction, I would run your code with the profiler and see what it says. An awful lot of things changed in MATLAB's graphics system in R2014b. The opengl driver isn't the first place I would start looking.
A sample of your code would also be helpful, or at least some sort of description of what you're drawing.
Thank you for your answering Mike. I profiled my code in two Matlab Versions (2014a and 2015a) in the same computer. One thing that certainly slows down my application is 'text' function.I called them 102 times. It took 2.7 second in 2015a but only 0.098 second in 2014a.
Those are pretty interesting numbers.
Creating text objects is a bit slower in 14b, but I haven't seen numbers like that before. I just ran a simple example on a couple of random machines here and got the following numbers:
R2014a R2015a
Win64 7,215 1,075 w/o drawnow
344 162 with drawnow
Maci 4,175 784 w/o drawnow
105 62 with drawnow
That's in text objects per second. Your times translate to
1,041 38
That seems way out of line with what I get.
I'd love to know more about what's going on. Could you provide more details about things like how big the text strings are, what fonts you're using, whether the TeX or LaTeX interpreters are involved, what the memory command says on your system?
Thanks
Actually, as much as I would love to figure out what's going on here, it'd probably be smarter for you to contact support at this point. They'll get all of the details from you and track it better than we can do here in this forum.
You can report it to them here:
Here is the fraction of my example code: h=text(0.97,p,num2str(1/gain(i),'%0.3g'),'Parent',axe,'HorizontalAlignment','left','VerticalAlignment','middle','FontWeight','bold','units','normalized','DisplayName',['YGauge' num2str(count)],'Color',[1 0 1]);
Some variables are from my previous calculations. I also tested the text with and without interpreter (tex/none), there is currently no big differences. I posted my question to the tech support as you suggested and I am waiting for their answer. Thank you~

Sign in to comment.

 Accepted Answer

Tianxiao
Tianxiao on 20 Apr 2015
Edited: Tianxiao on 20 Apr 2015
The text object drawing slow has been reported as a bug, looking for future release.

More Answers (0)

Categories

Find more on Graphics Performance in Help Center and File Exchange

Asked:

on 7 Apr 2015

Edited:

on 20 Apr 2015

Community Treasure Hunt

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

Start Hunting!