Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problem with coalesced updates and OpenGL




On May 17, 2006, at 8:24 PM, James W. Walker wrote:

I'm not sure if this is the right mailing list for this question, but I know I'd get yelled at if I cross-posted...

My application often renders incorrectly when coalesced updates are on. Tech Note 2133 tells some cases in which one coalesced updates might impact performance, but does not explain why you'd see the wrong stuff on the screen.

This is a Carbon application with a composited window. Certain HIViews in the window are set up to draw with OpenGL. On kEventControlDraw, the view renders, ending with aglSwapBuffers and glFinish. What sometimes happens (maybe half the time) is that there is a flash and the OpenGL content disappears, revealing whatever was underneath it in the window. Turning off coalesced updates with Quartz Debug makes this problem go away.

Any idea what I could do, other than turning off coalesced updates in my app?

I don't know offhand what's happening here (we don't have much experience combining OpenGL and composited HIViews in-house; we need to investigate this further and see if we should be adding more explicit support to the HIView Manager for OpenGL), but I'm curious what happens if you use QuartzDebug to turn on "auto-flush drawing". Does that make a difference?


-eric


_______________________________________________ Do not post admin requests to the list. They will be ignored. Quartz-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/quartz-dev/email@hidden

This email sent to email@hidden
References: 
 >problem with coalesced updates and OpenGL (From: "James W. Walker" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.