paint optimization [message #149211] |
Tue, 31 August 2004 10:56  |
Eclipse User |
|
|
|
Originally posted by: david_michonneau.hotmail.com
Hi,
I believe the DeferredUpdateManager is queuing all the repaint event to have
only repaint called once per modified figure no matter how many times
refreshVisuals has been called. Can you confirm if this is correct, and does
it mean I don't have to worry about firing too many events in my model that
could make the ui blink?
Thanks,
David
|
|
|
|
|
|
|
Re: paint optimization [message #149731 is a reply to message #149539] |
Thu, 02 September 2004 13:33  |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
> David Michonneau wrote:
> > I believe the DeferredUpdateManager is queuing all the repaint event
> > to have only repaint called once per modified figure no matter how
That's incorrect. Painting only occurs once period, not once per-figure.
More specifically, it occurs as soon as the asyncExec is dispatched in
response to the first call to repaint(). So if everything is happening
synchronously in response to a UI event, there is just one repaint.
> > many times refreshVisuals has been called. Can you confirm if this is
> > correct, and does it mean I don't have to worry about firing too many
> > events in my model that could make the ui blink?
>
> You can also create our own update manager (inherited from
> DeferredUpdateManager) that queues updates during processing a hugh tree
of
> events...
>
> Cu, Gunnar
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.05894 seconds