Re: CGDisplaySetDisplayMode only working properly after calling twice in a row
Re: CGDisplaySetDisplayMode only working properly after calling twice in a row
- Subject: Re: CGDisplaySetDisplayMode only working properly after calling twice in a row
- From: Matthias Dörfelt <email@hidden>
- Date: Wed, 21 May 2014 16:25:49 -0700
Hey Ken,
Capturing the display does not make a difference. Anyways, your guess about the GPU switching was spot on! If I disable it, the issue disappears. Is there any way to fix this in my code? I.e. an NSOpenGLPixelFormat flag that would take that into account?
Thanks!
Matthias
Am 21.05.2014 um 16:16 schrieb Ken Thomases <email@hidden>:
> On May 21, 2014, at 5:45 PM, Matthias Dörfelt wrote:
>
>> I just investigated this issue a little more. It only happens under one condition for me, which is that I created an NSOpenGLPixelFormat before the CGDisplay calls, i.e. this does not work as expected:
>
>> while the same code without the creation of the NSOpenGLPixelFormat does. this is really really odd, is there any way to fix this? Bug?
>
> Are you capturing the display before changing its mode? Does it make a difference if you do?
>
> Does your Mac have dual GPUs that it automatically switches between? If so, does it make a difference if you force it to use the discrete GPU before running your test?
>
> Regards,
> Ken
>
>
_______________________________________________
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