Rendering is slow in VM headless mode

4 ビュー (過去 30 日間)
MathWorks Support Team
MathWorks Support Team 2019 年 4 月 25 日
回答済み: MathWorks Support Team 2019 年 4 月 25 日
I have a function that displays some isosurface objects onto an axes, then rotates the figure 360 degrees, getting frames using 'getFrame' every N degrees. Then I use the frames to create an animation. This all works fine on my local laptop; however, we want to run it in automated fashion on a virtual machine. The virtual machine is headless. On a virtual machine, the code takes 10 minutes+ to execute (as opposed to 30 sec on my laptop). Why is this happening?

採用された回答

MathWorks Support Team
MathWorks Support Team 2019 年 4 月 26 日

In the headless mode, MATLAB uses 'painters' as the renderer to generate images. Painters can be very slow for the type of figure that is mentioned. On the laptop, or in headed mode, the renderer used is OpenGL which is relatively much faster. So, the simplest resolution is to run MATLAB in headed mode.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGraphics Performance についてさらに検索

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by