Re: Cocoa GUI app getting slower on MacPro or MacMini when disconnecting all screens
Re: Cocoa GUI app getting slower on MacPro or MacMini when disconnecting all screens
- Subject: Re: Cocoa GUI app getting slower on MacPro or MacMini when disconnecting all screens
- From: Jens Alfke <email@hidden>
- Date: Wed, 11 Mar 2015 15:49:03 -0700
> On Mar 11, 2015, at 3:40 PM, Matthieu Beghin <email@hidden> wrote:
>
> if I do nothing in the timer, it's called as often as when a screen is connected (120 times per second)
> if I do some processing, it gets called 20 times per second, but CPU usage is very low
This sounds like some kind of Qt behavior, not anything intrinsic to OS X. I’m not aware of anything to do with NSTimer that would depend on whether external screens are connected. I wonder if Qt is misusing some kind of CoreGraphics blanking-interval timer that’s meant to be used for animation.
Why do you need a timer that gets called that often?
—Jens
_______________________________________________
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