• 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
Re: Creating a radar sweep effect
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating a radar sweep effect


  • Subject: Re: Creating a radar sweep effect
  • From: Uli Kusterer <email@hidden>
  • Date: Mon, 28 Sep 2009 14:46:36 +0200

Am 27.09.2009 um 08:50 schrieb Graham Cox:
I have used this approach to simulate an oscilloscope display and it works well in terms of realism, but performance can be an issue. You'll probably need to store at least 3 or 4 "previous" frames to get the effect you want - there's no really good way to do it in one pass and get realism.

One way to improve performance would be to use CALayers or CGLayers. Have a pool of five previous layers, and reuse the oldest of those for the new image. By using layers, you can let the graphics card do the merging of the six frames, and the expensive drawing only happens once. Play with the layer alpha to have them fade out.


Haven't tried this, but it's something I'd attempt if I was pressed for performance.

Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://groups.yahoo.com/group/mac-gui-dev/

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Creating a radar sweep effect (From: John Cebasek <email@hidden>)
 >Re: Creating a radar sweep effect (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: Creating a radar sweep effect
  • Next by Date: Re: Best way to implement drag and drop for multiple types of nstableview
  • Previous by thread: Re: Creating a radar sweep effect
  • Next by thread: Frameworks in red
  • Index(es):
    • Date
    • Thread