Renderer: 'painters' vs. Opengl
248 views (last 30 days)
Show older comments
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.
0 Comments
Answers (2)
Mukul Rao
on 20 Jul 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.
0 Comments
Christian Tieber
on 13 Oct 2020
This might be interessting:
https://www.mathworks.com/matlabcentral/answers/363832-some-figures-not-saving-as-vector-graphics-svg
0 Comments
See Also
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!