Blurry/flickery NSImage animation in ScreenSaverView
Blurry/flickery NSImage animation in ScreenSaverView
- Subject: Blurry/flickery NSImage animation in ScreenSaverView
- From: Matt Gemmell <email@hidden>
- Date: Fri, 29 Mar 2002 03:17:54 +0000
Hi all,
I'm playing around with a screen saver which creates an NSImage from an
image file on disk, then moves that image around the screen. The
animationTimeInterval is 1/30.0, and the image is moved up and right (or
whatever) by one pixel each time animateOneFrame: is called. That's all
fine.
The problem is that the animation is blurry, or very flickery if I increase
the distance the image is moved each time. I'm unsure as to how to fix the
problem. I've tried reducing the animationTimeDelay, and also creating
another NSImage then doing the compositing onto it, then drawing that image
onto the ScreenSaverView subclass. The blur/flicker persists regardless.
I'd appreciate any advice - I've uploaded my project's source as well as the
built version of the screen saver, and a suitable sample image as well as a
text file explaining the problem. It's all in a StuffIt archive (72k) at the
URL below. Any help would be much appreciated. Note that the project file
was created in PB 1.1.1, so I believe you'll need that version of PB to read
it.
Here's the archive:
<
http://www.scotlandsoftware.com/temp/src/helpneeded.sit.hqx>
I realise that a screen saver is hardly very important, but I'd be grateful
for any enlightenment anyone could offer. :-)
Thanks for reading,
-Matt
--
Matt Gemmell
Scotland Software
<
http://www.scotlandsoftware.com/>
_______________________________________________
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.