Re: Round corners of borderless NSWindow without set it transparent
Re: Round corners of borderless NSWindow without set it transparent
- Subject: Re: Round corners of borderless NSWindow without set it transparent
- From: Andrea3000 <email@hidden>
- Date: Wed, 29 Feb 2012 22:43:46 +0100
Il giorno 29/feb/2012, alle ore 21:26, Fritz Anderson ha scritto:
> On 29 Feb 2012, at 11:14 AM, Andrea3000 wrote:
>
>> I've used Instruments and the only relevant thing that I've noticed is that when the window is opaque and I resize it like a mad, WindowServer process jumps to 30% of CPU usage at its max but when the window is transparent and I resize it the same way, WindowServer uses over than 65% of CPU.
>
> If you're looking at per-process data, you're not getting the information you need. You need the Time Profiler instrument, pointed at your application. It's easy to set this up from Xcode 4: Press opt-cmd-I, select Time Profiler from the Instrument popup, and click the Profile button. Then exercise your problem.
>
> This is exactly what anyone would do if they downloaded and ran your project, as you're asking others to do. We're busy. It's your problem. You have the tools and abilities to investigate it for yourself. Measure what's going on, and if you still need help, come back and tell the list what you learned. Even if the CPU is spending all its time in system software, we might still be able to show you how to work around it.
>
> — F
I'm sorry if you think I'm too lazy to debug it myself. I never intended to implicitly ask you to download and debug the app for me, believe me.
I posted a demo project simply because I think that the issue isn't related to my code; I have always seen this behavior with non opaque window and it's for this reason that
I'm looking for a way to round corners of an opaque borderless window.
I can prove my assumption. If you create a new Xcode project choosing the application template you will have a simple window already created in IB.
Setting that window non opaque is enough to exibit the issue I'm talking about.
Anyway, I'm going to analyze this last example with Time Profiler in order to have a deeper insight of the issue.
Thank you for your help
Regards
Andrea
_______________________________________________
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