Scrolling Text Algorithm for a Screen Saver
Scrolling Text Algorithm for a Screen Saver
- Subject: Scrolling Text Algorithm for a Screen Saver
- From: "Doug Fort" <email@hidden>
- Date: Mon, 30 Oct 2006 04:34:13 -0500
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.
--
--
Doug Fort, Consulting Programmer
http://www.dougfort.com
_______________________________________________
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