On Mon, Jul 08, 2002 at 10:36:03AM +0100, Angus Leeming wrote:
> Along these lines, I think if it's a good idea if we can prevent loading 
> while we're scrolling. Ie, if I'm moving the view using the scrollbar or the 
> arrow keys, loading should be disabled. Only when I've stopped this and the 
> screen position hasn't changed for a second or so should loading be started.
> 
> What do you think. Is this possible?

I'd do that, but on the loader side:

If an item is added to the 'to-be-loaded list', start a time out of a
second or so, and only if there are no new items added to that list, start
the actual loading, otherwise restart the timer. The more advanced version
of that would then re-order requests such that "needed" things go first.
Well, maybe a simple stack is already sufficient for that...

So this would be completely transparent to client code (the buffer etc) and
everything is well encapsulated within the loader. 

Andre'

-- 
Those who desire to give up Freedom in order to gain Security,
will not have, nor do they deserve, either one. (T. Jefferson)

Reply via email to