• 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: Faster scrolling after resizing window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Faster scrolling after resizing window


  • Subject: Re: Faster scrolling after resizing window
  • From: Martin Huber <email@hidden>
  • Date: Fri, 22 Jan 2016 09:24:43 +0100

> That doesn’t make much sense. Try comparing samples before and after. What is different?
>
Instruments with "Time Profiler" shows very similar percent values for both situations, but after resizing the window the CPU utilization is higher. But that was to be expected, because it is redrawing more often because of the faster scrolling.
Before resizing the average CPU utilization is about 210%, after resizing 280% (on a Core i7). This behavior is reproducible. The difference was more significant in the past, but in the meantime I upgraded to 10.11.3 and made some minor internal optimizations.

Martin

>> Il giorno 17 gen 2016, alle ore 5:16 AM, Martin Huber <email@hidden> ha scritto:
>>
>> I have a strange problem in my application (on 10.11, but I don't know whether that's important). After opening a document, scrolling in the document is a bit sluggish. But after resizing the document window with the mouse or maximizing it by Alt+click on the green title bar button, scrolling is a lot faster.
>>
>> Resizing the window by code with -[NSWindow zoom:] and -[NSWindow setFrame:display:animate:YES] speeds up scrolling, too, but -[NSWindow setFrame:display:animate:NO] doesn't.
>>
>> The document window uses a subclass of NSView for displaying its content and doesn't have any layers.
>>
>> Does anybody know what  -[NSWindow zoom:] and -[NSWindow setFrame:display:animate:YES] might change at the window, so that following scrolls are faster?
>>


_______________________________________________

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: 
 >Faster scrolling after resizing window (From: Martin Huber <email@hidden>)
 >Re: Faster scrolling after resizing window (From: corbin dunn <email@hidden>)

  • Prev by Date: Re: How to record screen in iOS
  • Next by Date: Re: Using an anchor in NSURL file url
  • Previous by thread: Re: Faster scrolling after resizing window
  • Next by thread: setWantsBestResolutionOpenGLSurface and flickering with multiple overlaying windows on retina
  • Index(es):
    • Date
    • Thread