Matlab slows down when the window is minimized
古いコメントを表示
Hi everyone,
I'm running some heavy code and found that when I reduce the Matlab window, the code execution significantly slows down. How can I address this issue? I've already tried using the task manager to give Matlab a higher priority, but it didn't work. Thank you in advance.
6 件のコメント
Bruno Luong
2023 年 10 月 25 日
Do you plot something in the closed window?
Do you use graphicj with opengl hardware or software?
opengl info
Cinzia Tomaselli
2023 年 10 月 25 日
Bruno Luong
2023 年 10 月 25 日
編集済み: Bruno Luong
2023 年 10 月 25 日
Shooting in the dark, but on some windows OS there is a setting of "Game Mode" when it turns on, the background proocess are slow down? You might check it and turn the Game mode off if applicable.
Cinzia Tomaselli
2023 年 10 月 25 日
Shawn Hineline
2025 年 4 月 3 日
Hi,
I have the same issue. The program took 200 seconds to run with the Matlab window open, It took around 2000 seconds to run with the Matlab windows minimized. I noticed the CPU% in windows droped from around 16% to aroind 4% in task manager.
Thanks,
Shawn
Peter
2026 年 2 月 20 日
If you are in Windows, try setting 'best performance' in the power and sleep settings.
回答 (1 件)
Shivam Lahoti
2023 年 11 月 3 日
0 投票
Hi Cinzia Tomaselli,
As per my understanding, you want to execute an extensive script comprising various logical loops. But when you minimize the MATLAB window, a considerable drop in execution speed is observed.
I can understand that you have tried to prioritize the MATLAB execution in CPU and then could not witness a boost in execution. I would suggest the following approaches, which might work in favor of solving the problem.
Approach 1:
Try running the script in the background. You can create MATLAB scripts that can be executed in a headless mode, which means they do not require any graphical output or user interaction.
Please refer to this answer to get some help in understanding the approach.
Approach 2:
Create a MATLAB Executable file also known as MEX file. This quick start guide focuses on how to generate MEX code to possibly speed up your MATLAB design.
I hope you find one of the approaches helpful.
Regards,
Shivam Lahoti.
カテゴリ
ヘルプ センター および File Exchange で Graphics Performance についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!