• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Optimizing drawing for copiesOnScroll
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Controller Issues with keys
  • Next by Date: Re: printer info
  • Previous by thread: Re: NSTextView will truncate view when using fixed-width font
  • Next by thread: [OFF-ish] Any interest in a Cocoa implementation of JXTA?
  • Index(es):
    • Date
    • Thread