Azzera filtri
Azzera filtri

Renderer: 'painters' vs. Opengl

233 visualizzazioni (ultimi 30 giorni)
Anthony Crockford
Anthony Crockford il 17 Lug 2017
Risposto: Christian Tieber il 13 Ott 2020
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.

Risposte (2)

Mukul Rao
Mukul Rao il 20 Lug 2017
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 il 13 Ott 2020
This might be interessting:
https://www.mathworks.com/matlabcentral/answers/363832-some-figures-not-saving-as-vector-graphics-svg

Categorie

Scopri di più su Graphics Performance in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by