How to render opengl in Matlab 2015a on Mac
Show older comments
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
Mike Garrity
on 7 Apr 2015
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.
Tianxiao
on 10 Apr 2015
Mike Garrity
on 13 Apr 2015
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
Mike Garrity
on 13 Apr 2015
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:
Tianxiao
on 17 Apr 2015
Accepted Answer
More Answers (0)
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!