Re: [patch] gl: set tex_with in cairo_gl_gradient_t instead in cairo_entry.size

Chris Wilson <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
On Mon, 5 Nov 2012 21:28:31 +0000, "Henry (Yu) Song - SISA" <[email protected]> wrote:
> From 18e714f260f18e6ae13979a289b6f7892d7f82c2 Mon Sep 17 00:00:00 2001
> From: Henry Song <[email protected]>
> Date: Mon, 5 Nov 2012 13:16:18 -0800
> Subject: [PATCH] gl: add tex_width in cairo_gl_gradient_t structure, there is
>  no need to set cache_entry.size to be tex_width, this makes
>  it unlikely overflows gradient cache

The idea is that the gradient cache tries to only keep a certain amount
of texture memory cached. It sounds like that limit is too low --
indeed, it is set at 4096 which is only 16k, or roughly 4 gradients.
That would be better with

#define CAIRO_GL_GRADIENT_CACHE_SIZE 16384

judging by desktop usage, and you probably have a better idea for your
use cases.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre
-- 
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.