graphics performance 2019a vs 2016b

3 ビュー (過去 30 日間)
Christopher 2020 年 4 月 23 日
コメント済み: Christopher 2020 年 4 月 28 日
running on a core I7, 16 GB ram 64 bit laptop. I have matlab m-files making figure plots with a couple dozen line handles encompassing 100's of thousands of points. 2016b performs faster in plotting them, while 2019a seems to hesitate between each set of lines. m-file code is no different between the two versions. the plots make use of the 'UserData' and 'Tag' functionality to store data in the lines, for use in extracting the data via selection/callbacks. Any obvious reason why 2019a is slower than 2016b in plotting?


Yair Altman
Yair Altman 2020 年 4 月 26 日
R2019a uses the integrated axes toolbar, which constantly monitors mouse movements in order to generate data tips on-the-fly. If you turn off this functionality you'll probably discover that interactivity becomes much "snappier".
  1 件のコメント
Christopher 2020 年 4 月 28 日
thanks Yair, this did help. I'd been told of this before, but never really ran into the issue, so had not made it part of regular axes calls. I will from now on. I use a panel and cover it with tabs, similar to your example, but only populate the first two tabs, but each with about 20 line handles, each of which can have hundreds of thousands of points. The temporal performance was further slowed by what profiler found as unncessary calls to 'figure' and drawnow while prcessing each of the two tabs. (likely from debugging earlier on). Removing those sped up part of the code, and setting the interactivity to empty set improved it further. Thanks again, appreciate your expertise.


その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by