필터 지우기
필터 지우기

Renderer: 'painters' vs. Opengl

조회 수: 233 (최근 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 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