Optimizing drawing for copiesOnScroll
Optimizing drawing for copiesOnScroll
- Subject: Optimizing drawing for copiesOnScroll
- From: Jan Van Boghout <email@hidden>
- Date: Thu, 11 Nov 2004 22:37:36 +0100
Hi everyone,
I have a view with thumbnail images that I'm trying to optimize as much
as possible. Scrolling performance is pretty good, but I know that it
would be faster if I could pull off the following:
Currently copiesOnScroll requests new areas to be drawn in little
pieces, however my redrawing is basically done in blocks (one block
being a thumbnail). What I'd like to do is tell my scoll/clip view that
the rect it is requesting is too small, and that it should be extended
to the entire block range it intersects. That way if I scroll down, a
block that is gradually revealed by the scrolling isn't effectively
redrawn as many times as there are scroll steps to show it entirely,
but just once.
The above would be the preferred solution, but I've also considered
doing it myself with an image of the view and internal dirty rects.
However, I couldn't find a way to detect whether my view is being
redrawn because of a scroll. Is this possible? The image approach isn't
a good idea to do all my redrawing, but it would speed up scrolling
nicely.
Thanks,
Jan Van Boghout
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden