A performance confuse of thumbnail [message #1786218] |
Fri, 27 April 2018 01:21  |
Eclipse User |
|
|
|
Hi,
I found that, when i editing model with sirius diagram, if i open outline overview, the editing performance will be worse. I analysed the source code, found the ToggleUpdateManager.performUpdate() is responded for painting the sirius diagram; the ThumbnailUpdater.run() is responded for updating the outline overview. Is my analysis correct or not?
My confuse is that, why the ThumbnailUpdater.run() costs more time than the ToggleUpdateManager.performUpdate()? Did not the ThumbnailUpdater.run() just scale down the picture which ToggleUpdateManager.performUpdate() painted?
|
|
|
|
Re: A performance confuse of thumbnail [message #1786478 is a reply to message #1786222] |
Fri, 04 May 2018 01:53  |
Eclipse User |
|
|
|
Hi, Florian Barbin
Thanks for your reply.
I debugged the process, It seams that, the thumbnail paint all the figures recursively, while the ToggleUpdateManager.performUpdate() only paint part of the figures, according to a HashMap named dirtyRegions which stores the affected picture and its dirty region.
|
|
|
Powered by
FUDForum. Page generated in 0.03344 seconds