• 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: OpenGL and Tiger
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OpenGL and Tiger


  • Subject: Re: OpenGL and Tiger
  • From: Shawn Erickson <email@hidden>
  • Date: Mon, 16 May 2005 07:45:43 -0700


On May 16, 2005, at 6:31 AM, Shaun Wexler wrote:

On May 16, 2005, at 2:16 AM, Lorenzo wrote:


Glad to know there is workaround.
I launch Quartz Debug and mark the radio button
"Disable Beam Synchronization". Now my application works well, the
refreshing problem has gone. Then I quit Quartz Debug and my application's
problem occurs again. I launch again Quartz Debug and strangely the radio
button "Disable Beam Synchronization" is not marked anymore.


How to set it permanently? And, most of all,
do I have to say to all of my clients to do this settings by themselves?
I hope no.



Quartz Debug resets the mode to "automatic" when it quits. The Window Server debug state is global for the session, not per- process or per-window. If your app disables it, it should re- enable it upon quit; you should present a warning dialog to the user and let them make the decision. Here is the necessary code:


    extern void CGSSetDebugOptions(int);
    extern void CGSDeferredUpdates(int);

    typedef enum {
        disableBeamSync = 0,
        automaticBeamSync = 1,
        forcedBeamSyncMode = 2
    } beamSyncMode;

    beamSyncOption mode = disableBeamSync;

    CGSSetDebugOptions(mode ? 0 : 0x08000000);
    CGSDeferredUpdates(mode);

All disclaimers shall apply. ;)~

I'll add a disclaimer... note that Quartz 2D Extreme is something Apple has available for developers to test with and I bet this beam synchronization mode may allow some level of optimization to take place in relation to Q2DX. So be careful depending on this being set certain ways until we hear more from Apple in this space (likely better discussed on the Quartz list, so let stop with the cross posting and take it just one list).


I bet at WWDC 2005 Apple will outline things at a more detailed level.

-Shawn
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: OpenGL and Tiger (From: Lorenzo <email@hidden>)
 >Re: OpenGL and Tiger (From: Shaun Wexler <email@hidden>)

  • Prev by Date: Re: Document based CoreData app and global context
  • Next by Date: Re: embedding web server in cocoa app
  • Previous by thread: Re: OpenGL and Tiger
  • Next by thread: Re: OpenGL and Tiger
  • Index(es):
    • Date
    • Thread