フィルターのクリア

Can I allocate a separate CPU/GPU core for just manipulating a 3D plot?

1 回表示 (過去 30 日間)
Anshuman Agrawal
Anshuman Agrawal 2021 年 1 月 9 日
編集済み: Walter Roberson 2021 年 1 月 9 日
I was wondering if there was any way to allocate a CPU/GPU core to be used solely for figure manipulation. I have plotted a 3D triangular mesh and I wanted to allocate a separate CPU/GPU core to just be used to manipulate the mesh (rotate, etc.) while the rest of my code runs in the background. This allows me to manipulate the mesh while other code is running in the background and also potentially improves response times/reactivity of the mesh to rotations, etc.
Any help would be greatly appreciated, thank you!

採用された回答

Walter Roberson
Walter Roberson 2021 年 1 月 9 日
編集済み: Walter Roberson 2021 年 1 月 9 日
No, there is no way to do that.
You can use maxNumCompThreads to reduce the number of cores used for computation, and then *hope* what is left will be used for graphics.
When computation is being done, graphics callbacks are processed upon return to keyboard, or uiwait(), waitfor(), pause(), drawnow(), or figure() (including bringing a figure into focus). If your code is not actively giving opportunities for callbacks then no callbacks will be processed.
If you have Parallel Computing Toolbox then potentially run the computation in a pool, leaving the client in a wait state to process callbacks.

その他の回答 (0 件)

カテゴリ

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

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by