Renderer: 'painters' vs. Opengl

357 ビュー (過去 30 日間)
Anthony Crockford
Anthony Crockford 2017 年 7 月 17 日
回答済み: Christian Tieber 2020 年 10 月 13 日
Hi, We are having intermittent issues with the rendering speed of our graphs. A few weeks ago, we solved the speed issue by installing a new graphic board and using:
set(0, 'DefaultFigureRenderer', 'painters');
Now, it seems that from time to time the speed issue is back and is solved when we use OpenGL:
set(0, 'DefaultFigureRenderer', 'opengl');
Can you help trouble-shoot this and find a stable solution?
Many thanks,
Arista Energies Team.

回答 (2 件)

Mukul Rao
Mukul Rao 2017 年 7 月 20 日
Hi,
As per my understanding there is no definitive answer as to when OpenGL will perform better than Painters or vice versa. Generally Painters does well with simple plots and 2-D graphics. With hardware acceleration, OpenGL generally performs better than painters for 3-D plots.
I would recommend setting the figure "RendererMode" and the "DefaultFigureRendererMode" to "Auto", so that even though you have established the default figure renderer, MATLAB can still switch the renderer at run time based on its own inbuilt logic.
Further, some generic suggestions that might be of help - I recommend reading this documentation page on Graphics Performance, some of the concepts here might be applicable to your use case. Finally, please verify that your graphics card drivers are up to date.

Christian Tieber
Christian Tieber 2020 年 10 月 13 日
This might be interessting:
https://www.mathworks.com/matlabcentral/answers/363832-some-figures-not-saving-as-vector-graphics-svg

カテゴリ

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