Question

Examples for BeginUpdate & EndUpdate?

Posted 4 years ago by Avatar David Bagby - Calypso Ventures, Inc.

I'm having some performance issues with Gauges - I have several gauges that have 10-12 pointer needles each along with some pointer markers. They all get updated pointer values every 50ms.  Right now I'm doing the value updates sequentially... which has turned out to be too slow. 

So in looking around, I found the BeginUpdate and EndUpdate in the DeferrableObservableCollection<(Of <(<'T>)>)> ..

But I've not found any more explaination other than the method names - and no examples of their use.

I'm thinking that maybe I should be doing something like

BeginUpdate()

set all the new pointer values

EndUpdate()

to cut down the graphic update overhead.

Can you point me to some more info about these methods?

Dave


Comments (1)

Posted 4 years ago by Actipro Software Support - Cleveland, OH, USA

Hi David,

Yes, you got it.  Just call BeginUpdate(), do updates, and then EndUpdate().  At that point, the collection raises the collection change events instead of doing them after each individual update.


Actipro Software Support
Information The latest build of this product (2018.1 build 0671) was released 1 month ago, which was after the last post in this thread.

Add a Comment

Please log in to a validated account to post comments.