• 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: Scrolling Text Algorithm for a Screen Saver
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scrolling Text Algorithm for a Screen Saver


  • Subject: Re: Scrolling Text Algorithm for a Screen Saver
  • From: Stephane <email@hidden>
  • Date: Mon, 30 Oct 2006 18:31:38 +0100


On Oct 30, 2006, at 6:14 PM, Mike Abdullah wrote:

If you want to support just 10.4, this seems like a perfect opportunity to use Quartz Composer to me.

Mike.

On 30 Oct 2006, at 09:34, Doug Fort wrote:

Hi,

I'm working on a screen saver. It involves scrolling text across the
screen. I'm using the simplest algorithm I could think of: calls to
NSString drawAtPoint:withAttributes: with the point moving a fixed
offset at each call to animateOneFrame. This works Ok at low scrolling
speeds, but at higher speeds (i.e. a larger offset), the motion
appears jerky.


I'm working on improving my code to minimize the amount of computation
in animateOneFrame. However, if anyone can suggest a better algorithm
for scrolling text, I'd appreciate it.

Text drawing with NSString is a nightmare from:

- a performance point of view

- a buggy point of view (there are bugs in the API which prevents drawing the strings in some cases (borders for instance)).

when it comes to screen savers.

It may be a good idea to go with a OpenGL solution such as FreeType.


_______________________________________________ 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
References: 
 >Scrolling Text Algorithm for a Screen Saver (From: "Doug Fort" <email@hidden>)
 >Re: Scrolling Text Algorithm for a Screen Saver (From: Mike Abdullah <email@hidden>)

  • Prev by Date: RE: swizzling a class to a subclass inorder to add ivars (& methods) to a class
  • Next by Date: Re: (RS)What's the type of a selector?[2]
  • Previous by thread: Re: Scrolling Text Algorithm for a Screen Saver
  • Next by thread: how does one split a block of newline-separated text into an NSArray of NSStrings?
  • Index(es):
    • Date
    • Thread