I am performing computationally demanding graphic rendering operations.
When I perform these operations inside a parallel pool, for example by using "parfor", the execution time increases by a factor 20, thus nullifying the benefit of parallelizing the code in the first place.
Why does this happen?

 채택된 답변

MathWorks Support Team
MathWorks Support Team 2026년 9월 11일 0:00
편집: MathWorks Support Team 2026년 9월 11일 20:56

0 개 추천

MATLAB parallel workers do not launch a GUI and are not associated to a display. Therefore they are unable to make use of OpenGL technology for acceleration of rendering tasks. This will both impact the performance and quality of graphics rendering compared to a desktop MATLAB session.
 
We would recommend to continue using the parfor loop to speed up the data processing tasks, but move the plotting functions to outside the parfor loop to make use of efficient OpenGL rendering.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Graphics Performance에 대해 자세히 알아보기

제품

릴리스

R2017b

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by