• 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: CGDisplaySetDisplayMode only working properly after calling twice in a row
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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 18:45:20 -0700

The more I think about this, the more I think this deserves a bug report. If the automatic GPU switching gets triggered by switching the display mode in the first place, and the newly active GPU supports the same display format, shouldn’t it make sure it keeps the same format? I don’t see how that should be the job of client code. Any thoughts?


Am 21.05.2014 um 16:25 schrieb Matthias Dörfelt <email@hidden>:

> 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


_______________________________________________

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: 
 >CGDisplaySetDisplayMode only working properly after calling twice in a row (From: Matthias Dörfelt <email@hidden>)
 >Re: CGDisplaySetDisplayMode only working properly after calling twice in a row (From: Matthias Dörfelt <email@hidden>)
 >Re: CGDisplaySetDisplayMode only working properly after calling twice in a row (From: Ken Thomases <email@hidden>)
 >Re: CGDisplaySetDisplayMode only working properly after calling twice in a row (From: Matthias Dörfelt <email@hidden>)

  • Prev by Date: Re: CGDisplaySetDisplayMode only working properly after calling twice in a row
  • Next by Date: Don't stop the music
  • Previous by thread: Re: CGDisplaySetDisplayMode only working properly after calling twice in a row
  • Next by thread: Re: CGDisplaySetDisplayMode only working properly after calling twice in a row
  • Index(es):
    • Date
    • Thread