Why is graphics rendering slow on parallel workers?
5 次查看(过去 30 天)
显示 更早的评论
MathWorks Support Team
2018-11-22
编辑: MathWorks Support Team
2019-10-28
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
2019-10-28
编辑:MathWorks Support Team
2019-10-28
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Graphics Performance 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!