• 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
Data-dependent slowdown of NSBezierPath
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Data-dependent slowdown of NSBezierPath


  • Subject: Data-dependent slowdown of NSBezierPath
  • From: Warren Nagourney <email@hidden>
  • Date: Sun, 19 May 2002 22:17:19 -0700

I have noticed a strange thing when using NSBezierPath: there is a dramatic drawing slowdown when I display "noisy" data.

My application is a simulation of a Fourier Transform Spectrometer which generates simulated data that depends upon several parameters and then takes the Fourier transform (to retrieve the original spectrum). It is extremely fast: with 1000 points of data, I can smoothly change the various parameters (using sliders) and see the transform smoothly change in the expected manner.

However, when I add some noise to simulate a more realistic situation, the program slows down enormously. The noise generator (a random number generator) is always in place, so it is not the culprit - also, turning off the FFT doesn't help. It seems to be the display alone which is slowing things down.

Can someone suggest changing some parameter to speed the drawing up when displaying noisy data? I have tried changing the "Flatness" and turning off antialiasing (using the setGraphicsContext) to no avail (in fact turning off antialiasing made the graphics look terrible AND slowed it down as well).

Thanks.

Warren Nagourney

--------------------------------------------------------------------------
Warren Nagourney <email@hidden> Voice: 206-543-9585
University of Washington 206-543-0143
Physics Dept., Box 351560, Seattle, WA 98195 Fax: 206-685-0635
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Data-dependent slowdown of NSBezierPath
      • From: "Erik M. Buck" <email@hidden>
    • Re: Data-dependent slowdown of NSBezierPath
      • From: Scott Anguish <email@hidden>
  • Prev by Date: Sending mail from Cocoa Apps
  • Next by Date: Re: Data-dependent slowdown of NSBezierPath
  • Previous by thread: Re: Sending mail from Cocoa Apps
  • Next by thread: Re: Data-dependent slowdown of NSBezierPath
  • Index(es):
    • Date
    • Thread