> 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 <martin.hu...@pl32.de> >> 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 (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com