Re: Reducing GL context switches
"Henry (Yu) Song - SISA" <[email protected]>
| Newsgroups | gmane.comp.lib.cairo |
|---|---|
| Message-ID | <3955FA337689574EB32F94B12A7E6E9E207112EC@sisaex02sj> |
Hi, Martin With our GPU-proxy/thread/process, I hope we can eliminate that code, but for now, it should be there to reduce context switch. Thanks Henry ________________________________________ From: [email protected] [[email protected]] on behalf of Martin Robinson [[email protected]] Sent: Monday, August 06, 2012 9:52 AM To: [email protected] Subject: Re: [cairo] Reducing GL context switches On 03/07/2012 09:47 PM, Martin Robinson wrote: >> https://github.com/mrobinson/cairo/tree/reduce-context-switches > I've updated this branch (needs to be re-pulled completely) with some > bug fixes and collapsing cairo_glx_device_set_thread_aware and > cairo_egl_device_set_thread_aware, into simply > cairo_gl_device_set_thread_aware. I've updated one of my patches in the branch with the following change: The commit "gl: Intelligently release the context" no longer makes the previous GL context current when releasing a GL device. Instead, if the previous GL context was the same as the one controlled by the GL device, releasing will not call glXMakeCurrent/eglMakeCurrent. I haven't heard any objections to these patches for months, so I plan on committing them, if no one objects to the new branch. --Martin -- cairo mailing list [email protected] http://lists.cairographics.org/mailman/listinfo/cairo -- cairo mailing list [email protected] http://lists.cairographics.org/mailman/listinfo/cairo