Re: PATCH: GL: Create glyph mask surface only once per context, enlarge on demand
Mikko Strandborg <[email protected]>
| Newsgroups | gmane.comp.lib.cairo |
|---|---|
| Message-ID | <CD440F6E.C51D%[email protected]> |
Hi, I'm not quite sure what you mean. Is the mask currently allocated and released every draw call in order to work around a driver bug? Generally, allocating new textures (or other GPU resources) every frame is considered ineffective. --Mikko On 2/15/13 3:57 PM, "Chris Wilson" <[email protected]> wrote: >On Fri, Feb 15, 2013 at 01:38:43PM +0000, Mikko Strandborg wrote: >> Hello, >> >> In text rendering, when the rendering happens via a mask, the GL surface >> allocates and releases a temporary mask surface for each text rendering >> operation. This is very slow. The attached patch stores the mask >>surface to GL >> context. It is created lazily on first rendering, and enlarged on >>demand. This >> makes text rendering some 250% faster in some cases. > >By working around bugs in the drivers... >-Chris > >-- >Chris Wilson, Intel Open Source Technology Centre -- cairo mailing list [email protected] http://lists.cairographics.org/mailman/listinfo/cairo