I'm using Seesmic.Sdp.Utils.Timeline
Just to explain why I receive a flicker - its due to my logic which
is:
1. clear all the items in the timeline
2. add all the items again to the timeline (with their updated
contents - some may not have updates)
I do this because each item can update very frequently so I can't rely
on adding items to the stack because the items at the bottom of the
stack are no longer up to date.
Now this is no where near perfect as I can only imagine that when I
clear the timeline things get lost and I'm sure the garbage collection
is not as good as I would like it to be.
So my thoughts on how I can do this is:
1. add the items in bulks instead of individually (this will stop the
flicker and eliminate a race case (*))
2. create data structures that hold the timeline items and just update
the data structure and the timeline item will update (whether this is
actually going to work I have my doubts because I'm thinking I need to
add some two way binding listeners)
(*)here is my biggest problem - when I call on
SynchronizationHelper.Post it must open a new thread or something
because items appear out of order - I solved this temporarily by
checking if the last item has been added before adding the next item
which is another reason why I get the flicker (i.e. if item N-1 takes
10 s to be added to the timeline, item N waits for 10 s until it adds
to the timeline - you can see why this would cause a flicker or
glitchy feel to it)
Anyways if I can add these items in bulks it would solve this waiting
process for item N-1