graphics performance 2019a vs 2016b

2 visualizaciones (últimos 30 días)
Christopher
Christopher el 23 de Abr. de 2020
Comentada: Christopher el 28 de Abr. de 2020
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?

Respuesta aceptada

Yair Altman
Yair Altman el 26 de Abr. de 2020
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 comentario
Christopher
Christopher el 28 de Abr. de 2020
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.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Graphics Performance en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by