Re: Smooth fast scrolling programatically
Re: Smooth fast scrolling programatically
- Subject: Re: Smooth fast scrolling programatically
- From: Andrew Garber <email@hidden>
- Date: Mon, 26 May 2003 22:46:01 -0700
- Resent-date: Mon, 26 May 2003 22:46:34 -0700
- Resent-from: Andrew Garber <email@hidden>
- Resent-message-id: <email@hidden>
- Resent-to: email@hidden
From Apple's Cocoa Documentation on timers:
"Because of the various input sources a typical run loop manages, the
effective resolution of the time interval for an NSTimer is limited to
on the order of 50-100 milliseconds."
http://developer.apple.com/techpubs/macosx/Cocoa/TasksAndConcepts/
ProgrammingTopics/Timers/index.html#//apple_ref/doc/uid/10000061i
Andrew
On Monday, May 26, 2003, at 06:02 AM, Rolf wrote:
>
Thanks. I have checked - its not being redrawn completely. I think
>
the problem is NSTimer which is not accurate enough for this use with
>
the interval being so small. Maybe I'll have to resort to a busy-wait
>
loop inside a seperate thread ?
>
>
/Rolf
>
>
26.05.2003 12:32:23, skrev John Hvrnkvist
>
<email@hidden>:
>
>
>
>
> On Monday, May 26, 2003, at 12:17 Europe/Stockholm, Rolf wrote:
>
>
>
>> My app has a panel with a (wide) NSIMageView inside a (narrow)
>
>> NSScrollView. The NSImageView is supposed to scroll smoothly and
>
>> quickly inside the NSScrollView from one end to the other
>
>> (horizontally). The range is around 300 pixels. The problem is that
>
>> the scrolling is not as smooth
>
>> as I'd like - its actually quite jerky (on a G4 667 MHz). The app is
>
>> performing no other tasks while the scrolling is going on. What can
>
>> be
>
>> done to create a perfectly smooth (& quick) scrolling ?
>
>
>
> Have you used QuartzDebug to check that the scroll view isn't being
>
> redrawn completely for each scroll "step"?
>
>
>
> /John
>
_______________________________________________
>
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.
_______________________________________________
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.