Renderer for standalone executable.

4 ビュー (過去 30 日間)
Bharath 2016 年 12 月 6 日
回答済み: Vivek Jadye 2016 年 12 月 29 日
Hi all,
I've built an executable with good amount of Surf (3D) plots. It always ran perfectly on my laptop. However, it crashes when running on low graphics system. I contacted Matworks support and they told me to compile the executable with
'openGL' as render.
Now it works perfectly with low graphics system. My question is if there is a way where I can identify the system graphics and then choose the appropriate renderer?
For example, I've seen in few cases when running the GUI main file from MATLAB application. I see a message saying
The default renderer is changed to OpenGL for better performance.
So can we do that detection in the executable to switch between renderers? At the moment, I've 2 executables with and without openGL.

回答 (1 件)

Vivek Jadye
Vivek Jadye 2016 年 12 月 29 日
Hi Bharath,
Recent versions of MATLAB (since R2014b onwards) have 'OpenGL' as the default renderer. You do not need to identify and make the switch yourself. For the previous versions, I would recommend always using 'OpenGL' renderer when creating 3D plots.
I hope this was helpful.


Help Center および File ExchangeGraphics Performance についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by