Forcing deployed Matlab code to run opengl in software mode

6 ビュー (過去 30 日間)
Graeme Puxty
Graeme Puxty 2020 年 6 月 19 日
コメント済み: Eric Delgado 2021 年 8 月 6 日
Hi,
I have some compiled Matlab that needs to run on a computer which doesn't support harware accelerated opengl which leads to the software crashing. Using opengl in software mode works but I cannot figure out how to make compiled code run opengl in software mode?
I have tried compiling with the command -softwareopengl but the deployed code still runs with hardware acceleration on.
Any suggestions appreciated.
Thanks.
  2 件のコメント
Eric Delgado
Eric Delgado 2021 年 8 月 6 日
Did you try to put this command in app's startup callback?
opengl hardwarebasic
Maybe a better approach is to create a standalone script with only the following line:
opengl('save', 'hardwarebasic')
Eric Delgado
Eric Delgado 2021 年 8 月 6 日
https://www.mathworks.com/matlabcentral/answers/315477-how-can-i-compile-a-standalone-matlab-application-with-startup-options-e-g-nojvm?s_tid=answers_rc1-1_p1_Topic

サインインしてコメントする。

回答 (0 件)

カテゴリ

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

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by